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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

tranform coloumn to row

hey team,
i have an excel file with a  column that contains names,role, and companies of the users, 

rahulkrishna14_1-1661829433191.png

 

I want to transform A3 to b2, a4 to c2,a5 to a3, a6 to b3, and a7to c3... ie every name should be in the name column, role in the role column and company in company column

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

You could transpose the Name column and then use the first row as the headers.

1.Transpose

vstephenmsft_0-1662025532935.png

 

2.Use first row as headers

vstephenmsft_1-1662025545488.png

vstephenmsft_2-1662025566335.png

 

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

3 REPLIES 3
wdx223_Daniel
Super User
Super User

=#table({"Name","Role","Company"},List.Split(PreviousStepName[Name],3))

Anonymous
Not applicable

Thanks, this is throwing error in power query, Can you please eloborate it

Anonymous
Not applicable

Hi @Anonymous ,

 

You could transpose the Name column and then use the first row as the headers.

1.Transpose

vstephenmsft_0-1662025532935.png

 

2.Use first row as headers

vstephenmsft_1-1662025545488.png

vstephenmsft_2-1662025566335.png

 

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.