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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Add row of zeroes where dimension doesn't exist

I am using a pivot table with two dimensions. The second dimension is a calculated dimension that is grouping the data into 3 categories. The problem I am having is that for some of the top dimension values there aren't always all 3 categories in the second dimension. I would like to display all 3 possible second dimension values for each first dimension value regardless of whether there are any rows in my data set that have that first dimension and second dimension combo - just put zeroes where this is the case. Is this possible?

4 Replies
simondachstr
Specialist III
Specialist III

What is your expression? Try playing around with your dimension & chart properties (Display all values/deactivate any suppress nulls/0's).

robert_mika
Master III
Master III

Try to use Dimensionality in your IF statement

Look for more detail here

How to use - Dimensionality()

danieloberbilli
Specialist II
Specialist II

Pivot tables generally suppress missing values - sometimes it works depending on the data, dimension and expressions

E.g. try to use this as an expression to 'write/force' a 0 in the table...unfortunately not a universal solution

orig:

sum(F1)

try:

if(sum(F1)=0,0,sum(F1))

Anonymous
Not applicable
Author

if(hold_1 = '043' or hold_2 = '043' or hold_3 = '043' or hold_4 = '043' or hold_5 = '043' or other= '043', 'ment', If(cd = 'DD' or cd = 'SV', 'Core', 'Cert'))

If this is the if-statement I am using, how do I get the dimension 'ment' to appear even when it doesn't satisfy the if-statement... I would like 'ment' to be displayed with all zeroes if it does not satisfy the if-statement