I have 4 different tables with errors and error opportunity for different Site/location for each month.
I have created measure to get the consolidated error count from all 4 tables and another measure to get a consolidated error opportunity from all 4 tables.
These measures are in a table called Site_location which has only Site ID and Site Name.
What i need is Site wise error count and error opportunity for each month. however what I am getting is only the grand total of all error for site - not sure how to get month wise breakdown. how do i create relationship for month. Will share more details if required. Kindly help.
Sample data :
Order Number | Month | Emp Name | Line | Site | Error | Error Opportunity |
123 | June | AB | V | UK | 1 | 1 |
23 | June | rt | W | USA | 0 | 2 |
34 | July | YU | V | USA | 0 | 1 |
45 | July | AB | V | UK | 0 | 1 |
1 | June | AB | V | UK | 1 | 1 |
2 | June | rt | W | USA | 0 | 2 |
4 | July | YU | V | USA | 1 | 1 |
3 | July | AB | V | UK | 0 | 1 |
Expected result for error % :
Site | June | July |
UK | 100% | 0% |
USA | 0% | 50% |
this is based on the calculation sum of errors for UK for June divided by sum of error opportunities for UK for June eg., for June Uk had 2 errors divided by 2 error opportunities
later will have to present this in chart format