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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
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
MVP
MVP

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
MVP
MVP

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.