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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Krish2459_58
Creator II
Creator II

set analysis help

Hi,

I have to write this below IF caluse in set analyis. Could you please helop.

If caluse:

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

 

Thanks..

 

 

Labels (1)
1 Reply
marcus_sommer

It's not possible because comparing two fields against each other requires a row-level evaluation but set analysis is a column-level evaluation. Further NULL doesn't exists and could be therefore not directly queried within a set analysis.

I suggest to consider to transfer the essential parts into the data-model which might be just:

coalesce(sign([lease end date] - Final_Term_Date), 2) as Flag

and then something like:

count({< Flag = {0, 2}, [continuing occupancy] = {'N'} >} [Lease ref])