Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
george55
Partner - Creator III
Partner - Creator III

Difference from one month to previous

Hi all,

Even I found a lot of examples here, nothing could solve my problem. Need the Count diffences from one month to previous month. Tried something like that (DatumId is my Date):

Count(Distinct {$<month(DatumId) = {$(=Max(month(DatumId)) -1), State={'aktiv'}}>} Key])

Instead to show the total number of Distinct Keys per Month, would like to show only the difference to previous month.

2021.0202-171307.jpg

Labels (1)
  • SaaS

2 Replies
sonkumamon
Creator
Creator

Hi,

Please try

Count(Distinct {$<month(DatumId) = {$(=Max(month(DatumId))), State={'aktiv'}}>} Key])

-

Above(Count(Distinct {$<month(DatumId) = {$(=Max(month(DatumId))), State={'aktiv'}}>} Key]))

 

 

george55
Partner - Creator III
Partner - Creator III
Author

Thanks for your help.

Did try, but doesn't look good. It shows only one month and the the chart is empty. Did also try with Monthend function:

2021.0203-083808.jpg