Forum Discussion

jbenson's avatar
jbenson
Helper III
4 years ago

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

  • Hi jbenson 

     

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

    • jbenson's avatar
      jbenson
      Helper III

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