S
Silvio
Hello everyone, how can I calculate the distance between two points (numbers)
in a number line using a calculated field? For example: (Filed1 and Filed are
saved number in any combination of positive and negative numbers)
Filed1 = -10
Field2 = +15
Number distance = 25 (this is the correct result)
Example 2:
Filed1 = -10
Field2 = -5
Distance = 5 (this is the correct result)
Example 3:
Filed1 = -10
Field2 = 5
Distance = 15 (this is the correct result)
This is what I have done but it does not work with combination of negative
and positive numbers...
=(IIf(([Filed1]>[Filed2]),Abs([Filed1])-Abs([Filed2]),([Filed2]-[Filed1])))
in a number line using a calculated field? For example: (Filed1 and Filed are
saved number in any combination of positive and negative numbers)
Filed1 = -10
Field2 = +15
Number distance = 25 (this is the correct result)
Example 2:
Filed1 = -10
Field2 = -5
Distance = 5 (this is the correct result)
Example 3:
Filed1 = -10
Field2 = 5
Distance = 15 (this is the correct result)
This is what I have done but it does not work with combination of negative
and positive numbers...
=(IIf(([Filed1]>[Filed2]),Abs([Filed1])-Abs([Filed2]),([Filed2]-[Filed1])))