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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors