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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I have created measure like that to get MAX Value From Summarized Colum
The Problem is that when I try to display result of this measure in Matrix Visualization error shows up:
Does anyone have any idea how can I fix it to display max value from summarized table in matrix vizualization ?
Solved! Go to Solution.
You need to use ADDCOLUMNS(SUMMARIZE(... instead of SUMMARIZECOLUMNS(...
Max Value =
VAR SummarizedTable =
ADDCOLUMNS (
SUMMARIZE (
'Level 1 Metrics',
'Level 1 Metrics'[Type],
'Level 1 Metrics'[Metric Name],
'Level 1 Metrics'[Date]
),
"Total Value", CALCULATE ( SUM ( 'Level 1 Metrics'[Value] ) )
)
RETURN
IF (
ISFILTERED ( 'Level 1 Metrics'[Commercial Area] ),
MAX ( 'Level 1 Metrics'[Value] ),
MAXX ( SummarizedTable, [Total Value] )
)
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
You need to use ADDCOLUMNS(SUMMARIZE(... instead of SUMMARIZECOLUMNS(...
Max Value =
VAR SummarizedTable =
ADDCOLUMNS (
SUMMARIZE (
'Level 1 Metrics',
'Level 1 Metrics'[Type],
'Level 1 Metrics'[Metric Name],
'Level 1 Metrics'[Date]
),
"Total Value", CALCULATE ( SUM ( 'Level 1 Metrics'[Value] ) )
)
RETURN
IF (
ISFILTERED ( 'Level 1 Metrics'[Commercial Area] ),
MAX ( 'Level 1 Metrics'[Value] ),
MAXX ( SummarizedTable, [Total Value] )
)
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
It worked out thx ! But I still don't remember why I should do it that way
Hi,
"SUMMARIZECOLUMNS does not support evaluation within a context transition"(https://dax.guide/summarizecolumns/).
Perhaps post some data together with expected results so that we can look for workarounds.
Regards
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 132 | |
| 88 | |
| 82 | |
| 68 | |
| 64 |