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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Suppressing Rows

I have a requirement to suppress any row in a chart if any of the expression values is negative. Do I need to put IF in each Expression ? or there's a better way to handle this ?

For example,

TypeIndustry1 SalesIndustry2 SalesIndustry3 SalesIndustry4 SalesIndustry5 SalesIndustry6 Sales
A955-20846
B0-12120
C58756089524

In above example, I need to show only one row having Type as 'B' since rest of the rows are having negative values.

If I write IF condition in each expression that would be like looking for all 6 Expressions in each Expression.

7 Replies
Not applicable
Author

Perhaps try sum ({<sales = {'>=0'}>}sales)

swuehl
MVP
MVP

As far as I see, you either need to add set analysis to each of your expressions to filter only your positive sales, or add if() statements to each of your expressions (which can reference an expression in a separate hidden column, if you want).

iktrayanov
Creator III
Creator III

See attached

Not applicable
Author

Hi Ivan,

I am using personal edition, please share the expression script ,it helpful for us.

Regards,

Raja.

iktrayanov
Creator III
Creator III

Raja,

My dimension is Type.

My first expression is FLAG:

If(Sum([Industry1 Sales])=0,1,Sum([Industry1 Sales]))*

If(Sum([Industry2 Sales])=0,1,Sum([Industry2 Sales]))*

If(Sum([Industry3 Sales])=0,1,Sum([Industry3 Sales]))*

If(Sum([Industry4 Sales])=0,1,Sum([Industry4 Sales]))*

If(Sum([Industry5 Sales])=0,1,Sum([Industry5 Sales]))*

If(Sum([Industry6 Sales])=0,1,Sum([Industry6 Sales]))

and I have my Dimension Limits set to

Then I hide the expression

Regards,

Ivan

Clever_Anjos
Employee
Employee

Ivan shows us a very interesting option.

A more compact FLAG could be

fabs((Sum([Industry1 Sales])>=0)*

(Sum([Industry2 Sales])>=0)*

(Sum([Industry3 Sales])>=0)*

(Sum([Industry4 Sales])>=0)*

(Sum([Industry5 Sales])>=0)*

(Sum([Industry6 Sales])>=0))

Not applicable
Author

Another one is to multiply all expressions in an other column

if there is one 0 value the result will be 0

So you can put play only with this column to shwo the line

best regards

Chris