Forum Discussion
Different relationship levels
- 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.
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.