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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Kudoed Authors