Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
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

rangemax(Amount,0)


talk is cheap, supply exceeds demand