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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
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]
)
User | Count |
---|---|
98 | |
76 | |
69 | |
53 | |
27 |