Grand Average of different time period

JB2020

Board Regular
Joined
Jul 29, 2020
Messages
88
Office Version
  1. 365
  2. 2016
  3. 2010
Platform
  1. Windows
Hi

I am struggling with the measure 'GrandAverage_LastYear' in the attachment below. I would like to replicate the 'GrandAverage_Selected' measure, but for 'Last Year Count'.

In the workbook I have two tables, one containing unique dates and the other containing dates and a category. The aim is to have a count of dates from the latter and a grand average of those, as well as a comparison of the count of last years dates (Date-364) as well as a grand average of those.

Please let me know if any further explanation is required and thanks in advance.

 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Hi JB,

You almost had it - here's the measure that should work for you:

Rich (BB code):
=CALCULATE([Last Year Count], ALLSELECTED())
/COUNTROWS(ALLSELECTED(DateLookup))

1608975695071.png


Take care,
Justyna
 
Upvote 0
Solution

Forum statistics

Threads
1,223,749
Messages
6,174,288
Members
452,554
Latest member
Louis1225

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top