Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hi
I have data in multiple sheets in multiple files and the data is arranged thus:
Sheets 1-50
col1 col2
header1 1
header2 2
header3 3
...but when I power query it, the data ends up alongside each other rather than stacking...
I want it to transpose to look like:
header1 header2 header3
1 2 3
Nice and easy... but when I combine the tabs and transpose, the data ends up alongside each other:
header1 header2 header3 header1 header2 header3 header1 header2 header3
1 2 3 1 2 3 1 2 3
What am I doing wrong?
Solved! Go to Solution.
Hi @Anonymous ,
You can create a custom function like this:
let
Source = (tab as table, x) => Table.SelectRows(tab, each [col1] = x)[col2]{0}
in
Source
Invoke this function in Table1 for Table2, Table3..., then you can transpose the table and use the first row as header
Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
You can create a custom function like this:
let
Source = (tab as table, x) => Table.SelectRows(tab, each [col1] = x)[col2]{0}
in
Source
Invoke this function in Table1 for Table2, Table3..., then you can transpose the table and use the first row as header
Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
You should add a column of null values, then place it at the first colun position, and then tranpose:
= Table.AddColumn(#"Name of Table or Last Step Name", "Nulls", each null)
Now your transpose will work, and you can then Promote Headers.
--Nate
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 5 | |
| 5 | |
| 4 |