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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
JorgePereira
Helper I
Helper I

Resumir con texto

Hola a todos,

Tengo la tabla de abajo

ProductoCantidadTienda
Tomate10A
Zanahoria5A
Cebolla8A
Pepino12A
Tomate8B
Zanahoria2B
Zanahoria15C
Cebolla13C

y necesito la mesa final usando "Resumir"

¿Puedes ayudarme a unirme a las tiendas como en la siguiente tabla?

ProductoCantidadTienda
Tomate18A-B
Zanahoria22A-B-C
Cebolla21A-C
Pepino12A
1 ACCEPTED SOLUTION
fhill
Resident Rockstar
Resident Rockstar

¿Ha intentado utilizar el comando CONCATENATEX DAX? ¿Qué tal esto? (Lo sentimos, reemplace "," por "-")

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

¿Ha intentado utilizar el comando CONCATENATEX DAX? ¿Qué tal esto? (Lo sentimos, reemplace "," por "-")

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

Hola @JorgePereira ,

Pruebe este 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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors
Top Kudoed Authors