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

Hi,

Please seggest to get setanalysis expression for the below if logic.

 

if(num([lease end date])<Addmonths($(vTodaysDateNum),18) and num([lease end date])>$(vTodaysDateNum),if (match(status,'Current','Live'),count([Lease ref]),0),0)

 

Thanks..

Labels (1)
2 Replies
F_B
Specialist II
Specialist II

count({<[lease end date] = {"<=$(=AddMonths($(vTodaysDateNum), 18)) >$(vTodaysDateNum)"}, status = {"Current", "Live"}>} [Lease ref])

MeehyeOh
Partner - Creator
Partner - Creator

HI, @Krish2459_58 

I think it will be possible with the formula below.

Is the [release end date] field the date type field? If so,apply date format in the [release end date] field to 'dateformat'.

 Count({< [lease end date] = {">$(=Date($(vTodaysDateNum),'dateformat))' <$(=Date(Addmonths($(vTodaysDateNum),18),'dateformat'))"}, status = {'Current', 'Live'} >} [Lease ref])