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

Hide Rows based on expression in a Straight Table

Hi,

I have a straight table with 7 dimensions and 5 expressions. I want to hide rows of the straight table based on 1 expression(its amount > 10) How can I achieve this. I only want to see rows where the expression amount is greater than 10.

Really appreciate any help.

1 Solution

Accepted Solutions
mmonfort
Creator
Creator

I had something similar as well - I had 2 expressions that needed conditions on them.

If I were you I'd write it like this

Expression 1:

if(sum(Amount)> 10,
if(sum(Profit)> 2,
sum(Amount) ))

Expression 2:

if(sum(Amount)> 10,
if(sum(Profit)> 2,
sum(Profit)))

Does that work for you?

View solution in original post

12 Replies
francisvandergr
Partner - Creator II
Partner - Creator II

if (sum(Amount) > 10,sum(Amount))

Not applicable
Author

Where should I add this? Expression or Dimension?

francisvandergr
Partner - Creator II
Partner - Creator II

In the expression

francisvandergr
Partner - Creator II
Partner - Creator II

Send otherwise an example if you like

mmonfort
Creator
Creator

Per Francis' response and depending on your data you might still see those dimensions show up - if that's the case make sure on the dimensions you have ticked the "suppress when value is null" check box

Not applicable
Author

Thanks, it worked. But now I have 2 expressions, and I need to have a check on both Amount and profit and hide rows if both Amount>10 and Profit > 2. How can I achieve this?

If I'm putting condition on both, it is still showing even if Amount >10 and Profit <2.

vishsaggi
Champion III
Champion III

Can you post the full expression you are using in evaluating this condition. Use OR instead of AND and try?

Not applicable
Author

There are two different expressions which are creating Amount and profit. Where should I put the AND or OR condition?

vishsaggi
Champion III
Champion III

Can you share a sample app if possible please ??