Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello every one,
I am trying to find negative and positive values based on a transaction id and if they have equal and opposite signs, I want to cancel them out:
For example if I have a table like below:
Transaction ID | Amount |
12345 | 100 |
12345 | -100 |
12345 | 200 |
6789 | 300 |
In this case I want the result to be
Transaction ID | Amount |
12345 | 0 |
12345 | 200 |
6789 | 300 |
How can I do this?
Thanks in advance
Don
Using the calculated dimension should work, you need to disable 'suppress zero values' in presentation tab of straight table chart properties.
Shouldn't just a sum(Amount) be sufficient?
Or maybe a straight table chart with dimension
=Dual([Transaction ID], fabs(Amount) )
and as expression
=Sum(Amount)
Doing a sum(Amount) will give me only two records
12345 200
6789 300
whereas i want three records as mentioned in my question.
Thanks!!!
Using the calculated dimension should work, you need to disable 'suppress zero values' in presentation tab of straight table chart properties.
Thanks Swuehl. This worked
Hi Sohail,
how did you solve it...
Thanks in advance