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: 
jakelongnaruto
Contributor II
Contributor II

Hiding rows that have negative values in Qlik Sense HUB

Hi,
How to remove/hide ROWS that have negative value in Qliksense Web.
From this example, I would like to hide rows B and C because Spend is negative.

jakelongnaruto_0-1671551647054.png


Been searching old topics but nothing works.
Thank you in advance

1 Solution

Accepted Solutions
jakelongnaruto
Contributor II
Contributor II
Author

It works finally.

If(SQMSpend < 0, Null(), Expression-related-to-XYZ-measure)

There are many more measures columns. So I applied the expression above to all of them. Using If(SQMSpend < 0, Null(),  as the base + Expression-related-to-XYZ-measure

 

View solution in original post

6 Replies
BrunPierre
Partner - Master II
Partner - Master II

Sum({$<Supplier={"=Sum(Spend)>0"}>} Spend)
jakelongnaruto
Contributor II
Contributor II
Author

That looks all strange to me.
I'm using Qliksense HUB. All I can edit is from here.

jakelongnaruto_0-1671573000218.png

 

BrunPierre
Partner - Master II
Partner - Master II

What's the expression for the SQMSpend?

jakelongnaruto
Contributor II
Contributor II
Author

Nothing actually. 
SQMSpend is just spend. The "//if(sum.....)" is just a comment out

BrunPierre
Partner - Master II
Partner - Master II

Maybe using an if statement?

If(SQMSpend < 0, Null(), SQMSpend)

jakelongnaruto
Contributor II
Contributor II
Author

It works finally.

If(SQMSpend < 0, Null(), Expression-related-to-XYZ-measure)

There are many more measures columns. So I applied the expression above to all of them. Using If(SQMSpend < 0, Null(),  as the base + Expression-related-to-XYZ-measure