Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
I need to remove the entire row when something returns null. While working with dimension, unchecking the include null values works perfectly, The similar action I need to perform in a measure.
This is the final table that I am seeing now
APM NUMBER | PRODUCT | Fiscal year period | Total cost | Product Specific sum |
123 | Apple | 2020001 | 3 | $3 |
123 | Apple | 2020002 | 0 | - |
123 | Apple | 2020003 | 3 | $6 |
456 | Apple | 2020001 | 4 | $10 |
456 | Apple | 2020002 | 5 | $15 |
456 | Apple | 2020003 | 6 | $21 |
678 | Apple | 2020001 | 1 | $27 |
678 | Apple | 2020002 | 0 | - |
678 | Apple | 2020003 | 3 | $30 |
910 | Banana | 2020001 | 1 | $1 |
910 | Banana | 2020002 | 2 | $3 |
Here the total cost column is a sum(field 1 +field2) so it always returns 0 if there is sum(null,0), While calculating cumulative cost the calculations are performed rightly but this issue happens.
Now I want to remove the entire row that returns - ,how to do that?
I tried the combination of if and not isnull but those return the same table.
Has anyone faced this issue? Please help me resolving this
Regards,
Keer
Add-ons > Data handling > untick Include zero values should do it. At least in Qlik Cloud.
Thank you @Ben_P ! This works 🙂
Add-ons > Data handling > untick Include zero values should do it. At least in Qlik Cloud.
Hi,
In the "Add-ons / Data handling" parameters of your Table, if you check "Include zero values" (checked by default) then you will see the lines with 0.
But if you uncheck this parameter, 0 lines will desapear :
Does this answer your question?
Regards,
SRA
Try this
Sum([Total cost]) <> 0
Or
IF([Total cost] <> 0, [Total cost])
Or
IF([Total cost] <> 0, RangeSum(Above(Sum([Field1] + [Field2]), 0, RowNo())))
Thank you @Ben_P ! This works 🙂
Thanks for your response guys! Unchecking Include zero values works fine!
smart solution, thanks
Hi @sbaro_bd ,
Sorry I missed replying , No this does not work in my case.
Thanks for the response.
Thanks,
Keer