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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Conversion from negative to positive value for an int data type

Hello 

 

I have a data which is integer type like below

input

30

-40

-50

-60

 

all are int data type, and my output expected is 

output

30

40

50

60

 

Thanks in Advance

Manish

Labels (3)
1 Solution

Accepted Solutions
TRF
Champion II
Champion II

Math.abs(row1.yourField)

View solution in original post

4 Replies
TRF
Champion II
Champion II

Math.abs(row1.yourField)

Anonymous
Not applicable
Author

Thank you so much @TRF  What if the datatype is float  or decimal  ?

TRF
Champion II
Champion II

That's the same
Anonymous
Not applicable
Author

Thanks @TRF it helped to resolve my isssue