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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
haefnja
Frequent Visitor

Need Help with data Table transformation

Need some help, I am trying to transofrm my data table (from a material handling system) into something a bit easier to perform some calculations from.  The data currently looks a little something like this, where I get a block of data approximately every 15 minutes for what each blender dispensed for a certain material running a certain recipe:

cycleStartcycleEndblenderrecipematerialusageLBS
5/2/21 8:15 PM5/2/21 8:30 PM39Line 39 No Flex ARM311840.203
5/2/21 8:15 PM5/2/21 8:30 PM120Flowpath 5.1RM30545.854
5/2/21 8:15 PM5/2/21 8:30 PM120Flowpath 5.1RM30520.071
5/2/21 8:15 PM5/2/21 8:30 PM36Line 3615-51944.272
5/2/21 8:15 PM5/2/21 8:30 PM36Line 36RM321433.252
5/2/21 8:15 PM5/2/21 8:30 PM36Line 36RME304329.023
5/2/21 8:15 PM5/2/21 8:30 PM110Tubing SkinRM30894.209
5/2/21 8:15 PM5/2/21 8:30 PM36Line 36RM32464.248
5/2/21 8:15 PM5/2/21 8:30 PM90Hose Black - No FoamRM32465.374
5/2/21 8:15 PM5/2/21 8:30 PM110Tubing SkinRM32460.201
5/2/21 8:15 PM5/2/21 8:30 PM120Flowpath 5.1RM30892.201
5/2/21 8:15 PM5/2/21 8:30 PM39Line 39 No Flex ARM321457.626
5/2/21 8:15 PM5/2/21 8:30 PM39Line 39 No Flex ARM3246A5.769
5/2/21 8:15 PM5/2/21 8:30 PM31Line 31 8mil & underRM32781.815
5/2/21 8:15 PM5/2/21 8:30 PM33Line 33 8mil & underRM32781.39
5/2/21 8:15 PM5/2/21 8:30 PM39Line 39 No Flex ARM3171-R11.479
5/2/21 8:15 PM5/2/21 8:30 PM33Line 33 8mil & underRM3171-R0.001
5/2/21 8:15 PM5/2/21 8:30 PM31Line 31 8mil & underRM3171-R6.429
5/2/21 8:15 PM5/2/21 8:30 PM31Line 31 8mil & underRM323859.472
5/2/21 8:15 PM5/2/21 8:30 PM33Line 33 8mil & underRM323849.416
5/2/21 8:15 PM5/2/21 8:30 PM120Flowpath 5.1RM32382.414

 

What I would like to do is get this a little more concise so that I have a single line for each blender, with new columns for each material and the usageLBS amount in that row.  See example of what I am trying to do here:

cycleStartcycleEndblenderrecipe15-5194RME3043RM3052RM3054RM3089RM3118RM3171-RRM3214RM3238RM3246RM3246ARM3278
5/2/21 8:15 PM5/2/21 8:30 PM31Line 31 8mil & under      6.429 59.472  1.815
5/2/21 8:15 PM5/2/21 8:30 PM33Line 33 8mil & under      0.001 49.416  1.39
5/2/21 8:15 PM5/2/21 8:30 PM36Line 364.27229.023     33.252 4.248  
5/2/21 8:15 PM5/2/21 8:30 PM39Line 39 No Flex A     40.20311.47957.626  5.769 
5/2/21 8:15 PM5/2/21 8:30 PM90Hose Black - No Foam        5.374  
5/2/21 8:15 PM5/2/21 8:30 PM110Tubing Skin            
5/2/21 8:15 PM5/2/21 8:30 PM120Flowpath 5.1  0.0715.8542.201   2.414   

 

Can anyone help me out in this?

Pictures below in case the table doesn't turn out clearly.

haefnja_0-1622129267149.png

haefnja_1-1622129279018.png

 

1 ACCEPTED SOLUTION
ERD
Community Champion
Community Champion

Hi @haefnja,

Just select these 2 columns in Power Query Editor, then click Transform - Pivot Columns:

ERD_0-1622179680583.pngERD_1-1622179722108.png

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

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

Check out my latest demo report in the data story gallery.

Stand with Ukraine!


Here are official ways you can support Ukraine financially (accounts with multiple currencies):
1) Support the Armed Forces of Ukraine: https://bank.gov.ua/ua/about/support-the-armed-forces
2) Come Back Alive foundation: https://www.comebackalive.in.ua/

Thank you!

View solution in original post

2 REPLIES 2
haefnja
Frequent Visitor

Thanks @ERD I was able to try this shortly after I posted after some more digging around and it worked perfectly.

ERD
Community Champion
Community Champion

Hi @haefnja,

Just select these 2 columns in Power Query Editor, then click Transform - Pivot Columns:

ERD_0-1622179680583.pngERD_1-1622179722108.png

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

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

Check out my latest demo report in the data story gallery.

Stand with Ukraine!


Here are official ways you can support Ukraine financially (accounts with multiple currencies):
1) Support the Armed Forces of Ukraine: https://bank.gov.ua/ua/about/support-the-armed-forces
2) Come Back Alive foundation: https://www.comebackalive.in.ua/

Thank you!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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