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 DAX experts,
From all I've read, GROUPBY() should be at least as performant as SUMMARIZE() but I've found it substantially slower. Below are two equivalent queries - the GROUPBY() version takes about 6x longer. Any advice on why there is such a big difference?
Thanks!
GROUPBY():
CALCULATETABLE (
GROUPBY (
Fact_PlexosSolutionData,
Dim_Date[FinancialYear],
Dim_Model[ModelId],
"TotalGenCost", SUMX ( CURRENTGROUP (), Fact_PlexosSolutionData[Generators.GenerationCost.$] )
),
FILTER ( Dim_Facility, Dim_Facility[IsPPA] )
)
SUMMARIZE():
CALCULATETABLE (
SUMMARIZE (
Fact_PlexosSolutionData,
Dim_Date[FinancialYear],
Dim_Model[ModelId],
"TotalGenCost", SUM ( Fact_PlexosSolutionData[Generators.GenerationCost.$] )
),
FILTER ( Dim_Facility, Dim_Facility[IsPPA] )
)
Solved! Go to Solution.
@Anonymous , while groupby can slow down the performance because it needs sumx(X functions) . It has its own advantages. So those case you should use group by. But you can avoid it where something else can be used.
https://www.sqlbi.com/blog/marco/2016/02/15/groupby-vs-summarize-in-dax-powerbi-powerpivot/
https://www.sqlbi.com/articles/nested-grouping-using-groupby-vs-summarize/
Hi,
There is any alternative to AverageX and Summarize?
In terms of performance I can't load a table properly. Always getting that the visual exceeded the resources..
For example:
Measure = AVERAGEX( SUMMARIZE( VALUES( Client[ClientID] ) , "average", [Discount] ), [average] )
@Anonymous , while groupby can slow down the performance because it needs sumx(X functions) . It has its own advantages. So those case you should use group by. But you can avoid it where something else can be used.
https://www.sqlbi.com/blog/marco/2016/02/15/groupby-vs-summarize-in-dax-powerbi-powerpivot/
https://www.sqlbi.com/articles/nested-grouping-using-groupby-vs-summarize/
Thanks @amitchandak and @Greg_Deckler for your insights. It does seem to be the SUMX that slows it down. Removing the aggregation gives roughly equal performance.
@Anonymous - This does not surprise me, GROUPBY must use an interator function like SUMX, etc. so that's likely the source of the performance difference.
Vote for your favorite vizzies from the Power BI World Championship submissions!
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 |
|---|---|
| 9 | |
| 7 | |
| 3 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 17 | |
| 16 | |
| 12 | |
| 5 | |
| 5 |