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

How to add values for dimension based on condition and rename the combined dimension

Hi,
I want to create a bar graph which will only show volume for brand 'A' and brand 'V'.
Rest of the volume needs to be combined and the new dimension should be named as 'Other Brands'

So, in the graph there will be vol for brand 'A' ,'V' and 'Other Brands' 
where other brands will be the summation of volume of the remaining brands.

Brand Year Vol
     
A 2021 3456
A 2022 5434
B 2021 5434
B 2022 546
V 2021 435
V 2022 5345
K 2021 4234
K 2022 435
W 2021 54

 

Thankyou

Labels (5)
1 Solution

Accepted Solutions
MayilVahanan

Hi

Try like below

=If(Match(Brand,'A' ,'V'), Brand, 'Others')

MayilVahanan_0-1652770492981.png

 

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

3 Replies
MayilVahanan

Hi

Try like below

=If(Match(Brand,'A' ,'V'), Brand, 'Others')

MayilVahanan_0-1652770492981.png

 

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
vikasmahajan

PFA attached Application 

vikasmahajan_0-1652771579449.png

 

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
User0
Contributor III
Contributor III
Author

Thank you @MayilVahanan , your solution worked for me.
Thank you @vikasmahajan , your solution helped me with another query of mine