Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Avigdo
Contributor II
Contributor II

count distinct for previous month (Last Month -1)

Hi,

I would like to compare 2 distinct counts and to show them as a primary and secondary KPI's.

     a. the number of Branch_ID that exists in a Table in a certain month.  Have the month as a variable

      b. the number of Branch_ID that exists in the same Table in the month before it. Have it also as a variable.

I dont understand why this expression doesn't work:

Count({<max([Contract_Open_Date]) = $(vPrevMonthes) >} distinct Branch_Id)

while vPrevMonthes holds the previous end of month

TNX

 

 

1 Reply
Kashyap_R
Partner - Specialist
Partner - Specialist

Hi
please find the file in the attachment

Hope it helps
Thanks

Thanks and Regards
Kashyap.R