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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
faustusxanthis
Frequent Visitor

Calculate Monthly Average Cases per Resource

Good day, everyone!

 

I have already tried researching multiple boards and have also searched online but I can't seem to get the right formula on this one. 

I have a dataset like this: 

faustusxanthis_1-1686155763564.png

 

What I want to do is to calculate average monthly cases per resource. Such that it will look like this (sample numbers only): 

faustusxanthis_2-1686155883842.png

 

I can't seem to find the right measure to do the calculation. I have tried AVERAGEX(VALUES([Closed Month], COUNT([Case ID])) but what it's displaying is the total/sum of all cases per resource.

 

I appreciate any help. 

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @faustusxanthis 
If i understand you correctly please modify your dax formula to :

Test Average = divide( SUMX(VALUES('Table'[Resource]), COUNT([Case id])),DISTINCTCOUNT('Table'[Closed Month]))
Ritaf1983_0-1686193978794.png

 

Link to a sample file 

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

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

3 REPLIES 3
Ritaf1983
Super User
Super User

Hi @faustusxanthis 
If i understand you correctly please modify your dax formula to :

Test Average = divide( SUMX(VALUES('Table'[Resource]), COUNT([Case id])),DISTINCTCOUNT('Table'[Closed Month]))
Ritaf1983_0-1686193978794.png

 

Link to a sample file 

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

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Thank you so much @Ritaf1983. It worked!

Happy to help 😊

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.