Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Show percentage in pivot table

I have a pivot table:

Column dimensions: country, tax_class

Row dimension: if(status=0, age) //suppress null values

Measure #: count(distinct product_name)

Measure %:

I want to show the percentage against the totals at the top. I tried count(distinct product_name)/count(total <age> distinct product_name), but it shows the following:

pivot.JPG

Another question:

There are some dash '-' in the table. They are supposed to be 0. Why does it show - instead of 0? Can this be fixed?

1 Solution

Accepted Solutions
Gysbert_Wassenaar

Try count(distinct product_name)/count(total <country,tax_class> distinct product_name)


talk is cheap, supply exceeds demand

View solution in original post

5 Replies
Gysbert_Wassenaar

Try count(distinct product_name)/count(total <country,tax_class> distinct product_name)


talk is cheap, supply exceeds demand
Not applicable
Author

Wonderful. This works!

Another question if you don't mind:

There are some dash '-' in the table. It is supposed to be 0. Why does it show dash instead of 0? Can this be fixed?

vinieme12
Champion III
Champion III

uncheck  suppress zero values

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
Not applicable
Author

I already check "show zero values". But some zero values are shown; some are not

sunny_talwar

Look here to check out the difference between null and missing value

NULL handling in QlikView