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

Announcements
Only at Qlik Connect! Guest keynote Jesse Cole shares his secrets for daring to be different. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
claudialet
Contributor III
Contributor III

How to combine IF condition and set analysis ?

    Here is my condition: 

 

=count (if([Days Remaining] <0, [Title ]))

 

Here is my set analysis:  

count ({$< [ Date.autoCalendar.InYTD]={1} ,[Date.autoCalendar.YearsAgo]={0}> } [Title ] )

 

If I try this :

 

count (if([Days Remaining] <0, 

({$< [ Date.autoCalendar.InYTD]={1} ,[Date.autoCalendar.YearsAgo]={0}> } [Title ])) 

This doesn't seem to work . It  returns a  '-'   in the kpi object

 

1 Solution

Accepted Solutions
sunny_talwar

How about this

Count({$<[ Date.autoCalendar.InYTD] = {1}, [Date.autoCalendar.YearsAgo] = {0}, [Days Remaining] = {"<0"}>} [Title ])

View solution in original post

3 Replies
sunny_talwar

How about this

Count({$<[ Date.autoCalendar.InYTD] = {1}, [Date.autoCalendar.YearsAgo] = {0}, [Days Remaining] = {"<0"}>} [Title ])
y_grynechko
Creator III
Creator III

Hey,

why do you want to use the if statement here? 

You can just add another condition to the calculation:

Capture.PNG

claudialet
Contributor III
Contributor III
Author

 It works Sunny ! Thank you so much.