Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Good day all,
I have a model with 2 tables (for simplicity):
1. Warehouse table - where "Warehouse" is what we use to describe where we can transfer & hold stock
2. Transaction Table, structured like this:
I have an active relationship between "To Warehouse" field and the Warehouse Table, and an inactive relationship between "From Warehouse" and the Warehouse Table.
I have built measures using DAX USERELATIONSHIP for transactions related to the "From Warehouse" column. When I add a slicer from the warehouse table to the visualisation, and I filter on "Outlet 1", the data table is filtering perfectly as above. I can see all the transactions for Outlet 1, regardless of whether it is "To Warehouse" or "From Warehouse".
However, when I add the slicers for the other fields, they are not working as expected. I can only see options related to the active relationship (i.e. "To Warehouse"). I have pulled the slicers from the transaction table.
Based on the above example:
Slicer 1: "Transaction Type" - I can only see "Dispatch" and "Transfer", I cannot see "Return"
Slicer 2: "Reference Number" - I can only see "123" and "456". I cannot see the other 2 options in the slicer.
I tried to make "To Warehouse" > Warehouse Table and "From Warehouse" > Warehouse Table relationships inactive, adding in the USERELATIONSHIP for all measures. However this breaks the Warehouse Slicer (worse than when I started). This did not work.
Does anyone have any suggestions of how to resolve this?
Thanks,
Katie
Thank you for your response!
So because I have an active relationship between the TO WAREHOUSE and the Warehouse Table, I'm guessing I do not need to add the USERELATIONSHIP and ALL functions?
I tried to add it but my slicers are still not working as expected. I have added my DAX below for further context, can you spot anything I am doing wrong?
Here is my calculation for QTY ISSUED:
+
The "Outlet Transaction Type" slicer is only showing "Dispatch" and not "Return" and "outlet Transfer".
Hi @Katie-Farrand12 ,
When you use USERELATIONSHIP in DAX measures, it activates the inactive relationship for those specific measures, but the slicers are still being filtered based on the active relationship. This is why you're seeing only values related to the active relationship in the slicers.
Create measures that explicitly account for both relationships using USERELATIONSHIP for your inactive relationship. For example:
Total Quantity =
CALCULATE(
SUM('Transaction'[QTY (KG)]),
USERELATIONSHIP('Transaction'[From Warehouse], 'Warehouse'[Warehouse]),
ALL('Transaction'[Transaction Type]) -- Remove filters from 'Transaction Type' slicer
)
Or you can create a custom measure that aggregates both From Warehouse and To Warehouse:
Total Transactions =
CALCULATE(
SUM('Transaction'[QTY (KG)]),
USERELATIONSHIP('Transaction'[From Warehouse], 'Warehouse'[Warehouse]),
USERELATIONSHIP('Transaction'[To Warehouse], 'Warehouse'[Warehouse])
)