Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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"
Solved! Go to Solution.
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
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
@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
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 .
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!