Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello everyone,
I have the table below
| Product | Amount | Store |
| Tomato | 10 | A |
| Carrot | 5 | A |
| Onion | 8 | A |
| Cucumber | 12 | A |
| Tomato | 8 | B |
| Carrot | 2 | B |
| Carrot | 15 | C |
| Onion | 13 | C |
and I need the final table using "Summarize"
Can you help me how to join the stores as in the table below?
| Product | Amount | Store |
| Tomato | 18 | A-B |
| Carrot | 22 | A-B-C |
| Onion | 21 | A-C |
| Cucumber | 12 | A |
Solved! Go to Solution.
Have you tried using the CONCATENATEX DAX command? How about this? (Sorry, replace "," with "-")
Proud to give back to the community!
Thank You!
Have you tried using the CONCATENATEX DAX command? How about this? (Sorry, replace "," with "-")
Proud to give back to the community!
Thank You!
Hi @JorgePereira ,
Try this mcode:
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WCsnPTSzJV9JRMjQAEo5KsTrRSs6JRUX5JUCuKVzIPy8zPw/Is0AoKk0uzU1KLQJpNYKLwo0DKXRCNc0IU8gQZIMzig2GxhChWAA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Product = _t, Amount = _t, Store = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Product", type text}, {"Amount", Int64.Type}, {"Store", type text}}),
#"Grouped Rows" = Table.Group(#"Changed Type", {"Product"}, {
{"Amount", each List.Sum([Amount]), type nullable number},
{"Store", each Text.Combine([Store], "-"), type text}
}
)
in
#"Grouped Rows"
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 43 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 46 |