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

IF Statements

Hi,

I am trying to create a field on the load statement that returns Y if the Payment Due Dt is < ReportDate else returns N.  This field can be named Overdue.

Is that possible?

Thanks,

Daniel

Labels (1)
1 Solution

Accepted Solutions
MindaugasBacius
Partner - Specialist III
Partner - Specialist III

I suppose that both fields are in one table than in Script just insert one line like:

Load *

     ,If([Payment Due Dt] < ReportDate, 'Y', 'N') as Overdue

From YourTable;

View solution in original post

3 Replies
MindaugasBacius
Partner - Specialist III
Partner - Specialist III

I suppose that both fields are in one table than in Script just insert one line like:

Load *

     ,If([Payment Due Dt] < ReportDate, 'Y', 'N') as Overdue

From YourTable;

sunny_talwar
MVP
MVP

Do you have Payment Due Dt and ReportDate in the same table? If you do, then it is as simple as doing this

If([Payment Due Dt] < ReportDate, 'Y', 'N') as Overdue

If they are not in the same table, you will have to somehow bring them in the same table....

danielnevitt
Creator
Creator
Author

Thanks for your help