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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
GillesDesbois
Regular Visitor

Comparison of 2 columns with approximately the same values

hello
I have 2 tables

table 1 column 1 with all values
table 2 column 1 with same value as table 1 column 1 but not all the value

 

I want to have a new column in the table 1 which tell me if the value in column 1 is also present in table 2 and this, value per value

ex :

 

table 1 column 1table 1 column 2 table 2 column 1
apresent a
bnot present f
cnot present  
dnot present  
enot present  
fpresent  

 

Hope I'm clear
if someone has already found this issue and solved it, please help me

Gilles

 

1 ACCEPTED SOLUTION
AlB
Community Champion
Community Champion

Hi @GillesDesbois 

Try this for the new calculated column in 'table 1':

 

column 2 =
IF (
    COUNTROWS ( FILTER ( 'table 2', 'table 2'[column 1] = 'table 1'[column 1] ) ) > 0,
    "present",
    "not present"
)

 

View solution in original post

2 REPLIES 2
AlB
Community Champion
Community Champion

Hi @GillesDesbois 

Try this for the new calculated column in 'table 1':

 

column 2 =
IF (
    COUNTROWS ( FILTER ( 'table 2', 'table 2'[column 1] = 'table 1'[column 1] ) ) > 0,
    "present",
    "not present"
)

 

hello

sorry for my late answer

yes it works

a great thank for your help

Gilles

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.