I'm setting up a report in PowerBI that will give insight into the amount of work that is planned per department. I know the amount of products to be manufactured for specific projects and the time this takes per department in minutes. I've created a measure to calculate the total amount of time planned per department for a specific period, but it is giving an unexpected total that I don't understand.
The datamodel consists of four tables: a table that contains unique product ids, a table that contains information on running projects (including the amount of products to be manufactured by a specific date), a table that contains the manufacturing routing which shows how much time is required to manufacture a specific product per department, a calendar table that contains all dates for the next 10 years
Relationships between the tables currently all have a cross filter in both directions. The image below contains the model and also the example data I've used:
What we’re trying to do is create an overview of the amount of work planned per department in hours. So for this I’ve created a measure:
Total time in hours = (SUM(Projects[Amount]) * SUM(Routing[Time (in minutes)]) / 60
When I used this measure for a specific product, everything seems to be fine. However, when looking at the total time per departement I get a higher value. I'm not sure where this comes from. The table in the image shows the numbers I see in PowerBI. The total for Total time in hours (227) is much higher then the sum of the total time for the individual products:
Can anyone help me figure out how PowerBi calculates this total of 227?