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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

renaming a value in the field while loading the data

Hi,

I have a field 'Brands' in my source data. I've loaded the field in my model:

Load

[Brands]

...

I'd like to rename one particular value in this field while loading the data. I'd like to rename 'Total' into 'All Market'. How can I do it in the script?


Thank you in advance,


Larisa

Labels (1)
1 Solution

Accepted Solutions
maxgro
MVP
MVP

load

     .....,

     if(Brands='Total', 'All Market', Brands) as Brands,

     .....

View solution in original post

3 Replies
maxgro
MVP
MVP

load

     .....,

     if(Brands='Total', 'All Market', Brands) as Brands,

     .....

swuehl
Champion III
Champion III

LOAD

     if([Brands]='Total','All Market', [Brands]) AS [Brands],

...

For a more sustainable solution, you can also look into a MAPPING solution.

Anonymous
Not applicable
Author

Thank you!