Forum Discussion
ScottBrown
4 years agoHelper II
Unique - Complex DAX Challenge for Matrix Visual Specific for Columns & Total
This one has got me perplexed. How do you create the DAX Measure Value for a matrix that does the following for the Totals? Does the normal Summing for the columns Does a special calculation for ...
- 4 years ago
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.
v-kkf-msft
4 years agoCommunity Support
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.