Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
wutthiphong_t
New Member

Grouping and expand column on DAX Studio

Hi there,

 

I working on table that more than 10M rows, I try to grouping and expand column in Power Query by test table (1M rows) by this:

 

= Table.Group(#"Added Combine Column", {"CombineXY"}, {{"Count", each Table.RowCount(_), Int64.Type}, {"Partition", each Table.AddIndexColumn(_, "MSindex",1,1) , type table [X_Col=nullable text, Y_Row=nullable text, TOTALVOLUME=nullable text, TRUEVERTTHK=nullable text, TRUETHK=nullable text, XXX=nullable text, CombineXY=text, MSindex=text]}})

 

= Table.ExpandTableColumn(#"Grouped Rows", "Partition", {"X_Col", "Y_Row", "TOTALVOLUME", "TRUEVERTTHK", "TRUETHK", "XXX", "MSindex"}, {"X_Col", "Y_Row", "TOTALVOLUME", "TRUEVERTTHK", "TRUETHK", "XXX", "MSindex"})

 

 

That good for test table but doesn't work when apply to working table, run very long time and show 'memory not enough'. May I grouping and expand column on the DAX Studio and how to use it.

1 REPLY 1
lbendlin
Super User
Super User

Chris Webb has a couple of blog posts on that topic

Chris Webb's BI Blog: Optimising The Performance Of Power Query Merges In Power BI, Part 1: Removing...

 

But you also want to ask yourself - do you really have to merge, or can you just join the tables in the data model?

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors