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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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