cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jbenson
Helper III
Helper III

YTD Average

I am looking for a formula that will give me a YTD average based off a selected month. Currently I just have it setup to show me the YTD based off the fiscal year. We would like to be able to pick a month and show YTD from that month going back to the start of our fiscal year. My current formula is this 

TONS average per DATE =
AVERAGEX(
KEEPFILTERS(VALUES('MILL PERFORMANCE'[DATE])),
CALCULATE(SUM('MILL PERFORMANCE'[TONS])). I am not sure what i need to change so that when I pick a certain month it will give me the average for that month and the previous months in that fiscal year?

2 REPLIES 2
Hei_aQing
Helper I
Helper I

Hi @jbenson 

 

Is there a calendar table in the model? Can you share a sample file, I would like to try it.

I think i got it figured out thank you for your help though!

Helpful resources

Announcements
August 1 episode 9_no_dates 768x460.jpg

The Power BI Community Show

Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.

Power BI Dev Camp Session 24 without aka link and time 768x460.jpg

Ted's Dev Camp - July 28, 2022

Watch Session 24 of Ted's Dev Camp along with past sessions!

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Top Solution Authors
Top Kudoed Authors