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 here is my data:
How do I combine the retailer information in each row that have the same phone model in Power Query without group by?
Here are some examples that i expect the outcome
Thanks in advance!
Solved! Go to Solution.
let
Source = your_table,
groups =
Table.Group(
Source, "Phone model",
{{"all", (x) => Table.AddColumn(x, "Used_Retailer", (w) => Text.Combine(x[Retailer], ", "))},
{"Exclusive_Retailer", each if Table.RowCount(Table.Distinct(_)) = 1 then "Y" else "N"}}
),
expand = Table.ExpandTableColumn(groups, "all", {"Retailer", "Used_Retailer"}, {"Retailer", "Used_Retailer"})
in
expand
let
Source = your_table,
groups =
Table.Group(
Source, "Phone model",
{{"all", (x) => Table.AddColumn(x, "Used_Retailer", (w) => Text.Combine(x[Retailer], ", "))},
{"Exclusive_Retailer", each if Table.RowCount(Table.Distinct(_)) = 1 then "Y" else "N"}}
),
expand = Table.ExpandTableColumn(groups, "all", {"Retailer", "Used_Retailer"}, {"Retailer", "Used_Retailer"})
in
expand
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 7 | |
| 7 | |
| 4 | |
| 3 |