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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
sarahkane
Frequent Visitor

Joining hundreds of tables with some similar and some distinct column names

Hi,

 

I am trying to combine hundreds of tables together where there are some formatting differences between column headers, and some distinct column headers. For example: one table might have the column headers name and email, while another table will have the column headers of Name, EMAIL, and Location. 

 

I have been able to follow this youtube video: https://www.youtube.com/watch?v=wKglApDFMog which allowed me to join the tables if the column header was the exact same, but for the example above, the Location column header, it displays all the data that should be populated as NULL. 

 

Please let me know if my question is confusing or if you have additional questions.

 

Thank you!
Sarah 

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

Hi @sarahkane ,

 

According to your description, I did a test and you can specify columns in different tables to be merged by the following code.

vstephenmsft_0-1638774202380.png

vstephenmsft_1-1638774212472.png

let
    Source = Table.Combine({Sheet1, Table.RenameColumns(#"Sheet1 (2)",{{"headers name","headers of Name"},{"email","EMAIL"}})})
in
Source

vstephenmsft_2-1638774232650.png

 

 

If the problem is still not resolved, please provide detailed error information and screenshot of the results you expect. Looking forward to your reply.


Best Regards,
Stephen


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

1 REPLY 1
v-stephen-msft
Community Support
Community Support

Hi @sarahkane ,

 

According to your description, I did a test and you can specify columns in different tables to be merged by the following code.

vstephenmsft_0-1638774202380.png

vstephenmsft_1-1638774212472.png

let
    Source = Table.Combine({Sheet1, Table.RenameColumns(#"Sheet1 (2)",{{"headers name","headers of Name"},{"email","EMAIL"}})})
in
Source

vstephenmsft_2-1638774232650.png

 

 

If the problem is still not resolved, please provide detailed error information and screenshot of the results you expect. Looking forward to your reply.


Best Regards,
Stephen


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

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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