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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
duybachhpvn
Frequent Visitor

Data disappeared after expanding from Merging in PowerQuery

Hi,

 

I'm facing a very strange behaviour of PowerQuery that after expanding new columns from a merging operations, some of the data in existing columns disappear after the new expansion step.

 

I found a random fix online that when I add an Index Column right before the expansion step, then the disappearance of data in existing columns is resolved. 

 

However, I dont understand why an expansion of a merge step can make data disappear like this? This is the case that I find the issue before any trouble, but if PowerBI just randomly delete data in existing columns, I find it hard to control the data integrity...

 

Illustration as below:

Below image is the step before expansion

duybachhpvn_0-1604590619289.png

 

Below image is the disappearance of data in column "Revised Package Type" and the 2nd last column after expansion

duybachhpvn_2-1604590700566.png

 

Then, if I add an index column right before the expansion step, then I dont have that issue

duybachhpvn_3-1604591028536.png

 

 

Thank you

1 ACCEPTED SOLUTION
Jimmy801
Community Champion
Community Champion

Hello @duybachhpvn 

 

you could try on your first expand step to add a Table.Buffer like this

Table.ExpandTableColumn(Table.Buffer(#"Filtered Rows1"),........

 

If this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
Kudoes are nice too

Have fun

Jimmy

View solution in original post

2 REPLIES 2
Jimmy801
Community Champion
Community Champion

Hello @duybachhpvn 

 

you could try on your first expand step to add a Table.Buffer like this

Table.ExpandTableColumn(Table.Buffer(#"Filtered Rows1"),........

 

If this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
Kudoes are nice too

Have fun

Jimmy

Hi,

 

It seem to work for me now. But why was data disappearing  without this Table.Buffer?

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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