Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
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