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: 
mohan2391
Creator III
Creator III

Negative values as '0'

hi

how can i display negative values as 0.

For ex: I have a list box of AMOUNT, which is having +ve & -ve values together. Now I want to replace all the -ve values with 0.

5 Replies
sunny_talwar

May be in the script:

If(AMOUNT < 0, 0, AMOUNT) as AMOUNT

Mark_Little
Luminary
Luminary

Hi,

In script as Sunny as suggested.

If you want to on list. use an expression (Same as what is above)

If(Amount < 0, 0, Amount)

Mark

mohan2391
Creator III
Creator III
Author

how to write this in set analysis

sunny_talwar

What is your expression currently?

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

rangemax(Amount,0)


talk is cheap, supply exceeds demand