This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hello
I have created a column which holds the Marging as a result of the substraction of ActualSales-ActualCost column.
What you see in the picture is the values of a matrix. If you see in bolds what shows there is the min of the margin. I would like it to show actually the value (for ex 0-8370.92=8370.92) and not -1483.20 which is the min value of it in the tree.
I checked the options but I have otheres like max, average etc. I just want the real value of the substraction there...
is this possible? in the worst of the cases I dont want to show anything in that column for the bolds section. Could some one advice?
Thanks
Angelica.
Solved! Go to Solution.
ok I got it!
I just chose "Sum" instead of min and it did what I wanted.
thanks for your help.
Angelica.
Hi Amitchandak
the formula for the Margin column is as simple as Margin=[ActualSales-ActualCost]
Thanks.
Angelica.
ok I got it!
I just chose "Sum" instead of min and it did what I wanted.
thanks for your help.
Angelica.
You should use ABS()..
Measure =
VAR MARGIN =ActualSales-ActualCost
RETURN ABS(MIN(MARGIN))
If it helps, mark it as a solution
Kudos are nice too
HI Super User
Your function seems to return the abs value of Margin. My problem is not about the positive or negative sigh, but the value itself. I dont want the min or max value of the substraction in the tree, I want the substraction result.
Anyways I tried the solution you gave me but I am getting this message:
The MIN function only accepts a column reference as an argument.
I even tried to do this:
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 35 | |
| 32 | |
| 26 | |
| 21 | |
| 18 |
| User | Count |
|---|---|
| 68 | |
| 37 | |
| 32 | |
| 25 | |
| 23 |