Forum Discussion

ANKITBISANI's avatar
ANKITBISANI
Advocate I
9 years ago
Solved

Can't create direct active relationship

Hello All ,

 

We have below data model .

There are 2 facts and 2 dimention tables .

 

Final data and final data(2) are the fact tables and remaing two are dimention tables .

 

With (Final data and Final data(2)) , <-> Dimentional_state relationship defined on  ID  Column.

With (Final data ) , <-> Dimention range relationship defined on lifeInsuranceCoverd = Brackets

With (Final data 2 ) , <-> Dimention range relationship defined on HealthCoverd = Brackets

 

We get a below error

 

 

 

 Any workaround recommended?? . It is as good as joining fact tables with multiple dimention tables.

 

 

 

  • Anonymous's avatar
    Anonymous
    9 years ago

    Hi ANKITBISANI,

    You are only able to create inactive relationship between Final Data table and Dimention range. In Power BI Desktop, only one relationship can be active between a Fact table and Dimension table.

    In your scenario, as mentioned in the above waring, there is an active set of indirect relationship(Final Data can be reached via this path: Dimention range->Final Data(2)->Dimention_State->Final Data) already exists between Final Data table and Dimension range, thus you are not able to create another active relationship between Final Data table and Dimention range. However, with inactive relationship, you can you can create using USERELATIONSHIP function.

     

    Thanks,
    Lydia Zhang

1 Reply

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi ANKITBISANI,

    You are only able to create inactive relationship between Final Data table and Dimention range. In Power BI Desktop, only one relationship can be active between a Fact table and Dimension table.

    In your scenario, as mentioned in the above waring, there is an active set of indirect relationship(Final Data can be reached via this path: Dimention range->Final Data(2)->Dimention_State->Final Data) already exists between Final Data table and Dimension range, thus you are not able to create another active relationship between Final Data table and Dimention range. However, with inactive relationship, you can you can create using USERELATIONSHIP function.

     

    Thanks,
    Lydia Zhang