Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon'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.
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:
cycleStart | cycleEnd | blender | recipe | material | usageLBS |
5/2/21 8:15 PM | 5/2/21 8:30 PM | 39 | Line 39 No Flex A | RM3118 | 40.203 |
5/2/21 8:15 PM | 5/2/21 8:30 PM | 120 | Flowpath 5.1 | RM3054 | 5.854 |
5/2/21 8:15 PM | 5/2/21 8:30 PM | 120 | Flowpath 5.1 | RM3052 | 0.071 |
5/2/21 8:15 PM | 5/2/21 8:30 PM | 36 | Line 36 | 15-5194 | 4.272 |
5/2/21 8:15 PM | 5/2/21 8:30 PM | 36 | Line 36 | RM3214 | 33.252 |
5/2/21 8:15 PM | 5/2/21 8:30 PM | 36 | Line 36 | RME3043 | 29.023 |
5/2/21 8:15 PM | 5/2/21 8:30 PM | 110 | Tubing Skin | RM3089 | 4.209 |
5/2/21 8:15 PM | 5/2/21 8:30 PM | 36 | Line 36 | RM3246 | 4.248 |
5/2/21 8:15 PM | 5/2/21 8:30 PM | 90 | Hose Black - No Foam | RM3246 | 5.374 |
5/2/21 8:15 PM | 5/2/21 8:30 PM | 110 | Tubing Skin | RM3246 | 0.201 |
5/2/21 8:15 PM | 5/2/21 8:30 PM | 120 | Flowpath 5.1 | RM3089 | 2.201 |
5/2/21 8:15 PM | 5/2/21 8:30 PM | 39 | Line 39 No Flex A | RM3214 | 57.626 |
5/2/21 8:15 PM | 5/2/21 8:30 PM | 39 | Line 39 No Flex A | RM3246A | 5.769 |
5/2/21 8:15 PM | 5/2/21 8:30 PM | 31 | Line 31 8mil & under | RM3278 | 1.815 |
5/2/21 8:15 PM | 5/2/21 8:30 PM | 33 | Line 33 8mil & under | RM3278 | 1.39 |
5/2/21 8:15 PM | 5/2/21 8:30 PM | 39 | Line 39 No Flex A | RM3171-R | 11.479 |
5/2/21 8:15 PM | 5/2/21 8:30 PM | 33 | Line 33 8mil & under | RM3171-R | 0.001 |
5/2/21 8:15 PM | 5/2/21 8:30 PM | 31 | Line 31 8mil & under | RM3171-R | 6.429 |
5/2/21 8:15 PM | 5/2/21 8:30 PM | 31 | Line 31 8mil & under | RM3238 | 59.472 |
5/2/21 8:15 PM | 5/2/21 8:30 PM | 33 | Line 33 8mil & under | RM3238 | 49.416 |
5/2/21 8:15 PM | 5/2/21 8:30 PM | 120 | Flowpath 5.1 | RM3238 | 2.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:
cycleStart | cycleEnd | blender | recipe | 15-5194 | RME3043 | RM3052 | RM3054 | RM3089 | RM3118 | RM3171-R | RM3214 | RM3238 | RM3246 | RM3246A | RM3278 |
5/2/21 8:15 PM | 5/2/21 8:30 PM | 31 | Line 31 8mil & under | 6.429 | 59.472 | 1.815 | |||||||||
5/2/21 8:15 PM | 5/2/21 8:30 PM | 33 | Line 33 8mil & under | 0.001 | 49.416 | 1.39 | |||||||||
5/2/21 8:15 PM | 5/2/21 8:30 PM | 36 | Line 36 | 4.272 | 29.023 | 33.252 | 4.248 | ||||||||
5/2/21 8:15 PM | 5/2/21 8:30 PM | 39 | Line 39 No Flex A | 40.203 | 11.479 | 57.626 | 5.769 | ||||||||
5/2/21 8:15 PM | 5/2/21 8:30 PM | 90 | Hose Black - No Foam | 5.374 | |||||||||||
5/2/21 8:15 PM | 5/2/21 8:30 PM | 110 | Tubing Skin | ||||||||||||
5/2/21 8:15 PM | 5/2/21 8:30 PM | 120 | Flowpath 5.1 | 0.071 | 5.854 | 2.201 | 2.414 |
Can anyone help me out in this?
Pictures below in case the table doesn't turn out clearly.
Solved! Go to Solution.
Hi @haefnja,
Just select these 2 columns in Power Query Editor, then click Transform - Pivot Columns:
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!
Thanks @ERD I was able to try this shortly after I posted after some more digging around and it worked perfectly.
Hi @haefnja,
Just select these 2 columns in Power Query Editor, then click Transform - Pivot Columns:
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!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
147 | |
85 | |
66 | |
52 | |
46 |
User | Count |
---|---|
215 | |
90 | |
83 | |
66 | |
58 |