Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
CanOls
Contributor III
Contributor III

Replace values in field

Hi Qlik Community

I would like to compare data across two different tables. Both tables have a field that contain comparable data. They have a field in common that I use as a key to connect the two tables.

The problem is that the naming convention in the two tables is not quite the same. The field contains five possible values but two of the values are named differently. Is it possible to change the name of the values in the one table so that they match up in my Qlik App? 

Any help is appreciated

Casper

Labels (5)
1 Solution

Accepted Solutions
CanOls
Contributor III
Contributor III
Author

A co worker helped me out This solution did the trick.

     if ('FieldName'='FieldValue', 'NewValue, if( 'FieldName'='OtherFieldValue','OtherNewValue', FieldName)) as FieldName

 

This worked in the script. 

View solution in original post

2 Replies
CanOls
Contributor III
Contributor III
Author

A co worker helped me out This solution did the trick.

     if ('FieldName'='FieldValue', 'NewValue, if( 'FieldName'='OtherFieldValue','OtherNewValue', FieldName)) as FieldName

 

This worked in the script.