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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Krish2459_58
Creator II
Creator II

set analysis help

Hi,

I have the below if cause and I need to do this syntax in set analyis. Please help.

 

if(num([lease end date]) = num(Final_Term_Date) or isNull(Final_Term_Date) and [continuing occupancy] = "N*",[Lease ref])

 

Thanks..

Labels (1)
1 Solution

Accepted Solutions
Vegar
MVP
MVP

Why do you want to use SET analysis for this? Can't you use it as it is?

First. There are no aggregation  done in your example, in order to do set analysis you need to use a aggregation function such as avg or sum.

Second Set analysis is not optimal for the inter record comparisons that you are doing in the example, it is neither straight forward to implement the OR request.

Third. Null values complicates things in set analysis, because you can't explicitly select null values.

Unless you are keeping some information out of the post I suggest you keep your if statement. 

View solution in original post

2 Replies
Krish2459_58
Creator II
Creator II
Author

@taotao886 don't use this community to promote gaming apps.

Vegar
MVP
MVP

Why do you want to use SET analysis for this? Can't you use it as it is?

First. There are no aggregation  done in your example, in order to do set analysis you need to use a aggregation function such as avg or sum.

Second Set analysis is not optimal for the inter record comparisons that you are doing in the example, it is neither straight forward to implement the OR request.

Third. Null values complicates things in set analysis, because you can't explicitly select null values.

Unless you are keeping some information out of the post I suggest you keep your if statement.