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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
jtpiazzamn
Helper I
Helper I

Count to ignore all filters including related tables

I need to count the number of ID # in a table without any filters. 

 

# of users = Calculate(Count('User List'[User.id]), ALL('User List'))

This works, however, whenever I apply a Page filter that has a filter from a related table, it filters my measure # of users. 

The relationship between the 2 tables are not direct, but all relationships are setup as both ways. I thought this might be affecting the result of the measure. 

 

I have tried many variations which all work, but when I apply the page filter it still filters my measure. I'm essentially looking to count the number of rows of the User List table without any filter. I have used the CountRows function, but the page filter still is affecting the measure. 

 

Thanks in advance. 

Jim

1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

@jtpiazzamn Unfortunately page level filters pre-filter the data so that those rows aren't even available to DAX. You will have to move your page filter to visual level filters instead. Or, inactivate the relationship and use USERELATIONSHIP in any calculations where you need it.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

1 REPLY 1
Greg_Deckler
Community Champion
Community Champion

@jtpiazzamn Unfortunately page level filters pre-filter the data so that those rows aren't even available to DAX. You will have to move your page filter to visual level filters instead. Or, inactivate the relationship and use USERELATIONSHIP in any calculations where you need it.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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