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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hi everyone !
is there any way I can optimize the below DAX code.because of sumx functions it is really slowing down the perfomance
AR SummerizeTableTb =
SUMMARIZE (
'New,
'New '[product],
"Actual", SUM ( 'New ‘[Actual] ),
"final", SUM ( 'New ‘[Final Forecast] )
)
VAR TotalR =
DIVIDE (
SUMX (
ADDCOLUMNS (
SummerizeTableTb,
"MAD final", ABS ( [Actual] - [final] ),
"Actuals", [Actual]
),
IFERROR ( [MAD final], 0 )
),
SUMX (
ADDCOLUMNS (
SummerizeTableTb,
"Actuals", [Actual]
),
IFERROR ( [Actuals], 0 )
),
BLANK()
)
RETURN
IF ( ISBLANK ( TotalR ), BLANK (), 1 - TotalR )
Solved! Go to Solution.
if you are willing to pay - DAX Optimizer has some ideas.
A quick fix will be to use SUMMARIZECOLUMNS instead of SUMMARIZE to avoid lugging the extended tables around. All the secrets of SUMMARIZE - SQLBI
if you are willing to pay - DAX Optimizer has some ideas.
A quick fix will be to use SUMMARIZECOLUMNS instead of SUMMARIZE to avoid lugging the extended tables around. All the secrets of SUMMARIZE - SQLBI
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 68 | |
| 50 | |
| 41 | |
| 29 | |
| 22 |
| User | Count |
|---|---|
| 136 | |
| 123 | |
| 57 | |
| 37 | |
| 32 |