Forum Discussion

GordyM1's avatar
GordyM1
Regular Visitor
4 years ago
Solved

Negative Totals

I have a simple table imported from Excel which gives me a negative as a total. The sales come through as a negative number hence the negative total. What I want to end up with is the Totals as below but not being a negative. I'm new to PowerBI so not sure how to do that?

 

Account NameAprilMay
Purhases343670198604
Sales-474912-273557
Total-131242-74953
  • Hello - if you are just trying to reverse the signs, you can multiply by -1.  If you are wanting something different please provide an example of the expected result.

     

    = Table.TransformColumns(#"Changed Type", {{"April", each _ * -1, type number},{"May", each _ * -1, type number} })

2 Replies

  • Hello - if you are just trying to reverse the signs, you can multiply by -1.  If you are wanting something different please provide an example of the expected result.

     

    = Table.TransformColumns(#"Changed Type", {{"April", each _ * -1, type number},{"May", each _ * -1, type number} })