Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
mingyu
Contributor II
Contributor II

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))