Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.