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: 
richard24best
Creator II
Creator II

Multiple IF condition and Distinct count

Hi All,

Need your support and advice.

I have 3 columns Column1, 2 and 3

want to get an expression -  distinct count of Column3 when Column 1 = A,B,C and Column 2 = UK, US.

Please assist.

Thanks,

Richard

Labels (1)
1 Solution

Accepted Solutions
brijesh_fofadiy
Contributor III
Contributor III

Hi Richard,

 

You may write like this in an expression tab:

Count(distinct {<Column1={'A','B','C'},Column2={'US','UK'}>}Column3)

 

Regards,

Brijesh

 

View solution in original post

2 Replies
brijesh_fofadiy
Contributor III
Contributor III

Hi Richard,

 

You may write like this in an expression tab:

Count(distinct {<Column1={'A','B','C'},Column2={'US','UK'}>}Column3)

 

Regards,

Brijesh

 

richard24best
Creator II
Creator II
Author

Hi Brijesh,

Thank you for quick support. It worked.

Regards,

Richard