Combining Excel Tables in a highly flexible way

Тәжірибелік нұсқаулар және стиль

Power Query is awesome at consolidating Excel data, and with a couple of tricks you can make it even more flexible and less likely to error out.
Here's a link to the challenge and the file if you want to have a go before or after watching my solution
accessanalytic.com.au/power-o...
00:00 Intro
01:47 Excel.CurrentWorkbook()
03:10 Creating a Headings Step
05:11 Replace Expanded List with dynamic headings step
05:28 Replacing nulls to keep items when unpivotting
07:22 Sorting Columns
07:58 THE TRAP!
10:51 Testing it all works...
Thanks everyone!
Connect with me on LinkedIn and Twitter via
wyn.bio.link/

Пікірлер: 85

  • @mrsimonexeter
    @mrsimonexeter2 жыл бұрын

    Everytime I watch your videos I end up with more work to do to update my queries... but they are running better than ever!!!

  • @AccessAnalytic

    @AccessAnalytic

    2 жыл бұрын

    Hah! Nice one Simon 😁

  • @txreal2

    @txreal2

    2 жыл бұрын

    @@AccessAnalytic Same here, just in time for my data cleaning project. Thanks Wyn!

  • @txreal2

    @txreal2

    2 жыл бұрын

    Same here, just in time for my data cleaning project. Thanks Wyn!

  • @AccessAnalytic

    @AccessAnalytic

    2 жыл бұрын

    @@txreal2 you're welcome

  • @AccessAnalytic

    @AccessAnalytic

    2 жыл бұрын

    @@txreal2 😁

  • @syedaneesdurez8766
    @syedaneesdurez8766 Жыл бұрын

    Every video you bring with new tricks. That's really great to learn new things. Amazing. Liked it.

  • @AccessAnalytic

    @AccessAnalytic

    Жыл бұрын

    Thank you. The kind comments are greatly appreciated!

  • @johnhackwood1568
    @johnhackwood1568 Жыл бұрын

    Love this dynamic col approach to a common problem

  • @AccessAnalytic

    @AccessAnalytic

    Жыл бұрын

    Cheers John

  • @CyPersia
    @CyPersia2 жыл бұрын

    You've push it to another level again, Wyn. I find it very useful especially where we can not control the table content.

  • @AccessAnalytic

    @AccessAnalytic

    2 жыл бұрын

    Thanks for watching and commenting Cy

  • @mohammedelsakally540
    @mohammedelsakally5402 жыл бұрын

    Thank you and much appreciated for your valuable informations ,,,

  • @AccessAnalytic

    @AccessAnalytic

    2 жыл бұрын

    You're welcome Mohammed

  • @melissa3558
    @melissa35582 жыл бұрын

    Another great challence and wonderful solution! Thanks for sharing your knowledge and appreciation for Power Query, Wyn

  • @AccessAnalytic

    @AccessAnalytic

    2 жыл бұрын

    Thanks Melissa

  • @fizexbakar1986
    @fizexbakar19862 жыл бұрын

    Amazing video!

  • @AccessAnalytic

    @AccessAnalytic

    2 жыл бұрын

    Thank you fizex

  • @shirleymoreman6725
    @shirleymoreman67252 жыл бұрын

    Great stuff Wyn as always. That column tip is very timely for something I'm just working on!

  • @AccessAnalytic

    @AccessAnalytic

    2 жыл бұрын

    Great to know it's helped you Shirley, thanks for letting me know 😃

  • @brij26579
    @brij265792 жыл бұрын

    👍👌very helpful this is what I was searching for😉

  • @AccessAnalytic

    @AccessAnalytic

    2 жыл бұрын

    Cheers

  • @ohdjrp4
    @ohdjrp42 жыл бұрын

    Thanks! This is very nice!

  • @AccessAnalytic

    @AccessAnalytic

    2 жыл бұрын

    Cheers

  • @abdullah_alhathloul_
    @abdullah_alhathloul_2 жыл бұрын

    Great video, thanks

  • @AccessAnalytic

    @AccessAnalytic

    2 жыл бұрын

    Thanks for taking the time to leave a kind comment

  • @wayneedmondson1065
    @wayneedmondson10652 жыл бұрын

    Awesome Wyn! Very helpful. Love the headings trick. Thanks for hosting the challenge and also for providing the sample file to follow along. Much appreciated :)) Thumbs up!!

  • @AccessAnalytic

    @AccessAnalytic

    2 жыл бұрын

    Thanks Wayne, glad you're following along 👍

  • @wayneedmondson1065

    @wayneedmondson1065

    2 жыл бұрын

    @@AccessAnalytic Definitely!! Only way to learn is with hands on the keyboard :)) Your challenges are great! One thought is for you to release a short YT video presenting the problem when you post the challenge on your blog. That way, YTubers get the alert before you release the solution video. Just an idea. I've seen a few others do it this way. Thanks again!!

  • @khawarmalik5239
    @khawarmalik52392 жыл бұрын

    Wow. This Table.ColumnName function is very handy.

  • @AccessAnalytic

    @AccessAnalytic

    2 жыл бұрын

    It certainly is Khawar

  • @ivangardiner66
    @ivangardiner662 жыл бұрын

    Absolutely awesome Wyn, really love this approach. I have bookmarked this to the top of my useful techniques for Power Query 😊

  • @AccessAnalytic

    @AccessAnalytic

    2 жыл бұрын

    That’s great Ivan.

  • @bradfry6396
    @bradfry63962 жыл бұрын

    Awesome Wyn, I’ll be using this for sure 👍

  • @AccessAnalytic

    @AccessAnalytic

    2 жыл бұрын

    Nice one Brad

  • @martyc5674
    @martyc56742 жыл бұрын

    Excellent thanks Wyn.

  • @AccessAnalytic

    @AccessAnalytic

    2 жыл бұрын

    No worries Martin, you're welcome

  • @wmfexcel
    @wmfexcel2 жыл бұрын

    Nice use of Table.ColumnNames! I love it. To solve your example, I would use "Unpivot other columns" that allows me to finish the task without worrying how many columns there to be unpivoted (providing that the anchor columns are constant). Then turn it into a function and apply it to all Tables.

  • @AccessAnalytic

    @AccessAnalytic

    2 жыл бұрын

    Nice, I go to functions if I can’t do it without them, I find it’s easier to maintain and explain to others

  • @iankr
    @iankr2 жыл бұрын

    Very useful. Thanks, Wyn.

  • @AccessAnalytic

    @AccessAnalytic

    2 жыл бұрын

    No worries Ian

  • @davecope3322
    @davecope33222 жыл бұрын

    Brilliant. Thanks WYN

  • @AccessAnalytic

    @AccessAnalytic

    2 жыл бұрын

    Thanks Dave

  • @ExcelOffTheGrid
    @ExcelOffTheGrid2 жыл бұрын

    Great video Wyn, lots of great techniques. 👍

  • @AccessAnalytic

    @AccessAnalytic

    2 жыл бұрын

    Cheers

  • @justinbarter5445
    @justinbarter5445 Жыл бұрын

    Brilliant

  • @AccessAnalytic

    @AccessAnalytic

    Жыл бұрын

    Cheers Justin

  • @FRANKWHITE1996
    @FRANKWHITE19962 жыл бұрын

    Great content🙌🔥🙏

  • @AccessAnalytic

    @AccessAnalytic

    2 жыл бұрын

    Cheers

  • @zachg.9208
    @zachg.92082 жыл бұрын

    That was amazing!

  • @AccessAnalytic

    @AccessAnalytic

    2 жыл бұрын

    Cheers Zach!

  • @teaking1981
    @teaking19812 жыл бұрын

    My approach was very similar but I went the Curbal route and added the region column to the nested tables and combined the tables, rather than combining a list of tables to get the column names to use to expand. Really enjoyed the tips the last one filtering by column names was great, you could use the logic in the table.selectrows function as it delivers a true or false value it would filter directly.

  • @AccessAnalytic

    @AccessAnalytic

    2 жыл бұрын

    Good stuff Glyn

  • @boissierepascal5755
    @boissierepascal5755 Жыл бұрын

    Brillant !!!

  • @AccessAnalytic

    @AccessAnalytic

    Жыл бұрын

    Thanks!

  • @user-mu5ku9ev2s
    @user-mu5ku9ev2s11 ай бұрын

    Very cool - now do it in Power BI 🙃

  • @AccessAnalytic

    @AccessAnalytic

    11 ай бұрын

    Should work the same. Just point to Excel Workbook.

  • @user-mu5ku9ev2s

    @user-mu5ku9ev2s

    11 ай бұрын

    Sorry I meant with a file in sharepoint@@AccessAnalytic

  • @10ozGold
    @10ozGold2 жыл бұрын

    Excellent video, Wyn. Do you record then edit using Camtasia? Or, what is your real-time method to zoom in and out on the fly? Keep up the good work! I learned a lot. Thanks.

  • @AccessAnalytic

    @AccessAnalytic

    2 жыл бұрын

    Hi, glad the videos are helping you. Yes I use Camtasia and do all my zooming etc there.

  • @cheikhhakim5864
    @cheikhhakim5864 Жыл бұрын

    Thank you sir for all your vidéos. Please how can we do if headers was written in différent way for exemple ZonesA zone a ZONE à..... thank you an advance

  • @AccessAnalytic

    @AccessAnalytic

    Жыл бұрын

    Does this help kzread.info/dash/bejne/Ym2o2Muaj5vfm6w.html

  • @shirleymoreman6725
    @shirleymoreman67252 жыл бұрын

    I like the solution to add the custom column to check if the first column is date, but wouldn't the Consolidation table still get included as it also has Date as the first column? Or am I missing something?

  • @AccessAnalytic

    @AccessAnalytic

    2 жыл бұрын

    Yes, good point Shirley, this would need to be done be in addition to filtering out your consolidation table

  • @shirleymoreman6725

    @shirleymoreman6725

    2 жыл бұрын

    Thanks Wyn - I wasn't going mad then! But it's a good way of checking that you only include the tables you need especially if you have other tables and ranges in the same workbook that you don't want to include.

  • @AccessAnalytic

    @AccessAnalytic

    2 жыл бұрын

    Absolutely ​@@shirleymoreman6725​

  • @SamsungA-wv5bh
    @SamsungA-wv5bh2 жыл бұрын

    Great video. Can you share the link of previous video wherein you had dealt with dynamic headings?

  • @AccessAnalytic

    @AccessAnalytic

    2 жыл бұрын

    Thanks , here you go How to use Power Query to Combine Multiple Files that have different headings kzread.info/dash/bejne/Ym2o2Muaj5vfm6w.html

  • @SamsungA-wv5bh

    @SamsungA-wv5bh

    2 жыл бұрын

    @@AccessAnalytic Thanks a lot !

  • @AccessAnalytic

    @AccessAnalytic

    2 жыл бұрын

    You’re welcome

  • @gh7769
    @gh77692 жыл бұрын

    Hello, thanks for the video! Do you know of a way to be able to add a comments column to a query table and have the manually inputted comments recognise what row it's on after the refresh. So that whenever a new row is added (when new files are dropped into the source folder) the manually entered comment also shifts with that row?? I have tried creating a self reference query but it doesn't quite work

  • @AccessAnalytic

    @AccessAnalytic

    2 жыл бұрын

    I don't think there's a reliable way of doing that other than creating some sort of ID in your data and having a separate comments table with the same ID that you merge on the side at the end.

  • @AccessAnalytic

    @AccessAnalytic

    2 жыл бұрын

    Maybe this but I've never tried myself exceleratorbi.com.au/self-referencing-tables-power-query/

  • @GrainneDuggan_Excel

    @GrainneDuggan_Excel

    2 жыл бұрын

    @@AccessAnalytic thanks for this Wyn. I have my own workaround but it is not ideal. Matt's solution might work for me.

  • @AccessAnalytic

    @AccessAnalytic

    2 жыл бұрын

    No worries

  • @tubeampsrule1
    @tubeampsrule12 жыл бұрын

    Do you have a way of combining this with the different headings video? I have a similar situation with the addition that it's all on SharePoint

  • @AccessAnalytic

    @AccessAnalytic

    2 жыл бұрын

    This maybe: kzread.info/dash/bejne/Ym2o2Muaj5vfm6w.html

  • @txreal2
    @txreal22 жыл бұрын

    I have 10 files each with 25 columns that have variations of column headers ..i.e. Zip, Zip Code, Postal Code, Birth Date, Day of Birth, etc. How should I implement your solution? Have columns arrange in correct order for each file, then use the correct Headings table to replace in all the files (in the raw files or Power Query)? Any advice is appreciated. Thanks

  • @AccessAnalytic

    @AccessAnalytic

    2 жыл бұрын

    Potentially I'd unpivot the Sample File to get a column of Zip, Zip Code, Postal Code etc, then do a merge with a 2 column table that you've set up that lists "Wrong Name : Right Name".

  • @rfigueroa76
    @rfigueroa767 ай бұрын

    What about combining tabs where header names are not exactly the same? For example, on one table the column header name will be "order number" and the other column header will be "order". I essentially need to combine all tabs following the column placement, and not worrying about the header name from the other tables.

  • @AccessAnalytic

    @AccessAnalytic

    7 ай бұрын

    You could demote headers and remove first row in the transform step

  • @rfigueroa76

    @rfigueroa76

    7 ай бұрын

    At time marker 2:50, you mentioned another video you did regarding avoiding referring to headings. Can you point me to that video please?

  • @AccessAnalytic

    @AccessAnalytic

    7 ай бұрын

    @rfigueroa76 might be this one kzread.info/dash/bejne/Ym2o2Muaj5vfm6w.htmlsi=BKYQBsJ_klSOzATU

  • @kasivisveswari
    @kasivisveswari Жыл бұрын

    sir how to contact you

  • @AccessAnalytic

    @AccessAnalytic

    Жыл бұрын

    Wyn.bio.link

Келесі