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

Announcements
Note: You may notice some temporary visual or styling issues in the Community. Our vendor is actively investigating.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Change Positive Number to Negative and Vice Versa

Hi,
I need to change positive number to negative, and positive number to negative in the same column.
Any suggestion?
Amount
923.54
-455.60
835.65
to
Amount
-923.54
455.60
-835.65
Regards
Benjamin Marcus
Labels (2)
2 Replies
Anonymous
Not applicable
Author

you can use the function "Mathematical.NEG()" in tmap
alevy
Specialist
Specialist

Just have expression -<column name> e.g. -row1.myNum.
For BigDecimals, use row1.myNum.negate().