Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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))
but the zero values or null values still show in the table/pivot table, please help
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.
Do you think that it might be a real small non-zero number? Like 0.000001?
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
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.
Do you have more than one measure in the table? Suppress zero will work if all the measures are zero.
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))
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
I have done the round and the zero values are still showing
try this
Sum({<Product = {"=Sum(sales)-Sum(margin)<>0"}>}sales-margin)
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.