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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Remove filter using ALL/REMOVEFILTERS from related tables: How exactly?

Hi folks,

 

I am having a seemingly trival problem. I have the following very simple star schema:

 

aabtra_0-1674808877933.png

 

There are a 1-* relationship between the [Product] columns from the dimension tables to the fact table.

 

Now I would like to create a measure that counts the rows in the SalesStatistics table but ignores certain visual and slicer filters:

  • suppliers[Supplier] should be ignored
  • SalesStatistics[SalesDate] should be ignored
  • warehouses[location] should not be ignored

Obviously,

 

 

Orderlines = 
	CALCULATE(
		COUNTROWS(SalesStatistics),
		ALL(SalesStatistics[SalesDate],suppliers[Supplier])
	)

 

 

does not work because "All column arguments of the ALL/ALLNOBLANKROW/ALLSELECTED/REMOVEFILTERS function must be from the same table."

 

What am I missing here? The columns should all be in the expanded table of SalesStatistics so why is this not trivial?

 

Kind regards, aabtra

 

 

 

 

2 REPLIES 2
johnt75
Super User
Super User

You have to remove the filters from different tables in separate steps. try

Orderlines =
CALCULATE (
    COUNTROWS ( SalesStatistics ),
    REMOVEFILTERS ( SalesStatistics[SalesDate] ),
    REMOVEFILTERS ( suppliers[Supplier] )
)
Anonymous
Not applicable

Did you try that? I am getting the exact same error.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors