Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

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} })

If this post helps to answer your questions, please consider marking it as a solution so others can find it more quickly when faced with a similar challenge.

Proud to be a Microsoft Fabric Super User

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} })

If this post helps to answer your questions, please consider marking it as a solution so others can find it more quickly when faced with a similar challenge.

Proud to be a Microsoft Fabric Super User

Hi, thanks works brillianty.

 

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

Check out the April 2025 Power BI update to learn about new features.

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors