Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
somthingmendi123
Contributor III
Contributor III

if function

In the if function, how can I condition that if there is a minus in a certain table then a minus will be displayed in another table. I am attaching a code I wrote but it does not give a good result. If(TotalPriceBeforVat < '0', Quantity = '-*' , Quantity) as CorrectedQuantity.

 

thenks

Labels (1)
1 Solution

Accepted Solutions
Chanty4u
MVP
MVP

Try this may be

IF(TotalPriceBeforVat < 0, '-' & Quantity, Quantity) AS CorrectedQuantity

 

View solution in original post

2 Replies
Chanty4u
MVP
MVP

Try this may be

IF(TotalPriceBeforVat < 0, '-' & Quantity, Quantity) AS CorrectedQuantity

 

somthingmendi123
Contributor III
Contributor III
Author

Thanks
It works