Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
JorgePereira
Helper I
Helper I

Summarize with text

Hello everyone,

I have the table below

ProductAmountStore
Tomato10A
Carrot5A
Onion8A
Cucumber12A
Tomato8B
Carrot2B
Carrot15C
Onion13C

and I need the final table using "Summarize"

Can you help me how to join the stores as in the table below?

ProductAmountStore
Tomato18A-B
Carrot22A-B-C
Onion21A-C
Cucumber12A
1 ACCEPTED SOLUTION
fhill
Resident Rockstar
Resident Rockstar

Have you tried using the CONCATENATEX DAX command? How about this? (Sorry, replace "," with "-")

Medida: CONCATENATEX (Vegs, Vegs [Store], ",")

fhill_0-1598474452597.png




Did I answer your question, or help you along the way?
Please give Kudos or Mark as a Solution!


https://www.linkedin.com/in/forrest-hill-04480730/

Proud to give back to the community!
Thank You!




View solution in original post

2 REPLIES 2
fhill
Resident Rockstar
Resident Rockstar

Have you tried using the CONCATENATEX DAX command? How about this? (Sorry, replace "," with "-")

Medida: CONCATENATEX (Vegs, Vegs [Store], ",")

fhill_0-1598474452597.png




Did I answer your question, or help you along the way?
Please give Kudos or Mark as a Solution!


https://www.linkedin.com/in/forrest-hill-04480730/

Proud to give back to the community!
Thank You!




camargos88
Community Champion
Community Champion

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"

 

Capture.PNG

 



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.