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 September 15. Request your voucher.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

Top Kudoed Authors