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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
eacy
Helper II
Helper II

Calculating average of values from a measure which have been filtered by a slicer

Hi,

 

How do I calculate the average of a measure.

 

Total A (Avg) = SUMX('jiradb changeitem';[Total A])

 

The "Total Assignments"  will be manipulated by a slicer so the Total and the number of rows included will change all the time.

 

I want the new "Total A (Avg)" to change along with "Total A" when the slicer change.

 

Any suggestions is appriciated.

 

screenshot 10.png

3 REPLIES 3
v-qiuyu-msft
Community Support
Community Support

Hi eacy,

 

According to your description, you have created a measure called “Total A”. Then you want to calculate average values of a measure based on slicer, right?

 

In DAX, to return average values all numbers in a column, we can use AVERAGE function. In your scenario, as the Total A is measure, we are not able to use AVERAGE function to return average values directly. We need to create a new column with the same DAX which is used by "Total A" measure. Then we can create a new measure with AVERAGE function. Please refer to screenshots below:

 

z1.PNG

z3.PNG

 

If you have any question, please feel free to ask.

 

Best regards,
Qiuyun Yu

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-qiuyu-msft your screen shots are gone. I'm thinking your solution would also help me with an issue I am having.

Any one find the screen-shot?

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.