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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
admin_xlsior
Post Prodigy
Post Prodigy

How to calculate average number of month ?

Hi,

 

I'm curios to understand how are we calculate or get a value for Average number of month ?

Lets say 200 Orders, the receive days vary between days and months, but I want to get Average number of month of my receving. Also because days in months is vary, right.

 

Need some advice.

Thanks

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@admin_xlsior ,

Sum at day level Avg above

calculate(AverageX(Values('Date'[Date]), [Count of order measure] ) )

 

monthly using TI

calculate(AverageX(Values('Date'[Date]), [Count of order measure]) , datesmtd('Date'[Date])  )

 

 

Sum at Month level Avg above

calculate(AverageX(Values('Date'[Month year ]), [Count of order measure] ) )

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

View solution in original post

2 REPLIES 2
v-xiaotang
Community Support
Community Support

Hi @admin_xlsior 

Have you tried the dax expression mentioned by amitchandak? Does it work? Also, you can customize the average expression, just use function datediff() to calculate the total days of the period. Then use divide() function to calculate average.

DATEDIFF function (DAX) - DAX | Microsoft Docs

DIVIDE function (DAX) - DAX | Microsoft Docs

vxiaotang_0-1649670518198.png

 

Best Regards,

Community Support Team _Tang

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

amitchandak
Super User
Super User

@admin_xlsior ,

Sum at day level Avg above

calculate(AverageX(Values('Date'[Date]), [Count of order measure] ) )

 

monthly using TI

calculate(AverageX(Values('Date'[Date]), [Count of order measure]) , datesmtd('Date'[Date])  )

 

 

Sum at Month level Avg above

calculate(AverageX(Values('Date'[Month year ]), [Count of order measure] ) )

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
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Solution Authors