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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

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
Anonymous
Not applicable

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
Anonymous
Not applicable

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
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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