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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

Reply
_ds3000_
New Member

Compare Row Value to Overall Average Respecting Slicer Filters

Hi there,

 

i have a table in the following format:

IDDim1Dim2ConversionsOverall Avg
abc123type1blue33.67
abc456type2red53.67
cd4987type2green33.67

 

I would like to compare the individual row's conversion values to the overall average of conversions. BUT this calculation should respect filters set by slicers. So, for example, there might be a slicer on the page with a dropdown for dim1 and another one with a dropdown for dim2. If the user selects one of these dropdown values, the overall average should be recalculated.

 

What I want as the expected outcome is a measure that changes whenever one of the slicers is changed.

 

So far I've only managed to create a measure that gives me the overall average IGNORING the slicers, so for example in the table above the overall average would be 3.67. If the slicer for Dim1 is set to "type2", I want the measure for the overall average to recalculate and output 4.

 

Any combination of CALCULATE, ALLEXCEPT, ALL, FILTER... and so on that I've tried so far either only returned 3.67 all of the time, ignoring the slicers or just returned the average of the individual rows.

 

Any suggestions? Thanks in advance!

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@_ds3000_ ,

 

Respect filter

calculate(Average(Table[Conversions]) , allselected(Table))

 

do not respect filter

 

calculate(Average(Table[Conversions]) , all(Table))

 

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@_ds3000_ ,

 

Respect filter

calculate(Average(Table[Conversions]) , allselected(Table))

 

do not respect filter

 

calculate(Average(Table[Conversions]) , all(Table))

 

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hey @amitchandak many thanks for your answer. this does in fact seem to work. no idea what I did wrong earlier.

Helpful resources

Announcements
May PBI 25 Carousel

Power BI Monthly Update - May 2025

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

May 2025 Monthly Update

Fabric Community Update - May 2025

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