Averages by Locations
I have a dataset of customer surveys. Our company has 10 locations and a customer survey can be carried out for any of these locations. At the end of the month I need to calculate the score per location. This is fine for individual locations as I can average the score across the survey submissions and show it by location. But if a location hasn't had any customer surveys completed this month, that location must show as 100%. I have no record to in the dataset to show this and I don't want to create them. I do have a locations table in my dataset.
Example:
Scores Table:
Location 1, Survey 1: 100%
Location 1, Survey 2: 95%
Location 1, Survey 3: 80%
Location 1, Survey 4: 93.5%
Location 1, Survey 5: 100%
Location 2, Survey 1: 100%
Location 3, Survey 1: 50%
Location 3, Survey 2: 88%
Locations Table:
Location 1
Location 2
Location 3
Location 4
Location 5
Location 5 etc to location 10...
Table Showing Scores by Location:
Location 1: 93.7%
Location 2: 100%
Location 3: 69%
Location 4: 100%
Location 5: 100%
Location 6: 100% etc to location 10...
Overall Score: 98.14%
(93.7%, 100, 69% and all the other locations default to 100%)