If on the homepage you run a filter that matches councils in the current year but none in the previous year then the results are a bit off because it doesn't get the previous score everywhere. This is mostly noticeable in the section averages.
I'm not sure of the best way to fix this because the problem is it does this by getting the averages for the current year using the filter, and then repeats the process for the previous year which understandably gets no results. It might be there needs to be a way to pass in a set of councils to get the averages from rather than re-running the filter.
Currently it resolves this by ignoring averages where there isn't a previous year which is not ideal as you then don't get a change since last year

If on the homepage you run a filter that matches councils in the current year but none in the previous year then the results are a bit off because it doesn't get the previous score everywhere. This is mostly noticeable in the section averages.
I'm not sure of the best way to fix this because the problem is it does this by getting the averages for the current year using the filter, and then repeats the process for the previous year which understandably gets no results. It might be there needs to be a way to pass in a set of councils to get the averages from rather than re-running the filter.
Currently it resolves this by ignoring averages where there isn't a previous year which is not ideal as you then don't get a change since last year