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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Monthly Average of Total run rate

I am needing to know if it is possible to calculate the average of the total run rate based on the month number. 

 

If you see below i am needing the last column divided by month.  In Februrary it would be 47,345,465/2.

 

ghe7549_0-1627418364345.png

 

Invoice Amount running total in Month = 
CALCULATE(
	SUM('Invoices'[Invoice Amount]),
	FILTER(
		CALCULATETABLE(
			SUMMARIZE(
				'Invoices',
				'Invoices'[Approved by Date].[MonthNo],
				'Invoices'[Approved by Date].[Month]
			),
			ALLSELECTED('Invoices')
		),
		ISONORAFTER(
			'Invoices'[Approved by Date].[MonthNo], MAX('Invoices'[Approved by Date].[MonthNo]), DESC,
			'Invoices'[Approved by Date].[Month], MAX('Invoices'[Approved by Date].[Month]), DESC
		)
	)
)

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Here is the Dax that I wrote to get the cummulative monthly average per year.

Cummulative Avg = DIVIDE(Invoices[Invoice Amount running total in Month],CALCULATE(AVERAGE(Invoices[Approved by Date].[MonthNo])))

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Here is the Dax that I wrote to get the cummulative monthly average per year.

Cummulative Avg = DIVIDE(Invoices[Invoice Amount running total in Month],CALCULATE(AVERAGE(Invoices[Approved by Date].[MonthNo])))
amitchandak
Super User
Super User

@Anonymous ,

 

Cumm Sum = CALCULATE(SUM('Invoices'[Invoice Amount]),filter(allselected(date),date[date] <=max(date[Date])))

 

or

 

Cumm Avg = CALCULATE(SUM('Invoices'[Invoice Amount]),filter(allselected(date),date[date] <=max(date[Date])))/CALCULATE(distinctcount(Date[Month-Year]),filter(allselected(date),date[date] <=max(date[date])), not(isblank('Invoices'[Invoices Amount])))) 

 

or

 

Cumm Avg=

var _1 = averagex(values('Date'[Month]) , calculate(SUM('Invoices'[Invoice Amount])))

return

CALCULATE(_1,filter(allselected(date),date[date] <=max(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

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.