Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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 end result is a column with Chad and a column with (Office, Exchange).
User | AD GROUP | ||
CHAD | OFFICE | ||
| CHAD | EXCHANGE | ||
| DAVID | OFFICE | ||
| DAVID | POWERBI | ||
Solved! Go to Solution.
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:
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.
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.
#"Grouped Rows" = Table.Group(#"Changed Type", {"User"}, {{"list_ad", each _[AD GROUP]}}),
#"Extracted Values" = Table.TransformColumns(#"Grouped Rows", {"list_ad", each Text.Combine(List.Transform(_, Text.From), ","), type text})
in
#"Extracted Values"
I appriciate the reply, but your level of PowerBi is way beyond my understanding :).... I'm not sure where I start to enter your resolution? Is it an Add Column? Are you able to lay it out in more detailed steps?
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:
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 19 | |
| 14 | |
| 12 | |
| 10 | |
| 8 |