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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

If statement to duplicate and modify row

Does anyone know of a way that I can do an IF statement in a load script, when the condition is true the duplicate the row and make a modification to a value in a field. ie;

If(Jobtitle like 'Director' and Region like 'East', (copy all rows and modify [Manager] = 'newname'), (do nothing))

1 Reply
sunny_talwar

May be you are looking for Where statement:

Table:

LOAD Manager,

          Jobtitle,

          Region,

          ...

FROM Source;

Concatenate (Table)

LOAD 'Newname' as Manager,

          Jobtitle,

          Region

Resident Table

Where Jobtitle like 'Director' and Region like 'East';