Forum Discussion
sandy_liew
1 year agoFrequent Visitor
Grand Total for Matrix Visual not displaying correctly
Hi, I have the DAX measure shown below for Delta LV column where it is actually obtained from the values of "Outs' -"LV", I would like to display the row subtotals as well as row grand total for the ...
- 1 year ago
Hi sandy_liew
Try considering the below steps:
Create the Numeric MeasureDelta LV Numeric = SUMX ( ADDCOLUMNS ( SUMMARIZE('Grand_Total', 'Grand_Total'[Factory], 'Grand_Total'[Platform]), "Delta", [Actual Outs] - CALCULATE(SUM('Grand_Total'[LV])) ), [Delta] )
Create the Formatted Display MeasureDelta LV Formatted = VAR DeltaLV = [Delta LV Numeric] RETURN IF( ISBLANK(DeltaLV), BLANK(), IF( DeltaLV < 0, "(" & FORMAT(ABS(DeltaLV), "#,0") & ")", FORMAT(DeltaLV, "#,0") ) )
If this response is helpful, please mark it as an Accepted Solution to benefit other community members.
Thank You!
sandy_liew
1 year agoFrequent Visitor
Hence, I don't think I'm able to use the method that you tried in the grand total pbix file, could u pls help me to look further into this question? Thanks
v-karpurapud
Community Support
1 year agoHi sandy_liew
Try considering the below steps:
Create the Numeric Measure
Delta LV Numeric =
SUMX (
ADDCOLUMNS (
SUMMARIZE('Grand_Total', 'Grand_Total'[Factory], 'Grand_Total'[Platform]),
"Delta", [Actual Outs] - CALCULATE(SUM('Grand_Total'[LV]))
),
[Delta]
)
Create the Formatted Display Measure
Delta LV Formatted =
VAR DeltaLV = [Delta LV Numeric]
RETURN
IF(
ISBLANK(DeltaLV),
BLANK(),
IF(
DeltaLV < 0,
"(" & FORMAT(ABS(DeltaLV), "#,0") & ")",
FORMAT(DeltaLV, "#,0")
)
)
If this response is helpful, please mark it as an Accepted Solution to benefit other community members.
Thank You!