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

Announcements
April 13–15 - Dare to Unleash a New Professional You at Qlik Connect 2026: Register Now!
cancel
Showing results for 
Search instead for 
Did you mean: 
prajapatiamar38
Creator II
Creator II

Set Analysis?

Hi,
How can we write following expression in set analysis:

=Count(distinct if((CR1_Jobcardclosed_Date-CR1_Jobcard_Date))<=2,CR1_Total_Unscheduled_Jc))

Plz Help......

Thanks

11 Replies
tresB
Champion III
Champion III

Sorry, I did not notice carefully, there are two fields (and you are actually trying to calculated the difference). Try:

=Count({<CR1_Total_Unscheduled_Jc={"=CR1_Jobcardclosed_Date-CR1_Jobcard_Date<=2"}>} distinct CR1_Total_Unscheduled_Jc)

prajapatiamar38
Creator II
Creator II
Author

This seems to be which I am looking for.

It works fine now.

Thank you for your help.