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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors