Forum Discussion
Averages by Locations
Try these measures:
Average Score = AVERAGE ( Scores[Score] )Average Score All Locations =
AVERAGEX (
VALUES ( Locations[Location] ),
IF ( ISBLANK ( [Average Score] ), 1, [Average Score] )
)
Model:
Add Locations[Location] to a matrix, and the measure Average Score All Locations:
The overall score is slightly different from yours (98.14%); please confirm.
Yes that is the correct result. I'm unable to replicate it in my model though. I have 80+ locations (my 10 example was simplified). Each line on the matrix has showing the correct figure (either the average, or 100%) but the overall average at the bottom of the screen is showing only the average for those locations with survey data. Is there anything else I can try?
- DataInsights2 years agoSuper User
Can you share a link to a sanitized pbix using one of the file services like OneDrive? If not, you can attach screenshots of your data model, matrix, filters, and DAX. Be sure to indicate which fields are used in the matrix (should be Location from the Locations table, not the Scores table).