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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

If statement in load

Morning all

Can someone assist please.

I have the following statement in my load:

LOAD

IF ([EndOfMonth]<[Today],'Overdue',

IF ([EndOfMonth]<=[EndOfCurrentMonth], 'FALLING DUE BY END OF MONTH'))AS Status

Which is working fine.

However, I would like to adapt this to say that if it does not match either of these IF statement then

to put the text 'Overdue'

Thank you

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

May be this:

LOAD

If([EndOfMonth]<[Today],'Overdue',

If([EndOfMonth]<=[EndOfCurrentMonth], 'FALLING DUE BY END OF MONTH', 'OverDue')) as Status

View solution in original post

4 Replies
sunny_talwar
MVP
MVP

May be this:

LOAD

If([EndOfMonth]<[Today],'Overdue',

If([EndOfMonth]<=[EndOfCurrentMonth], 'FALLING DUE BY END OF MONTH', 'OverDue')) as Status

kkkumar82
Specialist III
Specialist III

I think you already have "overdue"

but anyhow

IF ([EndOfMonth]<[Today],'Overdue',

IF ([EndOfMonth]<=[EndOfCurrentMonth], 'FALLING DUE BY END OF MONTH'.'Overdue'))AS Status

sunny_talwar
MVP
MVP

Or may be this:

LOAD

If([EndOfMonth]<=[EndOfCurrentMonth], 'FALLING DUE BY END OF MONTH', 'OverDue') as Status

Not applicable
Author

Thanks Sunny

For the different ways to achieve this.