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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Dgreen23
Helper III
Helper III

Múltiples relaciones activas

Tengo una mesa de la compañía maestra a la que vinculo todo. Ahora me he metido en un problema en el que necesito una tabla para ver esa tabla de la empresa maestra, pero también miro otra tabla y enlace a su sección de departamento. Si vinculo en la Compañía, entonces da todos los resultados para la empresa, pero no se filtrará cuando se selecciona un departamento. Si me vinculo en el departamento se filtra por departamento, pero muestra todas las empresas y las personas asociadas a ese departamento. Ayuda.

7 REPLIES 7
parry2k
Super User
Super User

@Dgreen23 puede compartir datos de ejemplo y diagrama de relaciones y resultados necesarios. Debería funcionar, pero necesita más detalles.



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.

@parry2k ,

He adjuntado un diagrama. No puedo compartir los datos, por desgracia. El resultado requerido es que si se selecciona la empresa x y luego se selecciona su departamento de torno, entonces sólo debería ver el departamento de torno s de la empresa. Lo siento por la falta de datos. Avísame si hay algo más que pueda proporcionar

Diagram.PNG

Hola @Dgreen23 ,

Tal vez sea un problema de dirección, vea a continuación:

Foto 1: La especificación del filtro fluirá desdeCompanyProjectParaHoras del proyecto(como se muestra en la siguiente imagen), pero no fluirá hastaCompanyEmployee.

Annotation 2020-04-24 131659.png

Pic 2:Sin embargo, si establece la dirección de filtrado cruzado en Ambos, funcionará. El ajuste Ambos permite que la especificación de filtro fluya hasta CompanyEmployee.

candmrel_bidircrossfiltering.png'

Así que trate de modificar las direcciones entre las tablas, tal vez obtendrá el resultado correcto.

Aquí está la referencia.

https://docs.microsoft.com/en-us/power-bi/desktop-create-and-manage-relationships

Saludos
Kelly
¿Respondí a tu pregunta? ¡Marca mi puesto como solución!

@Dgreen23 aunque cambiar la dirección de la relación a ambos resolverá el problema, pero no lo usaré, ya que puede tener un impacto en el rendimiento. Leer más aquí.

La recomendación es utilizar la función CROSSFILTER en la medida y utilizar tanto en ella cuando sea necesario

Salud

P



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.

@Dgreen23 por lo que tiene una tabla de departamento que también tiene una relación con la utilización por tabla de empresa.



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.

@parry2k

No, señor. Ambas de la utilización por tablas de empresa contienen datos idénticos. Sin embargo, la diferencia clave entre ellos es que una es calculada estrictamente por el departamento y la otra es sobre una base de empleado. Desafortunadamente, no he podido conseguir que los datos se reúnan correctamente. Por eso necesito combinar esos dos más.

@Dgreen23 tanto como quiero para obtener este resuelto, pero todavía no estoy completamente seguro. ¿Por qué no poner datos de muestra en un excel (redactarlo) y enviarlo, ayudará a entender el problema y por lo tanto la solución.



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

Join us at the Microsoft Fabric Community Conference

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

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.

Top Solution Authors
Top Kudoed Authors