How to calculate YTD Average based on a selected date.

Mavericks334

Active Member
Joined
Jan 26, 2011
Messages
280
Hi

I have the below DAX measure,

=calculate([Value_Corrected1],datesbetween(Dates[Date],Year_Period[Selected_Year_Start_Date],Year_Period[Selected_Month_End_Date]))

That is giving me the sum of headcount for the dates that i select. However i need to get the average of the headcount for the period selected.

Any idea how it oculd be calculated.

Regards,
Renato.
 
I created an additional measure, which is

=calculate([Value_Corrected1],datesbetween(Dates[Date],Year_Period[Selected_Year_Month_Start_Date],Year_Period[Selected_Month_End_Date]))/[Selected_Fiscal_Period]

Where [Selected_Fiscal_Period] = Max[Fiscal_Period].

I am able to get the average like this. :-)
 
Upvote 0

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.

Forum statistics

Threads
1,224,872
Messages
6,181,501
Members
453,047
Latest member
charlie_odd

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