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

1 Solution

Accepted Solutions
sunny_talwar

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

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

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.