Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Save $600 on Qlik Connect registration! Sign up by Dec. 6 to get an extra $100 off with code CYBERSAVE: REGISTER
cancel
Showing results for 
Search instead for 
Did you mean: 
caswellmotati
Contributor
Contributor

consecutive leave days

Please help, I trying to check employees  who took their leave in consecutive days.

I have used this expression but its not working.

sum(if(START_DATE - Before([LEAVE START DATE])<=1,[Consecutive Days]))

I checking the difference from previous row with the current.

1 Reply
jcampbell474
Creator III
Creator III

Please see the thread here: https://community.qlik.com/thread/110326

Some code in the load script counts sequential worked days.  Then, your expression can be something like: If(max(seqdays) > 1, 'Yes','No').  Provided you have Employee as a dimension.

HTH,

Jason