Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

sum groups in staight table

Just using expression how can I group sum to have US in one row and all the other countries in another:

so from

2018-01-08_09-48-31.bmp

to

2018-01-08_09-53-29.bmp

Thank you

1 Solution

Accepted Solutions
sunny_talwar

Use a calculated dimension here

=If(Country = 'US', Country, 'Others')

Capture.PNG

View solution in original post

3 Replies
sunny_talwar

Use a calculated dimension here

=If(Country = 'US', Country, 'Others')

Capture.PNG

Anil_Babu_Samineni

Use this?

=If(Country = 'US', Country, 'others') as Calc. Dimension

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
sunny_talwar

The other option is to use dimensions limit like this

Dimension

Country

Expression

Dual(Sum(Score), Sum({<Country *= {US}>} Score) + 0.0000000001)

On the dimension's limit tab, use top 2... but I would suggest you to not take this route...