cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
GordyM1
Regular Visitor

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
1 ACCEPTED SOLUTION
jennratten
Super User
Super User

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.

jennratten_0-1654055412777.png

 

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

View solution in original post

2 REPLIES 2
jennratten
Super User
Super User

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.

jennratten_0-1654055412777.png

 

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

Hi, thanks works brillianty.

 

Helpful resources

Announcements
Carousel_PBI_Wave1

2023 Release Wave 1 Plans

Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.

Power BI Summit Carousel 2

Global Power BI Training

Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!

BizApps LATAM 2023

Business Application LATAM Summit 2023

Join the biggest FREE Business Applications Event in LATAM this February.

Power Platform Bootcamp

Global Power Platform Bootcamp

In this bootcamp we will deep-dive into Microsoft’s Power Platform stack with hands-on sessions and labs, delivered to you by experts and community leaders.

Top Solution Authors
Top Kudoed Authors