Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Display missing categories in pivot table

Hello,

I have a requirement where I need to display the prod. categories which do not have any sales in any of the quarters in the cross tab. Also the requirement is to show the total sales in all quarters per prod. category (Check the last column added in the sheet).

Please check the attached file for your reference. All new things required are highlighted in yellow.

Thank you.

7 Replies
Anonymous
Not applicable
Author

First, make sure that "suppress zero-value" is not checked.  It is checked by default - see Presentation tab.

For totals - check "show partial sums" for the top dimensions.  Same tab.

Regards,

Michael

Not applicable
Author

Hi Mike,

Suppress Zero is not checked. Also "Show Partial Sums" displays the sum at the bottom. I need the total in the end of the row.

Piyush

Anonymous
Not applicable
Author

Piyush,

What about "suppress missing"?  In general, it is often better to deal with this on the data model level - load 0s when there are no sales.  Even if you add 0s to each Prod_Cat/Quarter combination, it wouldn't hurt.

Try to add "partail" sums to another dimension.

If it doesn't help - can you attach your application?

Regards,

Michael

Not applicable
Author

Can you upload the qvw?

Clever_Anjos
Employee
Employee

This case is kind of 'classical'.

Your requirement is to show a data that 'is not there'.

The usual approach is load '0's for each combination of dimensions at your script. Doing this way, you´ll have the lines you wanna see.

Please post a sample of your data, I´ll write some code to help you.

javier_florian
Creator III
Creator III

Hi Piyush,

Maybe are null values over dimension, try to check in both dimensions (Prod and Prod_Cat):

preminqlik
Specialist II
Specialist II

write this expression in script,

if(isnull(sales),0,Sales)                    as                      New_Sales

then use asusal expression in front end,

sum(New_Sales)

then take pivot, take Prod., Product Category Quarter, then use the above expression ,and drag quarter upside right corner as u did, then check mark show total at the bottem...hope this help

Regards

premhas