S
shank
Not getting the results I expect from the below Switch Function.
Given:
[TQM]![acb] = -1529
[TQM]![qstq] = 12261
AOD:
Switch([TQM]![acb]-[TQM]![qstq]>=0,1,
([TQM]![acb]-[TQM]![qstq]*-1)>[TQM]![qstq],2,
(([TQM]![acb]-[TQM]![qstq])*-1)<[TQM]![qstq],3)
Result is AOD = 3
Not making sense... (-1529 - 12261)*-1 is not less than 12261
What am I missing?
thanks!
Given:
[TQM]![acb] = -1529
[TQM]![qstq] = 12261
AOD:
Switch([TQM]![acb]-[TQM]![qstq]>=0,1,
([TQM]![acb]-[TQM]![qstq]*-1)>[TQM]![qstq],2,
(([TQM]![acb]-[TQM]![qstq])*-1)<[TQM]![qstq],3)
Result is AOD = 3
Not making sense... (-1529 - 12261)*-1 is not less than 12261
What am I missing?
thanks!