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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
ruinaldo
Helper II
Helper II

Combinar filas duplicadas tablas

Tengo dos tablas, primera "CE", segunda "NE".

En la tabla "EC" tengo la referencia "Cinco" una vez, pero en la tabla "NE" tengo el mismo ref en dos filas.

Cuando fusiono dos tablas con una clave que he creado "chaveec" (clave+ref) la tabla de combinación duplica mis filas.

image.png

image.png

El resultado equivocado es que:

image.png

Pero quiero esto:

image.png

¿Puedes ayudarme, por favor?

2 REPLIES 2
v-easonf-msft
Community Support
Community Support

Hola , @ruinaldo

Como se mencionó en @parry2k , ambas tablas combinadas tienen dos datos con un "chavee" de 5, Powerbi no puede determinar qué registro de la Tabla 1 coincide con el que el registro de la Tabla 2, por lo que se generan 2 * 2 registros.

Se sugiere create custome column "chaveec" (key+ref +number) como una clave para combinar filas.

Aquí hay una demostración . Consulte la consulta "merge2"

Saludos
Equipo de Apoyo Comunitario _ Eason

parry2k
Super User
Super User

@ruinaldo En la captura de pantalla, primera tabla (EC), ¿tiene cinco dos veces, no una vez? ¿Me estoy perdiendo algo?



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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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