Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
retko1985
Creator II
Creator II

Substraction of same numbers show -0

Hello,

I subtract 2 columns in straight table, and sometimes when the numbers are the same I get 0 and sometime I get -0

I also made sure that I dont have decimals in the columns I used for subtraction!

How is this possible?

Thank you.

1 Solution

Accepted Solutions
sunny_talwar

May be try this

Round(Num1) - Round(Num2)

or

Round(Num1 - Num2)

View solution in original post

3 Replies
sunny_talwar

May be try this

Round(Num1) - Round(Num2)

or

Round(Num1 - Num2)

Anil_Babu_Samineni

This is weird behavior until unless you have long number? Do you have same values from 2 columns are more than that?

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
retko1985
Creator II
Creator II
Author

It does work, Thank you.