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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.