Forum Discussion
jinweitan
6 years agoFrequent Visitor
How do I pivot to desire format
Hi I have a table that looks like this: ID Q1 Q2 Q1Comments Q2Comments 1 Yes Yes Good Excellent 2 Yes Yes Good Excellent 2 3 No No Not so good Bad 4 Yes N/A ...
- 6 years ago
jinweitan , In power Query you have to unpivot
refer https://radacad.com/pivot-and-unpivot-with-power-bi
You may have to unpivot twice - https://kohera.be/blog/power-bi/how-to-unpivot-twice/
Anonymous
6 years agoNot applicable
Hi jinweitan ,
1. Click the "Transform data" button to get into the Power Query Editor page.
2. Choose the table on the left and right-click the ID column.
3. Choose Unpivot other columns.
You may need to duplicate your table and unpivot them separately.
Then using the merge function to get what you desired table.
Please try.
Aiolos Zhao