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

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Nested Ifs

I have a spreadsheet input file that I am trying to manipulate in the load script.  In the below script portion, I need to use the [Agency Name] as is or conditionally generate two new values being 'Cancelled Shift' or 'CL' respectively.

    IF ([External Agency] <> ' ' and ([Request Status]  = 'Not Fillable'), 'Cancelled Shift',[External Agency]) as [External Agency],

    IF ([External Agency] =  ' ' and ([Request Status]  = 'Filled'), 'CL',[External Agency]),

as written, the first IF statement is executed correctly but the second IF statement is ignored.  Any help would be much appreciated.

10 Replies
Anonymous
Not applicable
Author

Thanks for your help.