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

Grouping Values from a field

I have several case prefixes that I need to place in groups.

Case Types:

G

SA

BR

OR

MF

I need groupings:

Case Type | Group

G = Global

SA = TC/PC

BR = TC/PC

OR = TC/PC

MF = TC/PC

So that I have a QV field to choose either GLOBAL or TC/PC

Any help would be apprieciated.

Labels (1)
3 Replies
Anonymous
Not applicable
Author

Looks like you need this:

if([Case Type]='G', 'Global', 'TC/PC') as Group

Regards,

Michael

rwunderlich
MVP
MVP

Look at MAPPING in the Help and Ref Guide.

-Rob

bgerchikov
Partner - Creator III
Partner - Creator III

Hmmm... My previous post got lost for some reason.

Here is another suggestion:

Sinse you have only 2 possible values for Group field, you can use IF expression:

If([Case Type] = 'G', 'Global','TC/PC') as Group;

good luck!