Expand Multiple Columns to Rows in Power Query - Solution

Поділитися
Вставка

КОМЕНТАРІ • 85

  • @user-mma173
    @user-mma173 2 роки тому +5

    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 💚

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

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

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

    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 роки тому +1

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

  • @cristian.angyal
    @cristian.angyal Рік тому

    Great solution. Very well explained! Thanks for sharing!

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

    Brilliant, Chandeep! Thanks for sharing.

  • @Piyush.A
    @Piyush.A 2 роки тому

    Brilliant, thank you Sir Goodly!

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

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

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

    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.

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

    Cracking technique!

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

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

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

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

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

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

  • @3Starsgamer34
    @3Starsgamer34 Рік тому

    Mond blowing buddy..you are just amazing.

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

    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!!

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

    mma173 amazing, Thanks Chandeep for this video

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

    Amazing solution!

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

    Thank you very much for this high class content.

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

      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.

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

    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

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

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

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

    Great demo 😃

  • @KuldeepSingh-nq1vi
    @KuldeepSingh-nq1vi 2 роки тому

    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.

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

    Brillant.

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

    genius!

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

    Awesome bro

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

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

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

    Brilliant video Chandeep and super solution MMA173

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

    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(_)
    )
    )
    )

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

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

      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

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

    Mille mercis pour ce partage !

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

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

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

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

    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.

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

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

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

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

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

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

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

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

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

    🙏🙏🙏🙏🙏🙏

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

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

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

    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

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

    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

  • @shreedharan.moorthy
    @shreedharan.moorthy 19 днів тому

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

  • @ShivaSingh-vs4yv
    @ShivaSingh-vs4yv Рік тому

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

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

    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.

  • @DeepakThakur-vh9lr
    @DeepakThakur-vh9lr 2 роки тому

    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

  • @dilipkumar-ck1nc
    @dilipkumar-ck1nc 2 роки тому

    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 роки тому

    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!
      ua-cam.com/video/E6edg0ldufA/v-deo.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. :-)

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

    Amazing solution!

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

    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.