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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
mingyu
Contributor III
Contributor III

Filtering data issues

Qlik Sense uses TrialPhase, GroupDose, Type, and AEGrade as filtering dimensions. I need to create an expression where the result changes only with the filtering of TrialPhase and GroupDose. When filtering Type or AEGrade, the expression's result should remain unaffected. The objective is to achieve count(distinct SUBJECT).

I've written an expression, but the results are the opposite of what I intended.

count({<TrialPhase=,GroupDose=>} DISTINCT SUBJECT)

Labels (4)
5 Replies
Parthiban
Creator
Creator

Hi,

count({<Type=,  AEGrade=>} DISTINCT SUBJECT)

mingyu
Contributor III
Contributor III
Author

If that's the case, would I have to write for each column if there are many, or is there another way?

Parthiban
Creator
Creator

Try,

=Count({$<[$(=Concat({1<$Field-={'TrialPhase','GroupDose'}>}distinct $Field,']=,[')&']=')>} DISTINCT SUBJECT)

mingyu
Contributor III
Contributor III
Author

Okay. thank you.