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: 
Not applicable

Suppress when value is null chart issue

Is it possible to suppress a dimension when the value is null and have an expression that calulates a percentage and the total of that percentage adds up to 100.

See the example below.

PersonSales% of Total Sales
Sam 1010%
John2525%
Mark5050%
TOTAL8585% instead of 100%

--in this example, there are 15 sales that are 'null' and I don't want to include. However, I still want the % to add up to 100 when I suppress null values

6 Replies
swuehl
MVP
MVP

It seems I don't understand how you calculate your % from the sales values (not even the detail lines).

Could you explain how your calculation works?

Or post a small sample QVW?

swuehl
MVP
MVP

Or maybe your sales are not NULL, but the dimension Person these sales are linked to?

swuehl
MVP
MVP

What about

=Sum(Sales) / $(=Sum(Sales))

vishsaggi
Champion III
Champion III

Check the box Supress when value is Null in the Dimensions tab! Try like this as attached.

Updated!

lironbaram
Partner - Master III
Partner - Master III

hi

use this expression to calculate the share

sum(Sales)/sum({<Person=p(Person)>}Total Sales)

Not applicable
Author

Thanks everyone, I was able to figure it out with all of your help!! Sum(Sales)/$(=Sum(Sales) worked!!!!