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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

How to count data in a table that cannot be found in another table

Hi guys,

 

I have 2 tables with UserID.  Table A contains all UserID while Table B contains UserIDs that are not active.

 

I will like to count USERIDs in TableA which are not included in TableB so as to know the number of active user.

 

Thanks a lot in advance!!!

 

Best regards

2 REPLIES 2
Greg_Deckler
Community Champion
Community Champion

COUNTROWS(EXCEPT(TableA, TableB))



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...
Anonymous
Not applicable

Thanks a lot! It dint't work exactly but your idea gave me a way to search for the right context.

I found the answer through this: https://community.powerbi.com/t5/Desktop/How-to-count-rows-that-are-related-to-another-table/m-p/199...

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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