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
deedeedudu
Helper II
Helper II

Count the matched value in two columns in two different tables

Hi,

 

I need help in counting the matching values in two different tables.

Table 1= Users

Column1Column2Phone
aaattt1234
aasrrr2345
abbeee3456
aafffff3456

 

Table 2= New Users

Phone
1234
2345

 

The end result should be 2 as there are only two matching values in the first table

1 ACCEPTED SOLUTION
Samarth_18
Community Champion
Community Champion

Hi @deedeedudu ,

 

Create a measure like below:-

 

Measure =
COUNTROWS ( FILTER ( Users, Users[Phone] IN DISTINCT ( 'New Users'[Phone] ) ) )

 

 

Thanks,

Samarth

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

View solution in original post

2 REPLIES 2
Samarth_18
Community Champion
Community Champion

Hi @deedeedudu ,

 

Create a measure like below:-

 

Measure =
COUNTROWS ( FILTER ( Users, Users[Phone] IN DISTINCT ( 'New Users'[Phone] ) ) )

 

 

Thanks,

Samarth

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

mh2587
Super User
Super User

try and see the detail of INTERSECT Function


Did I answer your question? If so, please mark my post as a solution!


Proud to be a Super User!




LinkedIn Icon
Muhammad Hasnain



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.