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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
juan_pablo
Helper V
Helper V

REMOVEFILTERS and filter propagation Puzzle

Hi, I have the following model:

juan_pablo_0-1776280110535.png

With the following data in each table:

Products:

juan_pablo_1-1776280169290.png

Colors:

juan_pablo_2-1776280195853.png

Sales

juan_pablo_3-1776280251717.png

 

I created the following "useless" measure which calculates the sales of the selected product removing the filters on the Colors table

Sales Amount = 
CALCULATE(
    SUM(Sales[Value]),
    REMOVEFILTERS(Colors)
)

In principle, removing the filters on the Colors table which is NOT needed to calculate the sales of a product and it doesn't even has filters applied, should not affect the result of the SUM(Sales[Value]), nevertheless, by some weird reason REMOVEFILTERS(Colors) ALSO removes the filter on the Product table! and I get the sum of all product sales:

 

juan_pablo_4-1776280683086.png

(the slicer contains the Product column from the Prodcuts table)

 

This doesn't make any sense. Not only the Colors table is not needed to calculate sales, but also the direction of the relationship between Colors and Products can't allow filter propagation from Colors to Products. Why is REMOVEFILTERS(Colors) removing the filter on Product from the Products table?

What is happening?

(I dont' need a workaround, I just want to understand this behavior)

 

Thank you

 

 

 

 

1 ACCEPTED SOLUTION

I think the expanded table of colors contains also the products because it's a many to One relationship, filter direction in this case doesn't matter, so removing all the filter onto the colors (expanded) table removes also the filter on products. This Is my under standing but It could be wrong

View solution in original post

8 REPLIES 8
v-ssriganesh
Community Support
Community Support

Hi @juan_pablo,

Thank you for posting your query in the Microsoft Fabric Community Forum, and thanks to @cengizhanarslan@Gabry@ArwaAldoud & @luisoliveira89 for sharing valuable insights.

 

Could you please confirm if your query has been resolved by the provided solutions? This would be helpful for other members who may encounter similar issues.

 

Thank you for being part of the Microsoft Fabric Community.

cengizhanarslan
Super User
Super User

Please try the measure below:

Sales Amount =
CALCULATE(
    SUM( Sales[Value] ),
    REMOVEFILTERS( Colors[YourColorColumn] )
)
_________________________________________________________
If this helped, ✓ Mark as Solution | Kudos appreciated
Connect on LinkedIn | Follow on Medium
AI-assisted tools are used solely for wording support. All conclusions are independently reviewed.
Gabry
Super User
Super User

Hey,

I think it's because of the expanded table; you can read the article by my fellow Italians:

https://www.sqlbi.com/articles/expanded-tables-in-dax/

How would the expanded table of Colors affect the expanded table of Sales? Can you elavorate on this? (I think I understand expanded tables)

I think the expanded table of colors contains also the products because it's a many to One relationship, filter direction in this case doesn't matter, so removing all the filter onto the colors (expanded) table removes also the filter on products. This Is my under standing but It could be wrong

Hi @Gabry , after some research, you where right. When using REMOVEFILTERS(Colors) I'm removing the filters on the complete expanded table, so it's equivalent to REMOVEFILTERS(Color) & REMOVEFILTERS(Products).

 

Thank you. 

ArwaAldoud
Super User
Super User

Hi @juan_pablo 

 

try to use this

Sales Amount =
CALCULATE(
SUM(Sales[Value]),
REMOVEFILTERS(Colors),
KEEPFILTERS(VALUES(Products[Product]))
)

 

If this response was helpful, please accept it as a solution and give kudos to support other community members!

Could you try to have the field explicit rather than the whole table?

REMOVEFILTERS(Colors[Color])

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.