Qlik Community

New to QlikView

Discussion board where members can get started with QlikView.

Announcements
Make your voice heard! Participate in the 2020 Wisdom of Crowds® Survey. BEGIN SURVEY
Highlighted
r20017aaa
Contributor III

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
Highlighted

Re: sum groups in staight table

Use a calculated dimension here

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

Capture.PNG

View solution in original post

3 Replies
Highlighted

Re: sum groups in staight table

Use a calculated dimension here

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

Capture.PNG

View solution in original post

Highlighted

Re: sum groups in staight table

Use this?

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

Before develop something, think If placed (The Right information | To the right people | At the Right time | In the Right place | With the Right context)
Highlighted

Re: sum groups in staight table

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...