Uploaded workbook on public tableau
I understand how to chart average per location in Tableau, i.e. create calculated field
AVG([Rating])
And then plot this vs the location.
But now, I am looking for average of ALL ratings, regardless of location, so I created calculated field
WINDOW_AVG([Avg_Rating], First(),Last())
If you see tab Grand Average, it equals 3.704, which I expect, calculated in EXCEL.
But if you see tab Avg per Location and hover over the bars, you will see
Tot_Avg = 3.848
How on Earth did this happen?