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
SebSchoon1
Post Patron
Post Patron

Combine Table with Table of Tables

Hi POwer query superstars,

 

I have a nice problem for you.

 

Is it possible to combine a table

 

Ex:  #"The headers i Need"

 

With each tables like here below 

SebSchoon1_0-1656587348670.png

In order to get all the headers from 

#"The headers i Need"

 

into each tables

 

?

 

😛

 

4 REPLIES 4
v-kkf-msft
Community Support
Community Support

Hi @SebSchoon1 ,

 

I am not sure if I understood your question correctly. If you simply want to merge all tables in this list into one table, please try using the Table.Combine function.

 

combine = Table.Combine(#"Previous Step Name"[#"All rows"])

vkkfmsft_1-1656990549269.png

vkkfmsft_2-1656990580996.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

AlexisOlson
Super User
Super User

Do you mean like this:

Table.TransformColumns(
    #"Previous Step Name",
    {{"all rows", each Table.Combine({#"The headers i Need", _}), type table}}
)

 

If you want you can promote headers in the same step

each Table.PromoteHeaders(Table.Combine({#"The headers i Need", _}))

Hello, @AlexisOlson Sorry for late reply i was on vacation 👌

 

I'll try this asap and keep you posted!

 

So many thanks for your reply!

SebSchoon1
Post Patron
Post Patron

I have been able to manage it creating a function. Then

 

= Table.Combine(Table.AddColumn(#"Colonnes supprimées1", "Personnalisé", each Fusion_entetes_groupes([all rows])))

 

 

However this is extremely slow. 

 

any advice?

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