Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

If else or

I need your help.

I have field WOST tha can has four possible values : 'R' or "D" or "C" or "L".

R = Release

D= Complete

C= Delete

L = Close

How can translate into the script this instruction :

if WOSTS = 'R' then MYFILD = 'Release' or WOST= 'D' then MYFILD = 'Complete' or WOST= 'C' then MYFILD = 'Delete' or .....

thank you

2 Replies
Miguel_Angel_Baeyens

Hello,

Use a mapping table:

CodeNameMap:MAPPING LOAD * INLINE [ CODE, DESCRIPTIONR, ReleaseD, CompleteD, DeleteL, Close]; // or whatever the source is Table:LOAD *, ApplyMap('CodeNameMap', WOST) AS MYFILDFROM Table;


Hope that helps

Not applicable
Author

GREAT t!!!
Many thanks

Regards