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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
mboon11111
Frequent Visitor

Average per month Servicerequest

I have a table for servicerequest and would like an average per month based on number of Request ID's in that month.

 

RequestIDCreated Time  
100125/03/2020 16:00:24  
100225/03/2020 16:05:38  
1 ACCEPTED SOLUTION
V-lianl-msft
Community Support
Community Support

Hi @mboon11111 ,

 

Please format created time as "year - month"

year_month = FORMAT(Sheet7[Created Time],"YYYY-MM")

Then try the DAX like below:

AVG_ALL_MONTH = 
VAR COUNT_ID = CALCULATE(COUNT(Sheet7[RequestID]),ALL(Sheet7))
VAR DISTIN_MONTH = CALCULATE(DISTINCTCOUNT(Sheet7[year_month]),ALL(Sheet7))
RETURN DIVIDE(COUNT_ID,DISTIN_MONTH)

Here is the sample pbix.

 

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

View solution in original post

2 REPLIES 2
V-lianl-msft
Community Support
Community Support

Hi @mboon11111 ,

 

Please format created time as "year - month"

year_month = FORMAT(Sheet7[Created Time],"YYYY-MM")

Then try the DAX like below:

AVG_ALL_MONTH = 
VAR COUNT_ID = CALCULATE(COUNT(Sheet7[RequestID]),ALL(Sheet7))
VAR DISTIN_MONTH = CALCULATE(DISTINCTCOUNT(Sheet7[year_month]),ALL(Sheet7))
RETURN DIVIDE(COUNT_ID,DISTIN_MONTH)

Here is the sample pbix.

 

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

amitchandak
Super User
Super User

Create a date column

create date = [ Created Time].date

 

Join this with date table and have month year there and try a formula like


averagex(summarize(Date, date[Month Year],"_cnt",count(Table[RequestID])),[_cnt])

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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.