I have a problem I don't know how to tackle : I need to return a value, either 0, 1, or 2 to identify the number of REASON "Absent" :
For a unique User :
If the REASON is not "Absent", return 0
If the REASON is "Absent" for less than 3 consecutive days, return 1
If the REASON is "Absent" for more than 3 consecutive days, return 2
Next user
Do I need to use GroupBy and then create a loop over dates? How do I manage consecutive dates?
Regards,