Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
arusanah
Creator II
Creator II

Application Optimization help

Count({$<[Disenrolled Indicator]={'Y'}>}distinct([Recipient Identifier]))

or

If(Disenrolled Indicator]='Y', Count([Recipient Identifier]))



Which one of these expressions is better to use ?

1 Solution

Accepted Solutions
sunny_talwar

Depends on where you are using it. But generally speaking, Set Analysis is more efficient compared to using if statement.

View solution in original post

3 Replies
sunny_talwar

Depends on where you are using it. But generally speaking, Set Analysis is more efficient compared to using if statement.

alexandros17
Partner - Champion III
Partner - Champion III

Absolutely the first one, infact set analysis optimize execution.

I'm not sure that the second returns correct values...

arusanah
Creator II
Creator II
Author

I'm using it in Dashboards