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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors