Quantcast
Channel: Service topics
Viewing all articles
Browse latest Browse all 61926

Monthly grand total based on 4 different tables

$
0
0

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 NumberMonthEmp NameLineSiteErrorError Opportunity
123JuneABVUK11
23JunertWUSA02
34JulyYUVUSA01
45JulyABVUK01
1JuneABVUK11
2JunertWUSA02
4JulyYUVUSA11
3JulyABVUK01

 

Expected result  for error % : 

SiteJuneJuly
UK100%0%
USA0%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

 


Viewing all articles
Browse latest Browse all 61926

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>