Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
bdunphy
Contributor III
Contributor III

Count number of consecutive absense

Hi ,

I have a query on how I would calculate the number of consecutive absense in a period. e.g. see data below

If someone has more than 7 absense in a row in a period I need to highlight this. I have tried before() but it only works if I run the report for one person

expression of "=Date-before(date)" and make a selection on the pay-code which tells me someone was working that day.

If i run it for all people and the person was absent on a particular day - the column to the left is NULL and so the before()  function does not work.

if someone is in work they will have a record with a particular pay code for that day. An absense may be a holiday, where there will be a record for that day under a different pay code or a weekend or rest day where there will be no record for that day

Any help or pointers in the right direction would be greatly appreciated.

name 01/01 02/01 03/01 04/01 05/01 06/01 07/01 08/01 09/01 10/01 11/01  12/01

Person1 1 1 X X X X X X X X X X

This would be run  daily to highlight any people who have missed 7 days. Thanks
0 Replies