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

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

КОМЕНТАРІ • 51

  • @shubhabratadey
    @shubhabratadey 23 дні тому +1

    Very helpful video. Thanks for sharing

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

    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  Рік тому +2

      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.

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

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

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

    Wonderful technique. Thanks Mark.

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

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

  • @alejguz1552
    @alejguz1552 17 днів тому +1

    Great Job!

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

    Very useful and practical video

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

    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 👍.

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

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

  • @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.

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

    Ingenious! Many thanks, Mark.

  • @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. 👍

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

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

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

    Brilliant and clearly explained... thanks a lot!

  • @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 😁

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

    Unbelievable Trick! Thank you! You are phenomenal

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

    Simple à dire vers useful

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

    Wonderful technique, thank you!..

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

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

  • @vacilando86
    @vacilando86 4 місяці тому

    Amazing, 🎉

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

    Brilliant

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

    thanks!

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

    Super Awesome!!

  • @dorotakantnerova
    @dorotakantnerova Місяць тому +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  Місяць тому

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

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

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

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

      @@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?

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

    Awesome

  • @rrrraaaacccc80
    @rrrraaaacccc80 11 місяців тому +1

    Great 💯👍

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

    That’s a cool trick

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

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

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

    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!

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

    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  2 місяці тому +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 2 місяці тому

      @@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.