A: case when [Category]='A' then [Dollars] else 0 end
B: case when [Category]='B' then [Dollars] else 0 end
diff = abs(abs([A]) - abs())
Regardless of which is greater, that will always return the difference as a positive value.
B: case when [Category]='B' then [Dollars] else 0 end
diff = abs(abs([A]) - abs())
Regardless of which is greater, that will always return the difference as a positive value.