Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
kwarren1
Partner - Contributor III
Partner - Contributor III

Straight Table - Only show field names where expression > 0

Hello,

Is it possible to only display the DepartmentName within a Straight Table if the expression column is greater than 0?

List Box.PNG

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Are you maybe talking about a list box with an expression?

Maybe use a field expression (select <expression> from field drop down on general tab) like

=Aggr( If(Sum({<DepartmentName>} Sales) >0, Only({<DepartmentName>} DepartmentName)), DepartmentName)

Replace Sum(Sales) with your expression.

View solution in original post

4 Replies
Anonymous
Not applicable

ocultar zero.JPG

MarcoWedel

Hi,

actually that's default behaviour. Try checking "Suppress Zero-Values" on the Presentation tab of the straight table properties.

Please post a sample qvw to demonstrate if it's not working.

hope this helps

regards

Marco

swuehl
MVP
MVP

Are you maybe talking about a list box with an expression?

Maybe use a field expression (select <expression> from field drop down on general tab) like

=Aggr( If(Sum({<DepartmentName>} Sales) >0, Only({<DepartmentName>} DepartmentName)), DepartmentName)

Replace Sum(Sales) with your expression.

kwarren1
Partner - Contributor III
Partner - Contributor III
Author

Wow. Way to read between the lines on that one! Sorry about misleading with the Straight Table, I did mean List Box. The Aggr formula worked brilliantly!

Thank You!