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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
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