Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Anonymous
Not applicable

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
Anonymous
Not applicable

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

 

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.