Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
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

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
MVP
MVP

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!