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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello,
I'd like to find a smart way to change sign to values (from + to minus) based on a attribute.
If field/column "Bal Type" is "Expense" get a negative value from field/column "Value"
Any help?
Thank you
Solved! Go to Solution.
@Specialist90 Well, you could do this in a calculated column like:
Column = IF([Bal Type] = "Expense", [Value] * -1, [Value])
You could also do it as a conditional column in Power Query. Or, could also do it as a measure with a SUM aggregation.
@Specialist90 Well, you could do this in a calculated column like:
Column = IF([Bal Type] = "Expense", [Value] * -1, [Value])
You could also do it as a conditional column in Power Query. Or, could also do it as a measure with a SUM aggregation.
@Specialist90 , You can use Switch to create
Switch(True(),
[Bal Type] = "Expense", -1 *[Value] ,
[Bal Type] = "Income", [Value]
)
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 64 | |
| 46 | |
| 43 | |
| 26 | |
| 19 |
| User | Count |
|---|---|
| 198 | |
| 125 | |
| 102 | |
| 69 | |
| 53 |