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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
eliran
Creator III
Creator III

Show row data if expression is not null or equals to 0

Hi all,

I would like to show data in a table but only if a certain expression is larger than 0 or is'nt null.

Using 'Suppress when value is null' is not appropriate of course because it relates to the dimension.

I thought about set analysis, but i will need to do it in all my expressions, any easier way I'm missing out?

Thanks,

Eliran.

1 Solution

Accepted Solutions
Miguel_Angel_Baeyens

Hello Eliran,

You can add in your set analysis the condition that the sum of something is greater than zero, so the aggregation will take place for those values in dimension fields that match that condition, for example, sum of sales for customers who have bought more than 1000 (say any other condition)

Sum({< Customer = {"=Sum(Sales) > 1000"} >} Sales)

But yes, if you want to do this in your chart, you shoul add this to all the expressions in your chart.

Although I don't recommend it, it's possible to use a calculated dimension so only the Customers who have bought more than 1000, but it will take longer to render in the dimension than in the expression.

Hope that makes sense.

Miguel Angel Baeyens

BI Consultant

Comex Grupo Ibérica

View solution in original post

2 Replies
Miguel_Angel_Baeyens

Hello Eliran,

You can add in your set analysis the condition that the sum of something is greater than zero, so the aggregation will take place for those values in dimension fields that match that condition, for example, sum of sales for customers who have bought more than 1000 (say any other condition)

Sum({< Customer = {"=Sum(Sales) > 1000"} >} Sales)

But yes, if you want to do this in your chart, you shoul add this to all the expressions in your chart.

Although I don't recommend it, it's possible to use a calculated dimension so only the Customers who have bought more than 1000, but it will take longer to render in the dimension than in the expression.

Hope that makes sense.

Miguel Angel Baeyens

BI Consultant

Comex Grupo Ibérica

eliran
Creator III
Creator III
Author

Thanks Miguel,

I thought that was the case.

Regards,

Eliran.