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: 
markgraham123
Specialist
Specialist

Set analysis statement for If statement

Hi All,

Regarding performance, Set analysis or If statement???

Which would work quicker.

Could someone help me in scripting the below statement using Set analysis

=count(DISTINCT(If(Name='John',Awards)))

1 Solution

Accepted Solutions
marcus_malinow
Partner - Specialist III
Partner - Specialist III

Set analysis is definitely quicker!

count({$<Name={'John'}>} DISTINCT Awards)

View solution in original post

2 Replies
marcus_malinow
Partner - Specialist III
Partner - Specialist III

Set analysis is definitely quicker!

count({$<Name={'John'}>} DISTINCT Awards)

markgraham123
Specialist
Specialist
Author

Thanq Marcus