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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

How to transpose and promote headers for all tables in one shot?

How to transpose and promote headers for all tables in one shot?

 

I have 10 tables ( Note here table are queries in PowerBi)

 

Each table has 1 column and I would like to transpose and promote headers for all the tables .

 

I have Advanced editor with the below , I want to apply this to all my tables ( table1 ...table10)

 

let
Source = Sql.Databases("SQLEXPRESS01"),
CDA = Source{[Name="CDA"]}[Data],
dbo_table1 = CDA{[Schema="dbo",Item="table1"]}[Data],
#"Transposed Table" = Table.Transpose(dbo_table1),
#"Promoted Headers" = Table.PromoteHeaders(#"Transposed Table", [PromoteAllScalars=true]),

in
#"Promoted Headers"

 

1 ACCEPTED SOLUTION
ImkeF
Community Champion
Community Champion

That's not  possible, I'm afraid.

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

View solution in original post

3 REPLIES 3
ImkeF
Community Champion
Community Champion

That's not  possible, I'm afraid.

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

amitchandak
Super User
Super User

@Anonymous , do you want to merge these tables? if yes you can merge and then transpose.

 

we can check with M experts on community

@ImkeF , can you help with this

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

No , I dont want to merge as I want to keep each table separate as I will be using them for modeling .

I dont like to repeat manual steps of transpose and promote for 10 tables as it is time consuming .

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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
Top Kudoed Authors