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
eri_mp
New Member

Relaciones

Hola, buenas tardes,  tengo una duda sin resolver y requiero de su apoyo

Tengo un modelo que entre otras tablas tiene esta relación: 

eri_mp_0-1687903782440.jpeg

 

La tabla Facturación esta relacionada con la tabla soc-mat con una dirección del filtro cruzado bidireccional y soc-mat está relacionada con inventario

El detalle es que al realizar una medida para sumar el total de inventario este se ve afectado por filtros aplicados a la fecha de facturación, sin embargo, este no debería modificarse ya que inventario no tiene relacionada ninguna fecha

 

La medida definida fue:

Inventario Total = CALCULATE(SUM('Inventario'[Inventario]), FILTER ('Inventario', 'Inventario'[Centro]<>"110"))

 

Ya se intentó eliminar los filtros con varias opciones ALL, ALLEXCEPT, se intentó especificar la dirección del filtro con Crossfilter o activar una relación con USERELATIONSHIP, pero ninguna funciona.

De antemano agradezco su apoyo, gracias.

1 REPLY 1
amitchandak
Super User
Super User

@eri_mp 

Try like

Total Inventory = CALCULATE(SUM('Inventory'[Inventory]), FILTER ('Inventory', 'Inventory'[Center]<>"110"), crossfilter('soc-mat'[soc-material], Billing [soc-material],none))

 

But my advice would be avoid bi-directional join

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.