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: 
Not applicable

Creating a label from a numeric value

For specific data I need to translate a number to a label. I have been using an if() function like

if(MANAGER1=5304, 'End Users',
if(MANAGER1 =5569, 'IBM',
if(MANAGER1=5349, 'HP',
'All Others')))

In the example above I am simply summing the revenue by manager, but was to provide a label instead of the manager number used by the system. I was wondering if there was an easier way as this can get pretty long and difficult to manage.

Labels (1)
1 Solution

Accepted Solutions
rwunderlich
MVP
MVP

Use a MAPPING LOAD with either an applyMap() or MAP USING statement. See the Reference Guide section on Mapping.

-Rob

View solution in original post

2 Replies
rwunderlich
MVP
MVP

Use a MAPPING LOAD with either an applyMap() or MAP USING statement. See the Reference Guide section on Mapping.

-Rob

Not applicable
Author

Thanks Rob! I just happened to run across the blog entry after I added the post.