Expand Multiple Columns to Rows in Power Query - Solution

Поделиться
HTML-код
  • Опубликовано: 21 авг 2024
  • НаукаНаука

Комментарии • 86

  • @user-mma173
    @user-mma173 2 года назад +7

    I'm very glad that you liked my solution and put it very nicely in a well explained tutorial. Thanks

    • @GoodlyChandeep
      @GoodlyChandeep  2 года назад

      Great job man! Keep doing the good work 💚

  • @bithepower9081
    @bithepower9081 2 года назад +4

    Absolutely amazing Chandeep, I must admit I used the split column by delimiter into rows way and used a grouping to get the row counts to divide by...so column names are hard coded and not dynamic but you only need to add a step for a new column and the rest works so almost there!! You are a total guru and love your work!

  • @larmondoflairallen4705
    @larmondoflairallen4705 2 года назад +2

    That was mind-blowing. That was as much art as it was technical skill.

    • @GoodlyChandeep
      @GoodlyChandeep  2 года назад

      Thanks Larmondo for your nice words 😊

  • @timestoryx
    @timestoryx Месяц назад +1

    สุดยอดมากครับ Goodly Indeed !!!

  • @sbdyelse
    @sbdyelse 2 года назад +3

    👏 to you and your contributors. Waiting for the list.accumulate video now 😍

  • @tlsrinivasan
    @tlsrinivasan 2 года назад +3

    Amazing video. Expecting more videos like this and a collection of Advanced videos on Power query.. Thanks a million..

    • @GoodlyChandeep
      @GoodlyChandeep  2 года назад +1

      Glad you like it 💚

    • @tlsrinivasan
      @tlsrinivasan 2 года назад

      Hi Chandeep
      Would you also please group them as basic, intermediate and advanced powe query groups and put them as play lists. This will narrow down the search by levels and topic. Love your instant responses. We need more Mcode videos and examples.

  • @mmunozidata
    @mmunozidata 2 года назад +2

    mma173 amazing, Thanks Chandeep for this video

  • @wildecorrea6477
    @wildecorrea6477 2 года назад +3

    09:05 🇧🇷 Wow!!! The secret of a list with the name of the columns one can automatize some steps.

  • @MrDhunpagla
    @MrDhunpagla 2 года назад +1

    But lengthy but brilliantly explained ...You are too good in this C.... Killing it ...Thanks for sharing 🙏

  • @amitk1208
    @amitk1208 Год назад +1

    That's Awesome 👍 I think this is the best channel to learn power query to be a pro, thanks for the solution
    I was doing all this type of things like that manually one by one column
    Keep it up best of luck for the future

  • @GosCee
    @GosCee 2 года назад +1

    Brilliant, Chandeep! Thanks for sharing.

  • @cristian.angyal
    @cristian.angyal 2 года назад +1

    Great solution. Very well explained! Thanks for sharing!

  • @umarqayyum1098
    @umarqayyum1098 5 месяцев назад +1

    Thank you very much sir, love the video and knowledge shared

  • @elaf70
    @elaf70 2 года назад +1

    Awsome, Brilliant and clearly and wornderfully presented as usual
    Thanks a lot or the sharing

  • @KuldeepSingh-nq1vi
    @KuldeepSingh-nq1vi 2 года назад +1

    Wow Chandeep Amazing Video, Really leant so many new things from this tutorial, which is going to help me in my daily repeated tasks.
    Salute you for your dedications. One more thing I want to learn the basic fundamentals of Power Query, So how can I learn it, please suggest or develop the Videos regarding this.

  • @Dev_Bartwal
    @Dev_Bartwal 2 года назад +1

    You are awesome..Lots of love from India 🎉🎉

  • @3Starsgamer34
    @3Starsgamer34 2 года назад +1

    Mond blowing buddy..you are just amazing.

  • @iankr
    @iankr 2 года назад +2

    Cracking technique!

  • @panayotnikolov4847
    @panayotnikolov4847 2 года назад +1

    Amazing solution!

  • @thebhaskarjoshi
    @thebhaskarjoshi 2 года назад +1

    Thanks for having my name at last. Looking forward to more challenging challenges.

  • @hammerdata1603
    @hammerdata1603 2 года назад +4

    mma173 👏 Awesome solution and many thanks Chandeep for demo! I've been looking / waiting for instruction such as this. With this advanced M guidance, I'm confident I'll be able to make transformations I've been dreaming of and really utilize the MS M language doc., both areas where I've been "stuck" and have hindered my growth in PQ skill. Love the List work and dynamic solutions!!

  • @Piyush.A
    @Piyush.A 2 года назад +1

    Brilliant, thank you Sir Goodly!

  • @raimundojs9547
    @raimundojs9547 Год назад +1

    Thank you so much for sharing your precious knowledge!
    Would be acceptable in the Step "Allocation" the following code?
    = Table.AddColumn(
    Split,
    "Allocation",
    each
    [Value] /
    List.Product(
    List.Transform(
    Record.FieldValues(
    Record.SelectFields(_, AllocationCols)
    ),
    each List.Count(_)
    )
    )
    )

  • @karimallahwala7022
    @karimallahwala7022 2 года назад +1

    Thank you very much for this high class content.

    • @GoodlyChandeep
      @GoodlyChandeep  2 года назад

      Glad you like it!

    • @karimallahwala7022
      @karimallahwala7022 Год назад

      I always come back to this amazing Video. It is really a masterpiece, which shows the great opportunities of Power Query. This Video is a treasure of Knowledge. I am so thankful for this outstanding video.

  • @Bhavik_Khatri
    @Bhavik_Khatri 2 года назад +1

    Very nice advance solution. If you have two queries then how can you loop through another query in PQ? I'm learning Power Query.

  • @eslamfahmy87
    @eslamfahmy87 9 месяцев назад +1

    Awesome, but could you share with us step of (AllocationCol) step by step as I can't catch.

  • @jazriopk
    @jazriopk 2 года назад +1

    Super nice Chandeep. I have a special case. I am retrieving data from a Sharepoint list, and some of the columns are HTML (due to richtext format). In order to get the data of these columns I need to expand them using FieldValuesAsText. Problem: query is very slow, I suppose that it makes an individual HTTP call for each and every expanded cell to get the data. Are there any workarounds or settings I should check? Many thanks for providing your amazing content to the community.

    • @GoodlyChandeep
      @GoodlyChandeep  2 года назад

      I'm afraid, I wouldn't have a clue to solve it.

    • @3Starsgamer34
      @3Starsgamer34 2 года назад

      In my opinion best method to extract data from SP list is MS access. In case you are passing your data to BI then you have no option but to use Power Query

  • @martyc5674
    @martyc5674 2 года назад +2

    Brilliant video Chandeep and super solution MMA173

  • @mahathmasadineni2884
    @mahathmasadineni2884 2 года назад +1

    Hi chandeep,
    I have this challenge in power query split columns let's assume we have 2 columns column1 data 1,2 and column2 data 3,4 ...
    How can we split those into a table like row1: column1(1),column2(3)
    row2:column1 (2),column2(4)..

  • @romainpieribattesti2275
    @romainpieribattesti2275 2 года назад +2

    Brillant.

  • @yookusui9764
    @yookusui9764 2 года назад +2

    genius!

  • @bhaveshh5786
    @bhaveshh5786 2 года назад +1

    Q: Hey I have a data and wanted to allocate it equally to a group of people with their skills in a table and based on their skills set also skill set is available in data, how we can do equal allocation to all people with the help of mcode or any other solution.

  • @bhaveshh5786
    @bhaveshh5786 2 года назад +1

    Awesome bro

  • @epernayjfl
    @epernayjfl 2 года назад +1

    Mille mercis pour ce partage !

  • @PowerQuery
    @PowerQuery 2 года назад +1

    Great demo 😃

  • @cjimmer4877
    @cjimmer4877 2 года назад +3

    This is an excellent tutorial.. But I still struggle with knowing the difference between an underscore and the word each.

    • @larmondoflairallen4705
      @larmondoflairallen4705 2 года назад +1

      Yeah, for something that is so integral to the way M code works, there is remarkably little instruction to explain when to use one versus the other. I feel like it is some kind of conceptual thing that I'm just not getting.

    • @3Starsgamer34
      @3Starsgamer34 2 года назад

      Each is like a row in excel table while _ is a cell value

  • @ramnikj
    @ramnikj 2 года назад +1

    Great video sir, but when i try to write the allocation columns, i get an error data table not found, idk, why i am getting the error, i have rechecked all the names and everything, but still the error still persists, what could be the reason, if you could put some light on it

  • @himajadeevi1466
    @himajadeevi1466 2 года назад +1

    Hi Sir, could you please guide in how to connect jira with power bi using rest api and without any usage of plug-ins... that would be of great help..

  • @mihaelstancirevic4178
    @mihaelstancirevic4178 Год назад +1

    Is there a way to expand tables instead of lists in the same fashion?

  • @mattmatt245
    @mattmatt245 2 года назад +1

    I have a question. Is there an easy way to count blanks per row in power query ?

  • @yaseenmuhammad5624
    @yaseenmuhammad5624 2 года назад +1

    Hi for the first row if we expand the total row is 36 for all possible combination not 24.

    • @ShavitTube
      @ShavitTube 2 года назад

      India, UK, USA, Aus (4) * Trading, Heavy Equipment (2) * Sales, Finance, Ops (3) = 24

  • @DeepakThakur-vh9lr
    @DeepakThakur-vh9lr 2 года назад +1

    Please suggest me i am using SharePoint online list as data source in Power BI here i am facing problem if SharePoint online list exceeds more than 5000items it is not refreshing can you please suggest how to resolve

  • @NarendraSunku
    @NarendraSunku 2 года назад +1

    🙏🙏🙏🙏🙏🙏

  • @riahon
    @riahon 2 года назад +1

    This is amazing but tried to add new column where some rows had null but get error on Split step "We cannot convert the value null to type Text."

    • @user-mma173
      @user-mma173 2 года назад

      Instead of using Text.Split, use a Splitter function e.g. Splitter.SplitTextByDelimiter(", ") the same way I did in my solution.

  • @ShivaSingh-vs4yv
    @ShivaSingh-vs4yv Год назад

    I want to do reverse of this problen(Expand multiple rows to column)

  • @shreedharan.moorthy
    @shreedharan.moorthy 2 месяца назад

    why i am not able to count the lists, after successfully converting two columns into another column as list?

  • @dilipkumar-ck1nc
    @dilipkumar-ck1nc 2 года назад +1

    can u copy the code and paste it
    it is not working can u correct it
    = Table.TransformColumns(Source,
    {{"Location", each Text.Split(_, ",")},
    {"Business", each Text.Split(_, ",")},
    {"Department", each Text.Split(_, ",")}})

  • @GeertDelmulle
    @GeertDelmulle 2 года назад +1

    OK, I want to make this official: I don’t understand your Split step.
    Not that I matter in the greater scheme of things (on any scale for that matter), but it does mean that I think that you did not explain that step well enough, IMO. Those curly brackets really threw me off balance. Could you be bothered to explain that in a bit more detail? Thanks. :-)

    • @GoodlyChandeep
      @GoodlyChandeep  2 года назад +1

      To understand curly brackets you'll have to understand the concept of Lists.
      I think my previous video would be helpful, it talks about the table.transformcolumns function in general. Give it a go, let me know if it helped!
      ruclips.net/video/E6edg0ldufA/видео.html

    • @GeertDelmulle
      @GeertDelmulle 2 года назад

      @@GoodlyChandeep Oh, the concept of lists is/was not the issue, but the fact that you used {} after an each keyword was.
      This was the first time I saw that. Then again you need to do that because you need a list-in-list for the TransformColumns function to work.
      I would have expected a List.Accumulate here, but you don’t need that because you can transform multiple columns at once.
      Conversely, for splitting the columns you do need List.Accumulate because you can only split one column at a time.
      Pretty advanced stuff, if you ask me. Thanks for showing us. :-)

  • @MANATTOWN
    @MANATTOWN 2 года назад +1

    Thanks for having my name at last. Looking forward to more challenging challenges.

    • @GoodlyChandeep
      @GoodlyChandeep  2 года назад +1

      Glad it inspired you!

    • @MANATTOWN
      @MANATTOWN 2 года назад

      @@GoodlyChandeep Can we get more. It was so fun.

  • @westleyempeigne6541
    @westleyempeigne6541 2 года назад

    Amazing solution!