Forum Discussion

JOHNPINTOC's avatar
JOHNPINTOC
Regular Visitor
6 years ago
Solved

Two active relationships between different tables (UniqueID and Dates)

Good Morning, I am new to PowerBi and therefore probably this will be a simple question, I just did not find quite the answer I was looking for: I have three (main tables that I want to relate and...
  • Mariusz's avatar
    6 years ago

    Hi JOHNPINTOC 

     

    The reason is simple, it's because of bidirectional relationships.
    Active relationship: Headerid <> Monthlyprod 

     

    What would happen if you could create a relationship between Dates and Monthlyprod:
    Headerid  <> Portafoli_m <> Dates  <> Monthlyprod 

     

    Monthlyprod is currently filtered by Headerid and Headerid filters Portafoli_m that filters Date so you can not create a relationship with Dates because it would mean Headerid has  two active relationships with Monthlyprod 

     

    Solutions:

    You can change the relationship between Portafoli_m and  Dates to the single direction where Dates filters Portafoli_m.

    Or adhere to best practice and avoid bidirectional relationships altogether.

     

    Best Regards,
    Mariusz

    If this post helps, then please consider Accepting it as the solution.

    Please feel free to connect with me.
    LinkedIn