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
Arkhos94
Helper IV
Helper IV

How to change data in a request from line to column

I have a request looking like this :

Dealer nameFunctionName
Site ASales directorMr A
Site AAfter sales directorMr B
Site AHR directorMr C
Site BSales directorMr D
Site BAfter sales directorMr E
Site BHR directorMr F

 

And I want to change it into this :

Dealer NameSales directorAfter sales directorHR director
Site AMr AMr BMr C
Site BMr DMr EMr F

 

I tried a few option but cannot find how to do it.

 

I see how to do it using "adding new column" then playing with some "if/then/else" but it doesn't look like an efficent way to do it. Is there a build-in function for this ?

1 ACCEPTED SOLUTION
Jakinta
Solution Sage
Solution Sage

2 REPLIES 2
Arkhos94
Helper IV
Helper IV

Thank you @Jakinta 

Jakinta
Solution Sage
Solution Sage

Table.Pivot

Jakinta_0-1625057763632.png

 

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!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.