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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
gerhardl
Creator II
Creator II

Change data value

Hi,

I have a field called [Decision Result]. Value would be eithe A or D.

How can I change my script to show A as "Approved" and D as "Declined"?

Thanks,

G

1 Solution

Accepted Solutions
pat_agen
Specialist
Specialist

hi,
there are many ways but the easiest is simply adding a new field (or replacing your existing field) like this

load

if( [Decision Result]='A','Approved',
if( [Decision Result]='D','Declined')) as [Decision Result]
....

if you have more complex transformations mapping tables are the way to go, look them up with the search facility.

hope this helps

View solution in original post

3 Replies
suniljain
Master
Master

if(Decision ='A','Active'.

if(Decision = 'D'.'Declined')) as Decision_Type

pat_agen
Specialist
Specialist

hi,
there are many ways but the easiest is simply adding a new field (or replacing your existing field) like this

load

if( [Decision Result]='A','Approved',
if( [Decision Result]='D','Declined')) as [Decision Result]
....

if you have more complex transformations mapping tables are the way to go, look them up with the search facility.

hope this helps

Not applicable

Hi

Try

if ( [Decision Result] = 'A', 'Approved', 'Declined') as [Decision Result],

Regards

Anders