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: 
sharon9
Contributor II
Contributor II

Combine 2 fields with condition during data load

Hi, still somewhat new to scripting.  I have a Status and Progress field which I need combine.  If Status = Approved, then replace status with Progress value.  I'd like to do this during data load.  

Status values:Progress values:So new Status field values would contain:

Approved

On Hold

Cancelled

Not Started

Started

Completed

 

Not Started

Started

Completed

On Hold

Cancelled

 

1 Solution

Accepted Solutions
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

if(Status = 'Approved', Progress, Status) as Status

-Rob

View solution in original post

2 Replies
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

if(Status = 'Approved', Progress, Status) as Status

-Rob

sharon9
Contributor II
Contributor II
Author

Thank you for validating what what I originally had.  I realized my script was breaking because I had two status field that were not unique....DOH!