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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
michaelu1
Advocate II
Advocate II

Trying to filter with allexcept/removefilters

I have the following data for our properties:

 

Entity GroupRegionalProperty name
1ARed
1AYellow
1AGreen
1BBlue
1BPurple
2COrange
2CLemon
2CPear
2CApple
2DKiwi
2DPlum

 

I created a measure to give me averages based off whatever filters are placed on this table.

 

I also created an 'entity' measure that will give me an average for the entity disregarding any filters on the other columns.

 

The issue that I'm having now, is that occasionally I will need to remove a property from the 'entity' measure, meaning show me the average for entity 1 without red. I can't seem to figure out how to do that. I tried adding it to the formula by saying keep the filters on entity and property, but then when I filtered by regional the second measure updates as well.

I think is that same thing from a different persective - I also need the ability to filter the property column at the same time. Meaning I would want to see the average for yellow (first measure) compared to the average of its entity without red (second measure).

3 REPLIES 3
v-kkf-msft
Community Support
Community Support

Hi @michaelu1 ,

 

Even if you only keep the filter for the [Property name] column, once a selection is made on [Regional], it will actually pass the filter to the [Property name] column, which in turn will filter the measure.

The workarounds are:

1. Put the [Regional] column and the [Property name] column in separate tables and use the allexcept/removefilters functions.

2. Turn off the interaction between the [Regional] column and the measure.

vkkfmsft_0-1660878993074.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Ashish_Mathur
Super User
Super User

Hi,

In the Filter pane, just filter out Red.  Your simple average measure should show the correct number.


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

show your work and indicate the expected outcome based on your sample data.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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