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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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

Top Solution Authors
Top Kudoed Authors