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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.