I am trying to create a measure in DAX to find the joint value (sum) of a fact table by filtering two dimension tables to have the same column value.
Here's an image of the relationship
Each Department in Users
are linked to table Registret
. They are giving resources to projects. The table Projects
are Taking Resourcs. What I am trying to accomplish is a measure that can find the amount a department uses of it's own resources. So I figure if I can filter Registret[Users]
and Registre[Project]
where Users[Department
] = Projects[Department]
I would get the value.
I'd like to use the Projects[Department]
as a basis. So that table below would show the amount of internal department registration by each Department
in Projects
.
Department(Projects) InternalRegistration
A Value
B Value
So far I've been trying with something like
CALCULATE(Registret[Registret]; FILTER(Users; Users[Department] IN ALLSELECTED(Projects[Departments])))
But this will only show the correct value if I in a slicer single out a Department from table Projects
. Is it possible the solution is some Joint table between Users
and Projects
?
The top table shows the matrix of joint values in Registret
between Users
and Projects
.
Edit2: