Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
mingyu
Contributor II
Contributor II

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 II
Contributor II
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 II
Contributor II
Author

Okay. thank you.