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 September 15. Request your voucher.

Reply
sbharti123
Frequent Visitor

Creating average of a measure in a table visualization

I have created a measure which is calculated based on selection in a slicer. Its logic is as below:

 

measure1 = SWITCH( SELECTEDVALUE ('QList'[QNO]), "Q1",Sum(table[Q1]),  "Q2",Sum(table[Q2]), BLANK() )
 
It is displaying perfectly as shown below:
NAMEMEASURE1
JOHN100
TINA200
MIKE300
 
Now, I want to create another measure which will calculate average of all values shown in above table. That is (100+200+300) /3 = 200
Therefore, for each of the employee above, there will be a new column called MEASURE2 just showing 200.
 
The problem is that I have another slicer on the page which selects their manager. So for some managers there can be more/less employees.
 
I just can't get my head around this, can anyone suggest?
1 ACCEPTED SOLUTION
v-frfei-msft
Community Support
Community Support

Hi @sbharti123 ,

 

To create a measure as below to get the average.

 

Measure = AVERAGEX(ALLSELECTED('table'),[measure1])

Capture.PNG

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

View solution in original post

1 REPLY 1
v-frfei-msft
Community Support
Community Support

Hi @sbharti123 ,

 

To create a measure as below to get the average.

 

Measure = AVERAGEX(ALLSELECTED('table'),[measure1])

Capture.PNG

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

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.