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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
chr_pro
Contributor
Contributor

How to count Flag changes?

Hi this might be a straightforward question but i cant seem to figure it out.

I would like to count the changes in the Column "Krit Tage" (consecutive 1 doesnt count)

 

In this example i would to add a "new" column that counts 3 changes in "Krit Tage".

chr_pro_1-1677594716090.png

 

Thanks in advance, looking forward to your reply.

 

 

Labels (1)
3 Replies
MarcoWedel

Are you looking for a script solution or a table expression?

chr_pro
Contributor
Contributor
Author

Hi Marco,

a table expression would be sufficient. Not sure if we need more information for a script solution 🙂

sergio0592
Specialist III
Specialist III

Hi,

Maybe you can try as calculated dimension :

=aggr(if((Krit Tage=1 and Above(Krit Tage)=0) or RowNo()=1,1,0),AnzTAge,Datum)