Hello everyone,
I have a table that includes info as below:
A project might have a few different checking points with different risks, and I take the highest risk in the project as the Project's Risk (Please find the pic below as reference).
However, the result now is as pic below. It does count individuals but with the control risk, which makes the result should be 1 project in 2020 looks like 3.
Is it because I put the "Risk" in the Category, meanwhile the connection between the "Risk" and "Control Risk" still works?
To solve this problem, I tried to have this measurement by DAX:
Project_amount = CALCULATE(
DISTINCTCOUNT('Project'[Project Code]), #calculating project amount
ALLEXCEPT('Project','Project'[Project Risk]), #keep the filter of the project risk
#force the connection between Risk and Control Risk invaild
CROSSFILTER(
'Risk'[Risk],
'Project-Control'[Control Risk],
None),
#force the connection between vaild
CROSSFILTER(
'Risk'[Risk],
'Project'[Project Risk],
Both),
CROSSFILTER(
'Project-Control'[Project Code],
'Project'[Project Code],
Both))
Please help and let me know if more information is required, thank you!
Data Model:
@thisisyingchi , You should add project risk to project control tbale
new column in
project risk = related(project[Project Risk])
Now you should have an inactive join, which you can activate using userelationship
Hi @amitchandak
If you look carefully, you will find the "Project Risk" is already in the "Project-Control" table.
However, if a project is mixed with 2 different "Control Risk", the project amount on the chart shows 2 instead of 1.
User | Count |
---|---|
125 | |
53 | |
34 | |
31 | |
30 |
User | Count |
---|---|
155 | |
54 | |
38 | |
32 | |
27 |