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

Announcements
Streamlining user types in Qlik Cloud capacity-based subscriptions: Read the Details
cancel
Showing results for 
Search instead for 
Did you mean: 
MaSo1996
Contributor II
Contributor II

Create chart, that shows total, but hide 2 members of dimension

Hello everyone,

I'd like to create a chart, that presents realisation of the plan in 2025 - I have 7 members of sales division and together they made 10 mln - I would like to create a chart, that shows sales for each salesman, but I don't want 2 of them to be displayed in the chart - so basicly:

Sales 202510 000 000,00 zł 
Salesman 11 000 000,00 zł 
Salesman 22 000 000,00 zł 
Salesman 31 500 000,00 zł 
Salesman 4700 000,00 zł 
Salesman 5230 000,00 zł 
Salesman 63 000 000,00 złnot visible
Salesman 71 570 000,00 złnot visible

 

Is it possible to achieve that?

Labels (2)
3 Replies
marcus_sommer

Excluding certain dimension-values might be done with something like:

sum({< Salesman -= {6, 7}>} Sales)

but if some values should be hidden but included in the totals it becomes more complicated and it may need approaches like:

if(dimensionality() = 0, sum(Sales),
   sum({< Salesman -= {6, 7}>} Sales))

which may also cause some confusion in the interpretation. An alternatively may be to adjust the dimension with:

if(match(Salesman, 6, 7), 'Other', Salesman)

Daniel_Castella
Support
Support

Hi @MaSo1996 

 

I think your best shot is to exclude the Salesman 6 and 7 in the Set Analysis:

sum({<Salesman-={'Salesman 6','Salesman 7'}>}Sales)

 

And then write as Dimension label "Sales 2025" for Salesman column and "=sum(total Sales)" for Sales column. You will end with a table like this:

Daniel_Castella_0-1768911351847.png

You can also aggregate the data in the backend and concatenate it to the main table, but it is not very fancy to do it in that way. 

 

Let me know if this works for you.

 

Kind Regards

Daniel

Marijn
Creator II
Creator II

Hi @MaSo1996 ,

You can achieve this by using this set expression:

=if(sum({$<Name-={'Salesman6','Salesman7'}>}Sales)>0,
sum(Sales))

This calculates sales for all, but doesn't show it for Salesman6 and Salesman7. This way your Total includes all.

You'll get a table that looks like this:
Marijn_0-1769612195558.png

If you turn off the table setting Add-ons/Data handling/Include zero values:

Marijn_1-1769612262724.png

 

It will look like this:

Marijn_2-1769612289249.png

 

Hope this helps!