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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
mingyu
Contributor III
Contributor III

How to let the count change when two filters changes?

Hi,

I want to count the distinct subjects only when 'TrialPhase' and 'GroupDose' changes.  I tried the following, but it does not work

COUNT(DISTINCT TOTAL {<TrialPhase, GroupDose>} SUBJECT)

Please help

Thanks

Labels (4)
1 Reply
Ahidhar
Creator III
Creator III

try this 

if(getselectedcount(TrialPhase)>0 and getselectedcount(GroupDose)>0,null(),count(SUBJECT))