cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Rickrj
New Member

transpose column into line

Hey guys.

Could you help me with the following question. I get a base where I have my column records.

I need to transpose the columns and place the record under those columns.

As shown in the example below.

I need this direct solution in Power Query.

Download Pbix.
https://drive.google.com/file/d/1Snwi6gq7vRYTNsn6Bt-9sSoX__TeHoMG/view?usp=sharing 


Image 2.JPGimage 1.JPG

1 ACCEPTED SOLUTION
AlexisOlson
Super User
Super User

This is called 'pivoting' but you need some extra information to make it work. Add a column that groups each set of three rows. One way to do this is to add an index column from 0 and integer-divide by three so that you have this:

AlexisOlson_0-1637964576743.png

then you can pivot COLLUM

AlexisOlson_1-1637964666433.png

Result:

AlexisOlson_2-1637964696063.png

 

View solution in original post

2 REPLIES 2
Rickrj
New Member

Spectacular, saved my weekend. Thank you very much

AlexisOlson
Super User
Super User

This is called 'pivoting' but you need some extra information to make it work. Add a column that groups each set of three rows. One way to do this is to add an index column from 0 and integer-divide by three so that you have this:

AlexisOlson_0-1637964576743.png

then you can pivot COLLUM

AlexisOlson_1-1637964666433.png

Result:

AlexisOlson_2-1637964696063.png

 

View solution in original post

Helpful resources

Announcements
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Power BI December 2021 Update_carousel 768x460.jpg

Check it Out!

Click here to read more about the December 2021 Updates!

Jan 2022 Dev Camp 768x460 copy.png

Power BI Dev Camp- January 27th, 2022

Mark your calendars and join us for our next Power BI Dev Camp!

Top Solution Authors