Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago
Solved

Inactive relationships

I have several different data tables that all work independently of each other.    I need each table use 1 date. So i have created a date table and make relationships between the date tables with a...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi Anonymous ,

     

    Power BI allows the use of inactive relationships through specific DAX functions.

     

    If two tables are linked by more than one relationship, you can use USERELATIONSHIP to determine which relationship to activate.

     

    For more information about USERELATIONSHIP see:

    USERELATIONSHIP function (DAX) - DAX | Microsoft Learn

    Using USERELATIONSHIP in DAX - SQLBI

     

    You can try:

    CALCULATE([Measure], USERELATIONSHIP(Table1[Column], Table2[Column]))

     

    Use this measure with the slicer in the visual object.

     

    If you have any other questions please feel free to contact me.

     

    Best Regards,
    Yang
    Community Support Team

     

    If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
    If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!