Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello everyone.
Please I need help on how to convert positive values within a column to negative values.
Thanks
Solved! Go to Solution.
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}})
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
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
9 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
12 | |
11 | |
9 | |
6 | |
6 |