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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Peavey
Helper III
Helper III

MTD average

I want to have a MTD calculation and a MTD average thru the month. 

I can get a MTD with TOTALMTD function, but I have no clue on how to divide this MTD on the day of the month to get the average. I am struggling with this, help please. 

Simple dataset below to show the needs.

 

Peavey_0-1648584145136.png

 

Thanks

-A-

4 REPLIES 4
amitchandak
Super User
Super User

@Peavey , I case you need average of sum of daily

 

MTD = CALCULATE(AverageX(values('Date'[Date]), calculate(SUM(Table[Qunatity Produced])) ),DATESMTD('Date'[Date]))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak Yes, average sum of MTD on the current day.

 

I tried your formula but did not get an average, just the same MTD value, see picuture:

 

Peavey_0-1648669477119.png

 

Thanks

Noone? 

Hi @Peavey ,

 

Maybe you can try this expression:

AvgMTD = 
CALCULATE(AVERAGE('Table'[Quantity Produced]),all(),DATESMTD('Table'[Date]))

Result:

vchenwuzmsft_0-1648801996935.png

Pbix in the end you can refer.

Best Regards

Community Support Team _ chenwu zhu

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.