Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Different relationship levels

Hello,   I am having a particular difficulty trying to create a relationship between 3 table. In this case, one of this tables have different levels of hierarchy in the same column.   1. 'factNPS...
  • v-zhenbw-msft's avatar
    6 years ago

    Hi Anonymous ,

     

    1. There is no relationship between dim Managers and dim Lines.

     

     

    2. Then we can create two column in dim Lines to calculate the managers’ name.

     

    Column = CALCULATE(MAX(dimManagers[Name]),FILTER(dimManagers,dimManagers[Department]=dimLines[BusDepot]))

     

    Column 2 = CALCULATE(MAX(dimManagers[Name]),FILTER(dimManagers,dimManagers[Department]=dimLines[Superintendence]))

     

     

    And we create a matrix, the result like this,

     

     

    If it doesn’t meet your requirement, could you please show the exact expected result based on the table that you have shared.

    BTW, pbix as attached.       

     

    Best regards,

     

    Community Support Team _ zhenbw

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.