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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Varan_15
Helper II
Helper II

convert Row to column in powerquery

Hi all,

I have source data which is contain row level process step i need to split into column level data in edit query transformation.

ex: source file

1.PNG

 

Expected result using edit query: (Process row steps (input,review,print)  need to convert into column level with IN and OUT time)

 

2.PNG

 

Thanks,

Varan

1 ACCEPTED SOLUTION
ryan_mayu
Super User
Super User

@Varan_15 

1. SELECT IN TIME and OUT TIME , then unpivot columns

1.PNG

 

2. merge column

2.PNG

 

3. select merge column and pivot column

3.PNG4.PNG





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

5 REPLIES 5
MSuser5
Helper II
Helper II

Hi All,

can we achive this using summarize calculated column ?

ryan_mayu
Super User
Super User

@Varan_15 

1. SELECT IN TIME and OUT TIME , then unpivot columns

1.PNG

 

2. merge column

2.PNG

 

3. select merge column and pivot column

3.PNG4.PNG





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




@ryan_mayu ,

 

Great job thanks it's working fine.

you are welcome





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




@ryan_mayu ,

 

there is second scenario if i want to keep all the input rows as named like input 1 and input 2..... how can we achive this way for example

1.PNG2.PNG

 

Thanks,

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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