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

Get Fabric certified for FREE! Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Concatenar filas distintas de uno a muchos

Estoy tratando de realizar concatenar en una relación de uno a muchos y quiero no tener valores duplicados.

CONCATENATEX(
    FILTER('Table',[Site] = EARLIER([Site]) && [User] IN { "a", "b", "d" }),
    [User],,""
  )

Intenté esto y termino con valores como este:

Id

Usuariobuscado
1aAabd
1aAabd
1bAabd
1dAabd
1c
2aOff
2bOff
2c
3aPara
3dPara
4c

Aquí hay una tabla que representa lo que me gustaría.

Id

Usuariobuscado
1aAbd
1aAbd
1bAbd
1dAbd
1c
2aOff
2bOff
2c
3aPara
3dPara
4c
5 REPLIES 5
parry2k
Super User
Super User

@burgerface25 probar esta medida

C = 
CONCATENATEX (
    CALCULATETABLE ( VALUES ( con[user] ), FILTER ( ALLEXCEPT ( con, con[id] ), con[User] IN { "a", "b", "d" }) ),
    [user], ","
)

Me gustaría elogiossi mi solución me ayudó.👉Si puedes pasar tiempo publicando la pregunta, también puedes hacer esfuerzos para darle a Kudos quien haya ayudado a resolver tu problema. ¡Es una muestra de agradecimiento!



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

¡Esto me gusta tanto! Se acerca más que nunca. Sin embargo, ahora estoy encontrando que los resultados concatenados se consideran distintos en función de su orden en lugar de su contenido. ¿Cómo iba a resolver este nivel de distinción?

IdUsuariobuscadoResultado

1

a

AbdAbd
1bAbdAbd
1dAbdAbd
1dAbdAbd
1c
2a
2dAbdAdb
2bAbdAdb
3c

@burgerface25 Estoy perdido, ¿qué falta entre el buscado y el resultado?



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

ID 1:

buscado

Abc

Resultado

Abc

ID 2:

buscado

Abc

Resultado

Acb

Este nivel de distinción reconoce a, b y c son todos únicos y diferentes. Sin embargo, el cálculo resultante no reconoce abc y acb como los mismos.

@burgerface25 Creo que será más fácil ordenar la tabla en Power Query por usuario y se corregirá a sí mismo.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Helpful resources

Announcements
Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.

Top Kudoed Authors