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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Suppress Null Value but have static dimension

Hi all,

I created a pivot table with two dimensions Dimension1 (1,2,3) and Dimension2(a,b,c) created as:

Dimension1\Dimension2abc-
11.12.23.30.0
24.45.56.60.0
37.78.89.90.0
-0.00.00.00.0

But I want a table as

Dimension1\Dimension2abc
11.12.23.3
24.45.56.6
37.78.89.9

With ListBox it is showing Dimension1 as 1,2,3 and Dimension2 as a,b,c  but in table it shows null also.

Also to have static dimension I don't want to check suppress Null values in Dimension tab of Chart Properties.

Is there any other way to do it?

1 Solution

Accepted Solutions
hic
Former Employee
Former Employee

If you by "Static" mean that you always want to show all values of dim 1, you should do the following:

First, instead of

      Sum(Amount)

(or whatever you have as measure) you should use

      0*Sum({1} Amount) + Sum(Amount)

Then suppress the NULL values by checking the appropriate check box.

HIC

View solution in original post

6 Replies
Michiel_QV_Fan
Specialist
Specialist

Why don't you what to use suppress Null. The result will be what you need.

Can you provide more information what you need?

hic
Former Employee
Former Employee

On the "Presentation" tab, there is an option "Suppress Zero-values" and one "Suppress missing values". These normally do the trick.

The second alternative is to check "Suppress When value is NULL" on the dimension tab. Could you please elaborate on why you don't want to check this option?

HIC

mayankraoka
Specialist
Specialist

Hi Anjali,

On script while loading table you can ignore data having null in the filed:

Where  not IsNull(field_name);

Regards,

Mayank

Not applicable
Author

Hi Henric,

I don't want to check "Suppress When value is NULL" on the dimension tab  as I want the dimensions to be static with different selections.

Regards,

Anjali

hic
Former Employee
Former Employee

If you by "Static" mean that you always want to show all values of dim 1, you should do the following:

First, instead of

      Sum(Amount)

(or whatever you have as measure) you should use

      0*Sum({1} Amount) + Sum(Amount)

Then suppress the NULL values by checking the appropriate check box.

HIC

Not applicable
Author

Thanks Henric for the Help.

It worked the way I wanted.

Regards,

Anjali Gupta