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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
trndlnd
Frequent Visitor

Convert positive values to negative

Hi,

 

I have a column with both positive and negative values. I want Power BI to show all the valus as negative. How do I do that?

 

 

1 ACCEPTED SOLUTION

Hey @trndlnd ,

then create a DAX measure like so:

All negative (ms) = 
SUMX( 'All Negative' , ABS( 'All Negative'[Value] ) * -1 )

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

View solution in original post

4 REPLIES 4
TomMartens
Super User
Super User

Hey @trndlnd ,

 

you can use PowerQuery to create a custom column like so:

image.png

the formula:

Number.Abs([Value]) * -1

The table will look like this

image.png

 

Hopefully, this provides what you are looking for.

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Hey @trndlnd ,

then create a DAX measure like so:

All negative (ms) = 
SUMX( 'All Negative' , ABS( 'All Negative'[Value] ) * -1 )

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

This helped me out!

Thank you @TomMartens !

 

Sounds like this would solve my problem, but I am in DirectQuery mode, so PBI won't let me create a custom column like this.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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