Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

powerquery merge ?

hello,   sorry if this is too easy question. I would like to do like following in powerquery. Is there any way to do this on powerquery? or shoud I do this with dax?      
  • V-lianl-msft's avatar
    5 years ago

    Try :

    = Table.Group(#"Changed Type", {"Id"}, {{"List of works", each Text.Combine([Work],", "), type text}})

     

  • Ashish_Mathur's avatar
    5 years ago

    Hi,

    This M code works

    let
        Source = Excel.CurrentWorkbook(){[Name="Data"]}[Content],
        #"Grouped Rows" = Table.Group(Source, {"Id"}, {{"All Work", each Text.Combine(List.Distinct([Work]), ", "), type text}})
    in
        #"Grouped Rows"

    Hope this helps.