Below is my requirement in the picture
The 1st table is at least granularity.The avg is calculated by Date + Place
.So the avg is 565 = (2865/5)
.
Coming to the second table.The avg for place 702 is 114 which is right and for 704 it is 866 which is also right.But the final ans is the same as the avg for all 5 records.
But my output should be like avg at Date + Place
level for single Date + Place
but when two places are selected it should avg at place level but sum at the total output..the final value should be 980 (sum(114+866))
Can someone have a solution for this?