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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
bubblepop
Microsoft Employee
Microsoft Employee

How do I display the average of a measure across selected filters?

I have a measure known as abc rate. I have a filter that allows a user to select a particular month (numerical options: 1-12). When someone selects a month (via a filter), they see the abc rate for that particular month. 

 

My problem is if someone selects multiple months (ex: 1, 2, 3 in the filter), the resulting value of abc rate is not the average. Quite frankly, I'm not too sure what it is, so I'd like to create a measure that represents the average connected rate. 

 

The average connected rate should be the sum of the connected rates for {x, y, z} months / total number of months selected, where {x, y, z} are the selected months. I've tried AVERAGEX(DateTable, [abc rate]) but that doesn't give me the right average either. Does anyone know what the correct DAX formula is?

5 REPLIES 5
Ashish_Mathur
Super User
Super User

What is the formula you have written for abc rate?


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

It is total number of apples / green apples. Total number of apples is also another measure. Abc rate uses data from multiple data tables.

Hi,

That is still not clear enough.  Share the link from where i can download your PBI file and show the expected result there.  Share only minimal information/tables in the file so as to avoid confusion.


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

I'm afraid the data I'm working with is protected. Based on the information above, is there a way to compute the average of a measure (of x selected entries in a filter)? The calculation of the measure itself ideally is isolated from finding the average of it.

Anonymous
Not applicable

Hi @bubblepop ,

Sorry that I'm not clear about your requirement. Could you please create a simple sample data with fake data and calculation logic? So that we can understand your requirement. Thank you.

In addition, you can refer the method in the following threads by using DIVIDE function and check whether it can resolve your problem.

Calculate an average from a Sum by Month

DAX Calculate Monthly Average

Best Regards

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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