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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Deepankar989P
New Member

Calculate average sales for calendar month

Here we have found a simple way to find out the average sales for the calender month. 

Calender Qunatity Sum =

Var startMonth = Date(Year(Today()),1,1)

Var EndMonth =  EOMONTH ( TODAY (),-1)

Return

Calculate(SUMX(Table Name,Qunatiy Column),

Filter(All(Table Name),

'Date Table >= startMonth &&

'Date Table<= EndMonth

)

)

Calender Quantity Average =

Var Month = MONTH(TODAY()) - 1

return

divide(Calender Qunatity Sum,Month,0)



1 REPLY 1
amitchandak
Super User
Super User

@Deepankar989P , Make sure you have month year columns

 

Calculate(SUMX(Values('Date Table'[month Year]),calculate(Sum('Date Table'[Qunatiy Column]))),
Filter(All('Date Table'),
'Date Table' >= startMonth &&
'Date Table'<= EndMonth
)
)

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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