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
Sorry for making a mockup data in excel. But I have column and row total in one Matrix visual (Actuals). Would like to calculate (Subtract) data from another dataset (Forcast). And get Delta (Actuals total - Forcast total)
Appreciate any help.
Solved! Go to Solution.
Hi @Anonymous,
If I understand correctly, you want to get the matrix visual like the screenshot below.
If so, you can write your measures like so:
Actual Row Total =
SUMX ( Actual, Actual[Department 1] ) + SUMX ( Actual, Actual[Department 2] )
Forcast Row Total =
SUMX ( Forcast, Forcast[Department 1] )
+ SUMX ( Forcast, Forcast[Department 2] )
Forcast Row Total - Actual Row Total =
Forcast[Forcast Row Total] - Actual[Actual Row Total]
Best Regards,
Icey Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous,
If I understand correctly, you want to get the matrix visual like the screenshot below.
If so, you can write your measures like so:
Actual Row Total =
SUMX ( Actual, Actual[Department 1] ) + SUMX ( Actual, Actual[Department 2] )
Forcast Row Total =
SUMX ( Forcast, Forcast[Department 1] )
+ SUMX ( Forcast, Forcast[Department 2] )
Forcast Row Total - Actual Row Total =
Forcast[Forcast Row Total] - Actual[Actual Row Total]
Best Regards,
Icey Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
There is a relationship between both the tables via region
I just want to calculate difference between a fixed value (AOP Q4) & Matrix calculated values of Total (Actuals + Commits). But a simple formula in excel is a complicated one in PowerBI
Hi @Anonymous ,
You can create your measure like so:
Delta =
MAX ( 'Table 2'[AOP Q4] )
- ( MAX ( 'Table 1'[Actuals] ) + MAX ( 'Table 1'[Commits] ) )In this DAX expression, [Actuals], [Commits] and [AOP Q4] are all columns. If they are measures in your file, 'MAX' is not needed.
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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 |
|---|---|
| 30 | |
| 24 | |
| 23 | |
| 17 | |
| 15 |
| User | Count |
|---|---|
| 61 | |
| 36 | |
| 29 | |
| 22 | |
| 22 |