Transform nested tables in Power Query (without writing M coding) | Excel Off The Grid

Поділитися
Вставка
  • Опубліковано 28 лис 2024

КОМЕНТАРІ • 53

  • @chilaw2004
    @chilaw2004 Рік тому +8

    This is a phenomenal video if you have multiple tables that need to be transformed in the same way. It’s essentially like creating a custom function but embedding it in the query with the trick at the end using the switcheroo between the Name and Data columns to get the code applied to the nested tables. Bravo!

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Рік тому +3

      Exactly! It's like creating a parameter free custom function, but inserting all the code into the main query rather than in a separate query.

  • @ziggle314
    @ziggle314 Рік тому +3

    Wonderful technique. Thanks Mark.

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

      Thanks Ziggle. I hope you can put it to good use. 😁

  • @alejguz1552
    @alejguz1552 2 місяці тому +2

    Great Job!

  • @iankr
    @iankr Рік тому +3

    Ingenious! Many thanks, Mark.

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

    Excellent Tip. Previously I used a converted function from the single table transformation step. Mark idea is mind blowing and thank you for sharing your creative approach 👍.

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

    As powerful as ever. Absolute mastery of Power Query.
    Thank you Mark, for so much important information that you offer with these tutorials.

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

      Thanks Ivan - I hope you can put it to good use. 👍

  • @Shriraj27
    @Shriraj27 4 місяці тому +1

    Used this in one of the first record lookup in the nested table, that too in PDF file.... Loved the trick

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

    Dear Mark, amazing video as usual, with crystal clear explanation, you made it sound so easy..., thank you for your time and for sharing the knowledge.

  • @LotfyKozman
    @LotfyKozman Рік тому +3

    Very useful and practical video

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

    Amazing! This really solves my problem on the project that I'm currently working.

  • @kennethstephani692
    @kennethstephani692 18 днів тому

    Excellent video!

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

    Brilliant and clearly explained... thanks a lot!

  • @datawizibility
    @datawizibility 5 місяців тому +1

    Love your videos , it makes life so simple...Thanks Marks

  • @shubhabratadey
    @shubhabratadey 2 місяці тому +1

    Very helpful video. Thanks for sharing

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

    Unbelievable Trick! Thank you! You are phenomenal

  • @syrophenikan
    @syrophenikan 9 місяців тому +1

    Great job!!!!!! Great explanation!!!!

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

    This is definitely a keep for future reference video.

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

      Thanks - I think it's a really simple way to solve a complex problem 😁

  • @eduardomunoz2764
    @eduardomunoz2764 10 місяців тому

    Wonderful technique, thank you!..

  • @dorotakantnerova
    @dorotakantnerova 3 місяці тому +2

    Do you have some ideas how to dynamically transform each line from table to sheets using power query? (table is small 15-25 rows, but I get it repetitively)

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

      If I understand correctly, you want PQ to send the results to multiple sheets. Unfortunately it doesn't do this.

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

      @@ExcelOffTheGrid yes, I want to send results into sheets

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

      @@ExcelOffTheGrid so only macro?

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

    Great video! Thank you for sharing this. Is it possible to add a column (let's say containing TRUE or FALSE) to a nested table and then apply a filter to that column, all before the expanding step?

  • @arpwable
    @arpwable 9 місяців тому

    I've been trying to get this to work, but am running into a problem. When I set up the individual table transformation in the duplicate query it works perfectly for that table and for any others I try. But once I embed the code in my main query, the tables throw an error (we cannot convert the value #date(2024,4,1) to type List. Details show that Type=[Type]). Any idea what could be causing this? It's baffling given that it works perfectly without errors when not embedded!

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

    Simple à dire vers useful

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

    Super Awesome!!

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

    thanks!

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

    Great 💯👍

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

    Amazing, 🎉

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

    That’s a cool trick

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

      Hopefully you can use it to simplify some complex queries in then future.

  • @MUAISC
    @MUAISC 8 місяців тому +1

    Awesome

  • @MuhammadRizwan-tc3zp
    @MuhammadRizwan-tc3zp 3 місяці тому

    This tutorial helped me a lot. But I have a situation in which i have files having different number of columns. I have YEARs as column names. So let say 1 file has 4 years columns and 2nd file has 7 years columns.
    Your solution gives me result picking 4 columns for each file. it should pick 4 columns from 1st file and 7 columns from 2nd file making total columns 11 in merged file. currently its giving me 8 columns. Can you plz help me solving this scenario!!?? Thanks.

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

      Your data is not in a normalized format, so you're not using Power Query the right way. Years should be column and the values for each Year should be a column. Use the Unpivot action on each nested table to normalize the data become you combine them.

    • @MuhammadRizwan-tc3zp
      @MuhammadRizwan-tc3zp 3 місяці тому

      @@ExcelOffTheGrid Hi, thanks for response. My issue resolved. I was making table from binary using = Table.AddColumn(#"Filtered Rows5", "Transform File (12)", each #"Transform File (12)"([Content])) which is somehow neglecting few columns. After I tried using Transform File (6), all the columns are now started appearing. however, I don not know the difference between 6 and 12 and what does Transform File do.
      And you solution in the video really helped me a lot to achieve my task. Great work.

  • @mudassirsyedrashidali9787
    @mudassirsyedrashidali9787 11 місяців тому

    Brilliant