Power Query Unpivot - fix 4 common data layouts (incl. workbook)

Поділитися
Вставка
  • Опубліковано 17 лип 2024
  • How to use Excel Power Query Unpivot to fix 4 common data layouts, so your data is in the correct tabular layout to work with functions and PivotTables the way they were designed.
    🔻 STEP BY STEP INSTRUCTIONS EXCEL FILE DOWNLOAD: www.myonlinetraininghub.com/p...
    🎓 LEARN MORE in my Excel courses: www.myonlinetraininghub.com/
    🔔 SUBSCRIBE if you’d like more tips and tutorials like this.
    💬 Please leave me a COMMENT. I read them all!
    🧟‍♀️ CONNECT with Mynda on LinkedIn: / myndatreacy
    🎁 SHARE this video and spread the Excel love.
    Or if you’re short of time, please click the 👍
    💬 EXCEL QUESTIONS: Get help on our Excel Forum: www.myonlinetraininghub.com/e...
  • Наука та технологія

КОМЕНТАРІ • 612

  • @ronsss4774
    @ronsss4774 3 роки тому +26

    Thanks
    Power Query Unpivot - fix 4 common data layouts 2017 06 05
    ua-cam.com/video/-IMqkg35adA/v-deo.html 19min23
    00:00 intro
    00:40 - Ideal format, Tabular
    00:57 - Step by step instructions in downloaded example file
    01:05 - Sales info by person by year with row totals
    01:40 - How to start PowerQuery
    02:00 - PowerQuery Editor Window
    02:50 - Unpivot the year columns
    03:49 - Rename Columns
    04:05 - Change data types
    04:25 - Rename Query
    04:32 - Close and Load
    04:48 - Refresh query output table
    06:13 - Example 2: Partial tabular, repeating columns monthly hours and costs
    06:42 - load to PowerQuery
    07:00 - Unpivot the “values” columns
    07:28 - Split month out to separate column: Split Column feature
    08:02 - Pivot the Attribut column to separate Hours and Costs
    08:39 - Close and Load to Excel
    09:13 - Example 3: column headings over 2 rows
    09:45 - Format data as table
    10:18 - Load to PowerQuery
    10:21 - Merge 2 header rows into 1, Transpose data
    10:43 - Merge the first columns
    10:50 - Fill down month values
    11:04 - Perform merge: Transform tab > Text Columns group > Merge Columns command
    12:05 - Trim leading spaces
    12:10 - transpose back
    12:14 - Promote first row to become header
    12:27 - Unpivot
    12:48 - Split month out of attribute column
    12:57 - Trim unwanted space at front of column/
    13:03 - Pivot the attribute column to split Account hours and account costs
    13:16 - Rename columns
    13:20 - Close and Load
    13:50 - Example 4: Stacks of repeating rows
    14:25 - Convert data to table
    14:38 - Load to PowerQuery
    14:44 - Filter to delete blank rows and total rows
    15:14 - Add index column for unique numbers
    15:33 - Pivot Column don’t aggregate
    15:56 - Values now in staggered stacks with null values between rows
    16:19 - Fill up: Transform tab > Table group > Fill up button
    16:41 - review result, filled rows
    17:00 - Delete duplicate rows with null values
    17:09 - Remove Index column
    17:16 - format date column as date only
    17:44 - close and load
    .
    Keep up the good work.

  • @jasonjackson4555
    @jasonjackson4555 3 роки тому +34

    This video almost made me cry. This is going to be a massive time saver.

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  3 роки тому +3

      Wow, so pleased to hear that, Jason!

    • @aavv17
      @aavv17 2 роки тому +4

      😢 just transposed some data yesterday from 20 columns into 400 rows. Did it now within 10mins! Thanks!

  • @ethofmeyr
    @ethofmeyr Рік тому +4

    I watched this video 5 years ago and today it helped me with a task. These videos never lose their relevance. Thank you Mynda

  • @jared_musicSTC
    @jared_musicSTC 3 роки тому +13

    this just blew my mind. I've solved so many of these problems by manually copy and pasting data over the years! 🤯

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  3 роки тому +2

      No more copying and pasting now then, Jared :-) Glad it'll save you some time.

  • @flaviomelo530
    @flaviomelo530 4 роки тому +15

    This was the biggest amounts of "AHA's" I've said in ages! Amazing tutorial!

  • @JM-zm6fl
    @JM-zm6fl 4 роки тому +20

    Madam, you are an excellent teacher!

  • @matttownsend7119
    @matttownsend7119 2 місяці тому

    Two thumbs up from me. I've been working with Excel since the start, and did in fact have to hand massage lots of data sets manually or with the complex formulae you mention. If Power Query had been available then I would have saved months of work.

  • @nkfore
    @nkfore 4 роки тому +6

    One of the best PQ videos I've seen on here and easy to follow. THANK YOU!

  • @ajzambranop
    @ajzambranop Рік тому +1

    Dear Mynda, You must be awarded the Accounting Data Cleaning Nobel Prize for this video at the very least! Thanks! :-)

  • @serdip
    @serdip 3 місяці тому +1

    Thanks for another extremely informative and practical Excel mastery video. I started teaching myself Power Query only a few months ago, after over 27 years as an Excel developer. I can honestly say that there's no turning back. Power Query will forever change how I interact with my favorite spreadsheet program.
    Thank you for explaining each of these common scenarios in concise and clear terms. Everything makes sense as you presented it. I think for me, the main challenge is to develop the insight and intuition to know which Power Query menu options to use and in what sequence.
    It is not always immediately obvious to me when to pivot/unpivot/transpose - sometimes repeatedly - to rearrange the data into a final tabular format ready for analysis. I've done dozens of Power Query exercises on datasets just like the ones you covered in the lecture. I guess I will get better at it with continued practice and patience.
    Sometimes I end up writing complex but effective custom reusable M Code functions to arrive at the desired result, only to find out later that it could have been accomplished strictly through the UI! 🙂
    Thank you!

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  3 місяці тому +1

      Great to hear! I know what you mean about knowing which tools to use in what order is not always obvious, but in time you'll become adept at it. 😊

  • @felipe4181
    @felipe4181 3 роки тому +4

    These are perfect examples to solve many of the every day's issues when managing data models!!!
    Thank you Mynda!

  • @kmetcalfe
    @kmetcalfe 2 роки тому +1

    Of all your very helpful videos, this one will actually save me the most time, and help me the most. It gives solutions to problems I've occasionally had over the years, but have lately been confronted with over and over again. Thank you!

  • @rajeshvk4087
    @rajeshvk4087 4 роки тому +1

    Thanks for putting these together. Love your videos, they are simple and straight forward

  • @skd5432
    @skd5432 5 років тому +5

    Absolutely no expression....on my face.
    Well explained such a great video and contribution to the world of excel users.

  • @jamiebell5816
    @jamiebell5816 4 роки тому +2

    Thank you so much. I've recently started an online business that involves Microsoft Excel Power Query and your video was definitely an inspiration for that. Awesome teacher. I'd recommend you any day.

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  4 роки тому +1

      Thanks for your kind words, Jamie! Good luck with your new business :-)

  • @jirinakotkova4954
    @jirinakotkova4954 4 роки тому +7

    Thank you a lot. This is going to speed up my work for sure. I really didn't know there was such an option like unpivot! My jaws literally dropped!

  • @Acheiropoietos
    @Acheiropoietos 3 роки тому +2

    This series is incredibly helpful for me. I always shied away from tables and pivot tables, but now I have the poweeeeerrrr! 💕

  • @aaronbasch1714
    @aaronbasch1714 4 роки тому +4

    Great teaching. So clear, practical, and relevant to data issues I run into at work all the time. Thank you!

  • @bernieofalia
    @bernieofalia 3 роки тому +1

    Thanks for this... I was stuck for about a month in trying to solve the reapeted rows thing. your solution is AWESOME!

  • @aphastus
    @aphastus 2 роки тому

    First of all, it’s incredible how it looks like every problem has a solution with this method, how someone thought of all the options. Second, you’re a godsent, Miss, you’re my favorite Excel and data youtuber. I just sent a comment in another video about me having a problem with a very messy table and YT recommended me this video (I haven’t had seen yet) in my TL. This made me realize I have to keep practicing, there’s a lot to learn!

  • @nishpreet85
    @nishpreet85 5 років тому +4

    I am an excel enthusiast and was soooo excited watching this video...I absolutely loved it... learned something so complex in such understanding and well explained tutorial... Thank you so much...

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  5 років тому

      Thank you! Glad I could help. Please share this with your colleagues. We need to spread the word about how amazing Power Query is.

  • @109zxg
    @109zxg Рік тому +1

    Thank you Mynda! You have done a fantastic job to explain the concepts of power query, and this makes a big difference in my life. Your deep knowledge of excel, tone of voice and speed in the demonstrations are just perfectly blended in the video and it is entertaining to watch your UA-cam channel. Two thumbs up!

  • @rawshanali.bangladesh
    @rawshanali.bangladesh 2 роки тому +1

    Thank you Ma'am. I try to watch all your videos. I have learned power query, dashboard, advance pivot, pivot chart from your video. It helped me a lot to do my work properly and more efficiently and it makes my life easy and shortens my report making procedures.

  • @doylemaleche9937
    @doylemaleche9937 3 роки тому +1

    The BEST example to keep as reference! VERY professional and easy to follow. THANK YOU !!

  • @maggiepeng4822
    @maggiepeng4822 2 роки тому

    this video really help. I work with Excel everyday and am slowly transitioning to power query to make things more automatic. thank you !!

  • @learnitinstructor5792
    @learnitinstructor5792 2 місяці тому

    Incredible! I've been training PowerPivot, PowerQuery, PivotTables for a very long time and didn't know there were such amazing tools to fix these data issues! Wow! Thank you so much!

  • @Bourouwe
    @Bourouwe 3 роки тому +1

    You're extraordinary on handling data with Excel! I love your videos and thank you infinitely!

  • @AweshBhornya-ExcelforNewbies
    @AweshBhornya-ExcelforNewbies 4 роки тому +1

    Thanks for this video it helped me resolve a very complicated problem for one of my client. Love your videos keep them coming.

  • @mazharhussain8871
    @mazharhussain8871 4 роки тому

    you have beautifully explained the most common faulty format cleansing. you are better than Microsoft professional trainers.

  • @vasilisa6128
    @vasilisa6128 4 роки тому +1

    Thank you! It's an amazing, constructive with a good pace video! It helps to solve my work tasks perfectly.

  • @PrakashMurugamalai
    @PrakashMurugamalai Рік тому +2

    Wow ❤ It is amazing how you have shared such valuable knowledge with everyone. Thank you so much. The internet thrives because of people like you.

  • @kimerared
    @kimerared 4 роки тому

    This video explain most common format problems. It is great and straight to the point. Thank you!

  • @wesszep9865
    @wesszep9865 5 років тому

    Thanks Mynda, I've already seen many power query preparation, never check how to start to prepare my data and the video was 2017! It's helpful to see that there's an start, thanks for help, be blessed.

  • @cambike
    @cambike 5 років тому

    Watched multiple videos on how to do this. By far the best video, great pace to the lesson and clear instructions. Thanks for the great work

  • @aguerojg
    @aguerojg 5 років тому

    What an excellent tutorial, Mynda, it's a pleasure to watch your lessons, you have the gift to explain things in a fun and interactive way. Thank you very much!!

  • @ChengVincentckf
    @ChengVincentckf Рік тому

    I searched the last scenario for days and you finally show me how to do it. Thank you!

  • @gregbernard7861
    @gregbernard7861 Рік тому

    Wow - the download file is awesome! Best I have ever seen / just went through all the examples with 100% success rate!

  • @jengiuliano1143
    @jengiuliano1143 2 роки тому +1

    This was excellent! I always learn SO MUCH from you so THANK YOU again!

  • @nattawut_chatwiriyacharoen
    @nattawut_chatwiriyacharoen 5 років тому

    Thanks a lot Mynda. This is a great video, not only techniques but also supporting documents. I love it so much.

  • @shday4
    @shday4 2 роки тому +2

    Wow, I'm so glad I found this video, it's clear, concise, and effective as hell, great job and format... definitely keeping this one!!!!😀

  • @stephenmascarenhas1987
    @stephenmascarenhas1987 2 роки тому +1

    Fantastic explanation with different scenarios and an absolute time saver for many,

  • @michaelpammit8647
    @michaelpammit8647 2 роки тому +4

    Mynda, thank you for this video! You've changed my life.
    Over this weekend, I had to pull data from over 400 bi-weekly print-formatted timecards made in excel. They each had 2 non-formatted tables of weeks, and separate rows for each department worked in (thankfully, column & row numbers were consistent for all of them). Using a combination of your pivot scenarios plus your "multiple files containing multiple sheets" video, I was able to get the data from ALL of the timecards in tabular format (one row per dept-date-hours) in just about 8 hours' work! And I can just refresh the query as new timecards are added! Not to mention all the error-catching utility.
    Thank you!!!

  • @sjd7aa
    @sjd7aa 2 роки тому +1

    Brilliant! The more of your videos I watched the more impressed I am with Power Query's capabilities, to say nothing of the easy-to-follow and effective teaching methods you employ. Great work, and thank you! I am making a mental note of the work I can save, having previously used a witches' brew of clunky formulae to harvest data that I have to re-familiarize with each time I do the occasional work.
    Pity I can only upvote you once on this.

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  2 роки тому

      Thanks for your kind words, Steve! Great to hear you will have lots of uses for Power Query 😊

    • @sjd7aa
      @sjd7aa 2 роки тому

      @@MyOnlineTrainingHub It's been a great learning experience for the past week. I joined your site and posted a question there, and I'm hoping to get some guidance on my little project (where PQ reduced my data collection/massaging time from 5 minutes - with risk of errors - to 18 SECONDS, error-free). Ciao, Mynda!

  • @shoppersdream
    @shoppersdream 3 роки тому

    Thanks, Mynda! You are so good. I will have to watch it a couple of times to totally understand.

  • @RS-el7iu
    @RS-el7iu 6 років тому

    the best and the most comprehensive explanation so far. thank you very much

  • @galinastefanova7770
    @galinastefanova7770 4 роки тому +1

    Didactic, clear and calmly explained. Excellent video!

  • @pauloelifaz
    @pauloelifaz 4 роки тому

    This video saved my life 2 times, in different periods, in different cases. THANK YOU!

  • @Wild_Dragonfly
    @Wild_Dragonfly 6 років тому

    Thank you for your video. You clearly explained a complex subject in easy to follow steps.

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  6 років тому

      Thanks, Leonardo. Great to know you found it easy to follow.

  • @bindur1765
    @bindur1765 Рік тому

    grateful Mynda for these amazing excel tips. you are kind

  • @xiomaragotch9453
    @xiomaragotch9453 3 роки тому

    You saved my day! I have been thinking how to do case #2 and Voila!..you had it here so well explained. THANKS!!!!

  • @celestialkat
    @celestialkat 5 років тому

    This is absolutely superb! If I could like this video more than once I would!! Thank you Mynda!

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  5 років тому

      :-) thank you! Great to know you liked it. Tell your colleagues how great Power Query is.

  • @gustavanderson4633
    @gustavanderson4633 2 роки тому

    Thank you Mynda! The second example was exactly what I was looking for. Works perferctly! Cheers!

  • @calvinc851
    @calvinc851 4 роки тому +1

    The last example was especially cool to watch! Thank-you!

  • @sachindekhane3251
    @sachindekhane3251 4 роки тому

    Super. Loved the way you explained all the scenarios. Thank you !

  • @mdmahtabuddin9721
    @mdmahtabuddin9721 Рік тому

    You don't know Dear,
    how much you save my times?
    Thank You soo much.

  • @megamundus
    @megamundus 2 роки тому

    after 4years and a half ... this video of yours is still fresh and absolutely useful
    Thank you

  • @silvo4880
    @silvo4880 2 місяці тому

    You are awesome, thank you. The repeating data issue has been driving me mad for weeks. I love the fill up method idk why I never thought of it as I’ve been using fill down.

  • @BertHarmsma
    @BertHarmsma 5 років тому

    This is GREAT! Solving the most common situations

  • @sachinm1659
    @sachinm1659 3 роки тому

    I like what you done, by simplifying it to enable people like me to understand it in more depth. i knew this feature some how lost it object and ways. thanks for such beautiful videos.
    Just one more thing your voice makes it pleasing to hear. :)
    continue your good work !! more power to you...

  • @vicBanga
    @vicBanga Рік тому

    The best and easy to understand video on this topic! thank you so much

  • @msoffice6037
    @msoffice6037 5 років тому

    Thanks a lot for your time and efforts to spread knowledge!

  • @makisalimhussain2334
    @makisalimhussain2334 5 років тому +1

    More than wonderful video. Thank you very much Mynda.

  • @roberth.9558
    @roberth.9558 3 місяці тому

    Brilliant and well presented. Thank you, Mynda.

  • @joanhauff2479
    @joanhauff2479 5 років тому

    Wow! Thanks for the thorough tutorial on the unpivot function.

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  5 років тому

      :-) you' re most welcome, Joan. Glad you found it helpful. Please spread the word about how great Power Query is.

  • @raghavan265
    @raghavan265 2 роки тому

    I work as a Power BI developer and I'm a fresher. Today I encountered a similar problem at my work and BAM! You're video just saved me so many hours of research! Thank you so much

  • @ThalassaMavri
    @ThalassaMavri 6 років тому

    Beautiful as always. Thank you Mynda!

  • @MrEddyTse
    @MrEddyTse 7 років тому

    Very good and concise explanation of different ways to do the UnPivot function.

  • @anhvunguyentran
    @anhvunguyentran 7 років тому

    More video like this please. So easy to understand. You are great. Thank you so much.

  • @justtisha
    @justtisha Рік тому

    I LOVE these videos!! Thank you so much

  • @wayneedmondson1065
    @wayneedmondson1065 3 роки тому

    Hi Mynda. Awesome Unpivot examples! Really helps to learn the concepts. Would love to see you do a video on say a dozen of the most common Unpivot problems that you see in the workplace. Thanks for sharing this great information and also for providing the workbook and data to follow along. Most appreciated :)) Thumbs up!!

  • @AashimGupta15
    @AashimGupta15 6 місяців тому +1

    Truly a masterful video. Thanks for all that you do.

  • @khalidmajeed2886
    @khalidmajeed2886 3 роки тому

    WHAT A GREAT YOU ARE ALSO PROVIDING EXAMPLE WORKBOOK.

  • @SonuPandey-me4fs
    @SonuPandey-me4fs 4 роки тому

    Great... Cover the difficulties as an example is great.

  • @brunonapoleao3362
    @brunonapoleao3362 3 місяці тому

    Excellent content and teaching!! Congratulations and thank you very much for sharing this knowledge.

  • @ThatDwayne
    @ThatDwayne 3 роки тому

    Very clear and helpful walkthrough! Thank you very much.

  • @AndrewWright26
    @AndrewWright26 2 роки тому

    Thank you, these are great tips! You explain this so well. 🤔

  • @LotfyKozman
    @LotfyKozman 7 років тому

    Excellent Video with a perfect and clear explanation. Thanks for your efforts

  • @rdaleprice7184
    @rdaleprice7184 3 роки тому

    Excellent video on Unpivot! Thank you for sharing the video!!

  • @malchicken
    @malchicken 4 роки тому

    Thank you for this video, I have had to reference it to help me with one of these problems many many times. Thank you :)

  • @davidandrews7544
    @davidandrews7544 4 роки тому +4

    This was exactly what I needed to see. Thank you so much for putting this together!

  • @quocle124
    @quocle124 2 роки тому

    This is the most practical and excellent tutorial I really need. Thank you Madam

  • @Blackgirl-in-Data
    @Blackgirl-in-Data 10 місяців тому

    Thank you for this! I'm literally screaming with joy over being able to get the nested columns done.

  • @rikkinewman8515
    @rikkinewman8515 5 років тому

    Great video. Really easy to follow, and such a useful set of functions!

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  5 років тому

      Thanks, Rikki. Great to see you're getting into Power Query. It's an amazing tool.

  • @leorc564
    @leorc564 3 роки тому

    y realicé las prácticas del workbook! I did it. It was fun.

  • @SothearithKONGMrMuyKhmer
    @SothearithKONGMrMuyKhmer 3 місяці тому

    Thanks a lot Mynda! This has helped me a lot. 🎉

  • @mdexcelpro8495
    @mdexcelpro8495 3 роки тому

    The way you present is awesome thanks of lots 😊

  • @amergaber3996
    @amergaber3996 3 роки тому

    You are giving a great job. Thank you so much for sharing these useful videos.

  • @leorc564
    @leorc564 3 роки тому

    Todas las explicaciones claras y sencillas de entender, muchas gracias, aprovechando para refrescar y aprender conocimientos, saludos, bonito acento!

  • @jiky4296
    @jiky4296 3 роки тому

    The best tutor I have seen

  • @kennethgreen2829
    @kennethgreen2829 Місяць тому

    I know that this video is 6 years old now but you have saved me a great deal of stress and grey hair, thank you for making this wonderful and informative video.

  • @jazzista1967
    @jazzista1967 7 років тому

    Great solutions for scenarios specially the nested titles: they are the most difficult to deal with. Thanks

  • @KaiHakai
    @KaiHakai Рік тому

    thank you so much. from your presentation I have found solutions from my bottleneck facing in day to day work

  • @Bharatmsharma
    @Bharatmsharma 4 роки тому +1

    Superb Video Madam, One of the best vidoe i have ever seen on Unpivot. Thank you viery much. I can related two sheets related to my work.

  • @rolandparenteau685
    @rolandparenteau685 6 років тому

    What a terrific explanation! Well done!

  • @chetankumarborkar7163
    @chetankumarborkar7163 4 роки тому

    Thanks for this video which has solved my issues in power-bi.

  • @sanishtv
    @sanishtv 3 місяці тому

    Thanks Lynda for this very useful information for my most faced problems. Appreciate ur hardwork. I will soon jump into your course too..Thanks alot😍🙏

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  3 місяці тому

      Glad it was helpful! Look forward to teaching you more Power Query wonders in my course 😊

  • @OrkunAkar
    @OrkunAkar 7 місяців тому

    I wish I found thıs video before I spent 2 weeks in my budget tables. :) thank you for sharing knowledge

    • @MyOnlineTrainingHub
      @MyOnlineTrainingHub  7 місяців тому +1

      Hopefully you can use it next time 😁

    • @OrkunAkar
      @OrkunAkar 6 місяців тому

      @@MyOnlineTrainingHub for sure! :) I am excited to apply in future books thanks again!

  • @accountsvalue
    @accountsvalue 2 роки тому

    Very helpful and on point. Thank you so much

  • @deanar
    @deanar 2 роки тому

    Greatest video ever not even gonna lie , this will save me hours 😂😂😂

  • @mickaeltaieb733
    @mickaeltaieb733 5 років тому

    Excellent video! Thank you so much for your wonderful contributions the to Excel world.