Forum Discussion
Absence streak
- 2 years ago
Hi RudyL
Please refer tao attached sample file with the proposed solution - 2 years ago
Hi RudyL
You are right the ABSSTREAK calculated column. However I could not generate the other problem. Looks like the engine treats the blank as a zero anyway. I have a added a COALESCE statement as an additional layer to confirm the result.
Hi tamerj1 ,
First of all i'm amazed, surprised, in awe for your quick response and effort in trying to explain me how this works. First take-away on my side: There's a lot to learn.
But... it doesn't work for my data. After looking at your code and matching our data I found a couple of things:
1. I think you missed some checks on having multiple employees. My data has 350 while your example only has one. So I think I need to change your ABSSTREAK to the one below where an extra check on EMPID is included
Hi RudyL
Looks like somehow I missed your reply.
ABSENDDATE and ABSDAYS are measures. That means in the table visual the EMPID is already available in the fillter context as part of the visual.