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: 
Not applicable

Expression inside IF Statement

I am having issues with the following if statement:

What am I doing wrong here ? I need to expand: Date(AddMonths(Max(MonthOfService), -13), 'YYYY-MM') on a Dim.

IF(MonthOfService >= $(=Date(AddMonths(Max(MonthOfService), -13), 'YYYY-MM') ),MonthOfService , Null() )

I've also tried:

IF(MonthOfService >= Date(AddMonths(Max(MonthOfService), -13), 'YYYY-MM') ,MonthOfService , Null() )


but no luck.

2 Replies
ishanbhatt
Creator II
Creator II

Hi Val,

Create variable of Date(AddMonths(Max(MonthOfService), -13), 'YYYY-MM') and use that in Expression. May be that help.




sunny_talwar
MVP
MVP

Try this:

If(MonthOfService >= Date(AddMonths(Max(TOTAL MonthOfService), -13), 'YYYY-MM'), MonthOfService, Null())