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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Load a sub-set of data

Hi, I'm a newby whjo needs some help!.

I'm loading a table of risk data, but I want to load an aditional sub-set of it as well.

So as well as the 'Risk Owner' field, I want to develop a seperate field of 'Active Risk Owner', only where the 'Risk Status' is 'Active'.

I've been trying to figure out how to do this in the load script using IF and THEN statements, to no sucesses.

If [Status] ='Active' Then [Risk Owner] as [Active Risk Owner],

Am I close??

Any suggestions??

1 Solution

Accepted Solutions
Colin-Albert
Partner - Champion
Partner - Champion

You can use If within the load statement.

RiskData:

Load

     Status,

     [Risk Owner],

     If([Status] ='Active' , [Risk Owner]) as [Active Risk Owner],

     ....

View solution in original post

4 Replies
Colin-Albert
Partner - Champion
Partner - Champion

You can use If within the load statement.

RiskData:

Load

     Status,

     [Risk Owner],

     If([Status] ='Active' , [Risk Owner]) as [Active Risk Owner],

     ....

Not applicable
Author

Try this,

if([Status] ='Active',[Risk Owner]) as [Active Risk Owner]

Not applicable
Author

Thanks Colin - i wasn't that far off after all!

really appreciate your help

Not applicable
Author

Thanks for that - it works now!