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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

Top Solution Authors
Top Kudoed Authors