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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
paw1
Helper I
Helper I

Pivot Option in power bi backend

Hi,

 

Can any one please help me on below requirement. I have a source like below. Please help me to pivot status and Date columns like in expected output in power query editor. I can see only unpivot option in power query.

 

Input:

 

Main IDstep nostatusDate
1110On Hold14/11/2022 08:29:05
1110Resumed14/11/2022 08:29:10
1110Complete14/11/2022 08:29:15
1110Started14/11/2022 08:29:00
1123Started14/11/2022 09:29:00
1123Complete14/11/2022 09:35:00

 

Expected output:

 

Main IDstep noOn Hold statusResumed statusComplete StatusStarted Status
111014/11/2022 08:29:0514/11/2022 08:29:1014/11/2022 08:29:1514/11/2022 08:29:00
1123  14/11/2022 09:35:0014/11/2022 09:29:00
1 ACCEPTED SOLUTION
v-rzhou-msft
Community Support
Community Support

Hi @paw1 ,

 

I think you can select [Status] column and use "Pivot Column" function.

RicoZhou_0-1676279177427.png

You can find it from Transform > Pivot Column in Power Query Editor.

RicoZhou_0-1676279364464.png

Result is as below.

RicoZhou_1-1676279196252.png

 

Best Regards,
Rico Zhou

 

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

1 REPLY 1
v-rzhou-msft
Community Support
Community Support

Hi @paw1 ,

 

I think you can select [Status] column and use "Pivot Column" function.

RicoZhou_0-1676279177427.png

You can find it from Transform > Pivot Column in Power Query Editor.

RicoZhou_0-1676279364464.png

Result is as below.

RicoZhou_1-1676279196252.png

 

Best Regards,
Rico Zhou

 

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

 

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.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

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

August Carousel

Fabric Community Update - August 2024

Find out what's new and trending in the Fabric Community.