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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Austin360
Regular Visitor

Converting all positive values in a column to negative values.

Hello everyone.

 

Please I need help on how to convert positive values within a column to negative values. 

 

Thanks 

1 ACCEPTED SOLUTION
Vijay_A_Verma
Super User
Super User

Assuming Data is column name

In a Custom column, you can put following formula

=if Number.Sign([Data])=1 then -1*[Data] else [Data]

 

if you don't want to use Custom column but want to do it in-place column, then next step is

=Table.TransformColumns(#"Changed Type",{{"Data", each if Number.Sign(_)=1 then -1*_ else _}})

 

Here you will need to replace #"Changed Type" with your previous step

 

If your column has all positive values only, 

= Table.TransformColumns(#"Changed Type", {{"Data", each _ * -1}})

View solution in original post

5 REPLIES 5
Syndicate_Admin
Administrator
Administrator

@Syndicate_Admin  @Austin360

You can multiply by -1

Mira_Ghaly_0-1648106721486.png

 

Vijay_A_Verma
Super User
Super User

Assuming Data is column name

In a Custom column, you can put following formula

=if Number.Sign([Data])=1 then -1*[Data] else [Data]

 

if you don't want to use Custom column but want to do it in-place column, then next step is

=Table.TransformColumns(#"Changed Type",{{"Data", each if Number.Sign(_)=1 then -1*_ else _}})

 

Here you will need to replace #"Changed Type" with your previous step

 

If your column has all positive values only, 

= Table.TransformColumns(#"Changed Type", {{"Data", each _ * -1}})

over complicated

just multiply by -1

This is a good approach if all values are known to be positive. If there are negative values also, then those negative values will become positive if we multiply by -1.

use Transform, Standard> Multiply -1

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors