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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
009co
Helper IV
Helper IV

Power Query merge creating multiple replicate columns - weird never seen this behavior before!

I have used merge 100's of times in many situations .. left, inner, full joins, etc but have never seen this weird behavior before.

 

Data Table - location column has many values (fact table)

Location Table - location column has unique values (dimension table)

 

I am merging Location Table to Data Table using a left join on the location columns and then expanding only one Location Table column which looks something like:

 

= Table.ExpandTableColumn(#"Merged Queries", "Location Table", {"Address"}, {"Location Table.Address"})

 

But after loading the query, it is actually loading all of the Location Table columns which were not even checked in the exapand table step, and in fact creates duplicates and triplicates of some of the eg Location Table.Address.1, Location Table.Address.2, Location Table.Address.3, plus all of the other columns in the Location Table which were not even checked.

 

I did a test changing the "Default column name prefix (optional)" value from "Location Table" to "Test" and then I got one column "Test.Address" but all of the others too eg Location Table.Address.1, Location Table.Address.2, Location Table.Address.3, plus all of the other columns in the Location Table which were not even checked!

 

It is just the weirdest thing.  Has anybody else seen something similar? No idea what is happening and see no obvious troubleshooting clues.

1 ACCEPTED SOLUTION
v-angzheng-msft
Community Support
Community Support

Hi, @009co 


Based on the information above, what seems to be happening here is that the merge operation is getting all the columns instead of the matching ones. It's not clear if it's because the special column you want to expand isn't checked but the entire table.
It would be easier to analyze what happened if the M query code was attached here.

vangzhengmsft_0-1646798973680.png

 

 

Best Regards,
Community Support Team _ Zeon Zheng


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-angzheng-msft
Community Support
Community Support

Hi, @009co 


Based on the information above, what seems to be happening here is that the merge operation is getting all the columns instead of the matching ones. It's not clear if it's because the special column you want to expand isn't checked but the entire table.
It would be easier to analyze what happened if the M query code was attached here.

vangzhengmsft_0-1646798973680.png

 

 

Best Regards,
Community Support Team _ Zeon Zheng


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Have you tried clearing the cache in the Query Options?

 

--Nate 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.