Forum Discussion
Transpose table titles from columns to rows
- Anonymous8 years ago
Hi
In Query Editor,
1. Go to Transform -> select option 'Use Header as first row'. So, for your example you will have 3 rows now ,with Title1..Title4 as first row
2. Then select Transpose. This will get you desired output with 3 columns & 4 rows. Name the column header as needed.
Thanks
Raj
It needs to be done in the query model. Go to Edit Queries -> Transform -> Transpose
- Anonymous8 years agoNot applicable
Hello Jmelcarek ,
Thanks for the reply , unfortunatey I did not get the correct result , is there any power query that we can use to resolve this issue ?
Thanks in advance
Ismail
- Weav80605 years agoFrequent Visitor
correct, it does work with tables, only with sheets prior to promoting headers. With table inputs, use this trick formula just prior to transposing step:
= Table.Combine({ #table(Table.ColumnNames(Source),{Table.ColumnNames(Source)}),Source})
it creates a first row of your data set with the column names . There might very well be another way, but transpose functionality is geared to the rows of the table not including column names
- Anonymous8 years agoNot applicable
Hi
In Query Editor,
1. Go to Transform -> select option 'Use Header as first row'. So, for your example you will have 3 rows now ,with Title1..Title4 as first row
2. Then select Transpose. This will get you desired output with 3 columns & 4 rows. Name the column header as needed.
Thanks
Raj
- rlsmith19943 years ago
Helper II
This solution doesn't make sense. The person just wants to transpose the visualization. Transposing the rows/columns in the editor will change the structure of the data.