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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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