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
tainks
Frequent Visitor

find number of values that don't map

Hi i have two related tables, table A and table B. Table A has a column of index. Table B has a subset of that index, but each index can appear multiple times. 

 

How do I count the number of table A rows that do not map to table B? Thanks in advance!

 

 

 

1 ACCEPTED SOLUTION
AlB
Community Champion
Community Champion

Hi @tainks

 

Try this to count the number index values in TableA but not in TableB

 

InA_NotInB =
COUNTROWS ( EXCEPT ( VALUES ( TableA[Index] ), VALUES ( TableB[Index] ) ) )

You can place the measure in a Card visual for instance

 

View solution in original post

1 REPLY 1
AlB
Community Champion
Community Champion

Hi @tainks

 

Try this to count the number index values in TableA but not in TableB

 

InA_NotInB =
COUNTROWS ( EXCEPT ( VALUES ( TableA[Index] ), VALUES ( TableB[Index] ) ) )

You can place the measure in a Card visual for instance

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.