Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
sivaprasadv
Contributor
Contributor

Need help on Dimension Grouping

Hi Folks,

I need help on dimension grouping where I have data attached like file attachment, I need it as groups like GroupA, GroupB, Group C and Others. If, CID are CN,IN,BNG,PAK those are "Group A", if CID are SA then those are "Group B",if CID are  US then those are "Group C" and remaining are "Others". So here I need calculation expression to get result like above.

 

Thanks

Labels (2)
1 Solution

Accepted Solutions
tresesco
MVP
MVP

Try like:

Pick(Match(CID, 'CN','IN','BNG','PAK', 'SA', 'US')+1,
             'Others', 'Group A','Group A','Group A','Group A','Group A', 'Group B', 'Group C')   as Group

View solution in original post

2 Replies
tresesco
MVP
MVP

Try like:

Pick(Match(CID, 'CN','IN','BNG','PAK', 'SA', 'US')+1,
             'Others', 'Group A','Group A','Group A','Group A','Group A', 'Group B', 'Group C')   as Group

sivaprasadv
Contributor
Contributor
Author

Hi Tresesco,

Thanks for reply and helping,please help me like this for all learners like me....

just a small correction updating the expression for my requirement and please make a note this

<!––

Pick(Match(CID, 'CN','IN','BNG','PAK', 'SA', 'US')+1,
             'Others', 'Group A','Group A','Group A','Group A', 'Group B', 'Group C')

!––>

 

this one works exactly what I want,once again thank you so much