Forum Discussion
Pivot with new columns
Hi,
I have created several new columns which I then want to rotate. The problem is that these new columns don't appear in Power Query. So I think that to rotate these columns I have to create a formula to build the pivot table. Is it true? And what formula to do that?
11 Replies
- AlB
Community Champion
1. What do you mean by "rotate" the columns?
2. What are you doing exactly? Reading from a data source with Power query and adding columns in thta data source?
- Jeremy19
Helper III
1) I would like to rotate the columns to have for exemple :
Player ColA ColB
A 10 20
B 13 23
->
Player Col Value
A ColA 10
A ColB 20
B ColA 13
B ColB 23
2) I need to create this column A and B as in the example but they don't appear in Power Query after creating them
- itchyeyeballs
Impactful Individual
You can use unpivot to "rotate" them - https://support.office.com/en-us/article/unpivot-columns-power-query-0f7bad4b-9ea1-49c1-9d95-f588221c7098
Where are you creating the new columns? if its in the underlying datasource you may need to modify your query to pick them up