Forum Discussion

sharpedogs's avatar
sharpedogs
Advocate II
6 years ago
Solved

Merge or Group Columns?

Hi,  I have the below dataset, I essentially want to flatten the dataset so that instead of having multiple lines showing each AD Group Chad and David have, I want to merge the AD Groups so that the...
  • Anonymous's avatar
    Anonymous
    6 years ago

    try following these step:

     

    having loaded your table, select group by function:

     

    and edit and pick the field, so that have this situation:

     

     

    you get this table with error. You have then edit and correct the formula in the bar-formula:

    changint List.Sum([AD_GROUP]) with Text.Combine([AD_GROUP],","):

     

    after edited click enter. You should get this table athis poitn:

     

  • v-eachen-msft's avatar
    6 years ago

    Hi sharpedogs ,

     

    You could use "pivot" function with Text.Combine() to get the result. Then unpivot these columns to get final result.

     

    Here is my test file for your reference.