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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
November Fabric Update Carousel

Fabric Monthly Update - November 2025

Check out the November 2025 Fabric update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Users online (25)