Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
I think this is a modeling question but perhaps it's a dax question.
I have two fact tables:
The two tables are linked by site id so one site can have many incidents.
Not every site has had an incident.
I'd like to be able to show how many incidents per N employees there are for each region or subregion and to have that respond on a map of the data I have in Power BI.
Question
In relationships, f I set cross filtering to single, then a card with the no. of employees (as sum) never changes regardless of which region I click.
If I set it both then it'll give me the sum of employees at sites where there's been an incident, rather than of all employees in that region.
Am I right to think I need to create different fact tables or is there some trick with DAX that might resolve this?
Solved! Go to Solution.
You only have one fact table - the incidents. The other table is a dimension table for the sites, with attributes like region and employee count.
Your relationship should be one way from the dimension table to the fact table based on site id.
In your charts you MUST use the site id from the dimension table, not from the fact table.
Please provide sample data in usable format (not as a picture) and show the expected outcome.
You only have one fact table - the incidents. The other table is a dimension table for the sites, with attributes like region and employee count.
Your relationship should be one way from the dimension table to the fact table based on site id.
In your charts you MUST use the site id from the dimension table, not from the fact table.
Please provide sample data in usable format (not as a picture) and show the expected outcome.
User | Count |
---|---|
100 | |
87 | |
81 | |
76 | |
71 |
User | Count |
---|---|
113 | |
104 | |
100 | |
73 | |
65 |