Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
alexbjorlig
Creator
Creator

Suppress Zero-Values in straight table with two measures without if

Hi Qlik Community.

How can I suppress Zero-Values in a straight table, when having two measures without if statements?

If i only have one measure it works:

Part1.PNG

But when I add a second measure - I can't suppress!

Part2.PNG

I have attached the workbook...

Thanks for the awesome help!

1 Solution

Accepted Solutions
settu_periasamy
Master III
Master III

Hi,

That is because of your Expression 2. (you have the value in 2nd Measure). 

Capture.JPG

you can  use 'Suppress Zero-Values' in Presentation Tab.

But, In this case you should use if condition.

Like,  if(Sales>0, Sales+1)

View solution in original post

6 Replies
settu_periasamy
Master III
Master III

Hi,

That is because of your Expression 2. (you have the value in 2nd Measure). 

Capture.JPG

you can  use 'Suppress Zero-Values' in Presentation Tab.

But, In this case you should use if condition.

Like,  if(Sales>0, Sales+1)

alexbjorlig
Creator
Creator
Author

I just don't understand why it is not possible to Suprress Zero-Values in all measures?

The reason I ask is because I have multiple tables, where I now have to edit many expressions.

Thanks for the help anyway

jagan
Luminary Alumni
Luminary Alumni

Hi,

To Supress zero values all expressions values should be zero, then only entire row will hide.  If you want to hide the row if first measure value is zero then use below condition for second measure

Expression1: Sum(Sales)

Expression2 = If(Sum(Sales) > 0, [Sales+1 Expression])

**Replace  [Sales+1 Expression] & Sum(Sales) with your actual expressions.

Regards,

Jagan.

Not applicable

What is wrong with if statements?

(if(SUM(Sales)=0,'',sum(Sales))

alexbjorlig
Creator
Creator
Author

Hi Harry. There is nothing wrong with if statements, but as I wrote I have multiple tables - and wanted a quick way to suppress zero values.

Not applicable

Try the “Expression Overview” (CTRL-ALT-E) for mass update of the expressions.