11 Replies Latest reply: Oct 23, 2017 9:08 AM by Amir Mohamed

# Qlik Sense suppress zero/null values in Measure

Hi all,

I have done a lot of searches but I am unable to find a best solution

I have  a Qlik sense application, I am using a table, in the Dimension i have Product and in measure i have sum(sales) - sum(margin)

I get the result but I also get zero or null values, how can I suppress the zero/null values?

I tried using the Add-ons -> Data handling and untick Include zero values but the zero values are still showing

I have tried if(sum(sales) - sum(margin) > 0, sum(sales) - sum(margin), 0)    and i have tried if(sum(sales) - sum(margin) > 0, sum(sales) - sum(margin))

• ###### Re: Qlik Sense suppress zero/null values in Measure

Do you think that it might be a real small non-zero number? Like 0.000001?

• ###### Re: Qlik Sense suppress zero/null values in Measure

Hello Sunny,

I have checked that and I am sure it is a zero number and to make sure I have checked the sales and margin for this product and they are both showing ex; 100k

• ###### Re: Qlik Sense suppress zero/null values in Measure

Again if you are not looking at decimals or looking at too less decimals, you won't know. For example, Sum(Sales) = 96.23000000000001 and Sum(Margin) = 96.23

Both will look 96.23 if you have two decimals, but in fact they are not... may be try this

Round(Sum(Sales)) - Round(Sum(Margin))

• ###### Re: Qlik Sense suppress zero/null values in Measure

I have done the round and the zero values are still showing

• ###### Re: Qlik Sense suppress zero/null values in Measure

Can you show an image of this?

• ###### Re: Qlik Sense suppress zero/null values in Measure

are you sure all measures value is 0 and not ex. 0.001 or NULL ?

Unticking include zero values under add-on ignores all table rows with 0 value NOT NULL in all measures.

• ###### Re: Qlik Sense suppress zero/null values in Measure

Do you have more than one measure in the table?  Suppress zero will work if all the measures are zero.

• ###### Re: Qlik Sense suppress zero/null values in Measure

Hi Shivanand,

Yes, i have 2 more measures that are not null/zero values

but I want to explode them based on the sum above

• ###### Re: Qlik Sense suppress zero/null values in Measure

that's why you are still getting those rows because you have 2 measures not equals to zero.

to get it works you should use an if condition to force 0 value for those measures.

• ###### Re: Qlik Sense suppress zero/null values in Measure

Hi Andrea,

Thank you very much for your help,