Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
gfisch13
Creator II
Creator II

Case Count Error

Hi Everyone - I've got an issue with the pivot table below when trying to calculate the total number of cases and the total number of 'open' cases.  As you can see in the screen shot I have the proper values for the total number of cases.  MY issue is with counting the 'OPEN' cases.   Can someone tell me what I'm doing wrong in this formula, or if there is a better method to use??  Thanks!!

IF(CASE_STATUS='Open',Aggr(DISTINCT, CASE_NUMBER))

1 Solution

Accepted Solutions
sunny_talwar

Try this for open cases:

Count(DISTINCT {<CASE_STATUS = {'Open'}>}CASE_NUMBER)

UPDATE: forgot to add the DISTINCT

View solution in original post

2 Replies
sunny_talwar

Try this for open cases:

Count(DISTINCT {<CASE_STATUS = {'Open'}>}CASE_NUMBER)

UPDATE: forgot to add the DISTINCT

gfisch13
Creator II
Creator II
Author

Thank you!!  Worked perfectly!!  Now I understand what I did wrong!