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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
nmck86
Post Patron
Post Patron

avg calculation

Below is the link to the pbix file that I need assistance with. I want to use a formula that will allow for the total score formula to show the avg if you select several months. So basically in the example below you will see that I have 2 months selected and for July and August and I would expect for CALL FAILURE to see 41.56 as the avg of those 2 months combined but the system aggreagtes the data and gives me an average that is based on the incidents rates for each respective month. 

 

Screen Shot 2018-10-05 at 10.05.21 PM.png

 

https://drive.google.com/file/d/1uQ2B43axGYoh1_FahMefoBlvV_Ew7ebG/view?usp=sharing

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

 

I selected Call failure in the slicer visual and create a seperate card visual.  In that card visual, i dragged this measure

 

Measure=AVERAGEX(SUMMARIZE(VALUES('Calendar'[Month]),[Month],"ABCD",[RESULTS_SCORE]),[ABCD])

 

Hope this helps.

 

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

8 REPLIES 8
Ashish_Mathur
Super User
Super User

Hi,

 

I selected Call failure in the slicer visual and create a seperate card visual.  In that card visual, i dragged this measure

 

Measure=AVERAGEX(SUMMARIZE(VALUES('Calendar'[Month]),[Month],"ABCD",[RESULTS_SCORE]),[ABCD])

 

Hope this helps.

 

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Can you share the file also?

Hi,

 

Download the file from here.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thank you again for saving the day!!!! I appreciate your help!!! AGAIN!

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

@Ashish_Mathur i am using this formula and it is not recongizing the dataset when there is no value in a field... for instance OCT YTD  we have no values for 3 months so when the avg is happening it is doing essentially divide by 7 instead of divide by 10. Any thoughts on how to not have this happen?

Ashish did it work when you selected 3 or 4 months as well? I am going to test it out now but thought I would ask if you noticed if it worked. I noticed that for one or 2 months it works good but for other months being added it stopped shoing the true average.

Hi,

 

It works very well.  I selected May - Aug and the result is 39.00%.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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