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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
This one has got me perplexed.
How do you create the DAX Measure Value for a matrix that does the following for the Totals?
Example Table Would Be
| Person | Legacy | Mid-Tier | Current | DAX Total |
| A | 6 | 0 | 4 | -2 |
| B | 4 | 1 | 3 | 0 |
| C | 6 | 3 | 5 | 2 |
| TOTAL | 12 (Sum Total) | 4 (Sum Total) | 12 (Sum Total) | 4 (Calc Total (C+M)-L |
Solved! Go to Solution.
Hi @ScottBrown ,
Please try the following formula:
Measure =
var _sum = SUM ( 'Table'[Value] )
return
IF (
ISFILTERED ( 'Table'[Category] ),
_sum,
_sum - 2 * CALCULATE ( SUM ( 'Table'[Value] ), 'Table'[Category] = "Legacy" )
)
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @ScottBrown ,
Please try the following formula:
Measure =
var _sum = SUM ( 'Table'[Value] )
return
IF (
ISFILTERED ( 'Table'[Category] ),
_sum,
_sum - 2 * CALCULATE ( SUM ( 'Table'[Value] ), 'Table'[Category] = "Legacy" )
)
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@ScottBrown , if these are value of column say Tier and you column of value is value
new measure =
if((isinscope([Tier])), sum(Table[Value]) ,
Switch(true(),
max(Table[Tier]) = "Legacy" , -1 * sum(Table[Value]) ,
sum(Table[Value]) ) )
If they are measure
then new measure
([Current] + [Mid-Tier]) - [Legacy]
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 9 | |
| 9 | |
| 8 | |
| 6 | |
| 5 |
| User | Count |
|---|---|
| 23 | |
| 16 | |
| 15 | |
| 14 | |
| 8 |