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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
AV2022
Contributor
Contributor

Removing Negative sign from an Integer column in tmap

Hello Team,

I have an Input Integer column which are having negative values. My requirement is that i need to eliminate the negative sign from the values.

eg: Input Values

1,-2,3,-4

Expected Output

1.2.3.4

Note: I tried Mathematical.NEG() function in tmap expression builder but it doesn't worked since my input column has Integer as the Datatype. I need the Input and output columns as Integer Data type.

Kindly help me in fixing this issue.

Thanks

Anand

Labels (3)
1 Solution

Accepted Solutions
borke02
Contributor III
Contributor III

Hi,

 

there is an java methode that gives the absolute value of the argument: https://www.tutorialspoint.com/java/number_abs.htm. You can call it in tMap:

 

0695b00000hs7eNAAQ.png 

Best regards,

Frank

View solution in original post

2 Replies
borke02
Contributor III
Contributor III

Hi,

 

there is an java methode that gives the absolute value of the argument: https://www.tutorialspoint.com/java/number_abs.htm. You can call it in tMap:

 

0695b00000hs7eNAAQ.png 

Best regards,

Frank

AV2022
Contributor
Contributor
Author

Hello Frank,

 

Thanks alot, your solution worked perfectly fine for me.

 

Thanks

Anand