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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
CloudMonkey
Post Prodigy
Post Prodigy

Or statement in FILTER not overriding exisitng filter context?

Hi,

 

I've uploaded my pbix file here -> https://ufile.io/dsp0vngv . I have the following data:

 

backend table.JPG

 

And two calculated measures:

answer c.JPGanswer d.JPG

 

Which I've displayed in the visuation table below:

output table.JPG

 

What I don't understand is that for answer c the below line of code is not overriding the existing filter context? i.e. why is every line of the above table visualisation not 5 for the answer d column? I thought the FILTER function leaves the existing filter context intact but then overrides any filter context where a filter is defined within the FILTER function?

Product[Color] = "Red" || Product[Brand] = "SQLBI"
 
Thanks for your help,
 
CM
1 REPLY 1
DouweMeer
Impactful Individual
Impactful Individual

@CloudMonkey 

 

I believe this is to the behavior of ALL. I've found ALLEXCEPT to supply a solution for most of these situations. It will remove implicit and explicit filters, with exception those applied ot the columns secified in the expression.

 

You can also try creating a custom table to see the result of your filter. 

filter ( filter ( your filter in the calculate ) , the implicit filters of the visual )

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.