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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
PowerBI123456
Post Partisan
Post Partisan

Comparing 2 different columns

Hi - Hope someone can help. I have 2 tables below:

 

PowerBI123456_0-1676342253697.png

PowerBI123456_1-1676342425258.png

 

I am trying to see which accounts from table 1 don't have the specific combos in table 2. In this example, it would be account C. 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@PowerBI123456 ,

 

a new column in Table 1 =

var _cnt = countx( Table1, Table1[Code1] = Table2[Code1] && Table1[Code2] = Table2[Code2]) , Table2[Code2])

return

if(isblank(_cnt) , "Missing", "Found")

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@PowerBI123456 ,

 

a new column in Table 1 =

var _cnt = countx( Table1, Table1[Code1] = Table2[Code1] && Table1[Code2] = Table2[Code2]) , Table2[Code2])

return

if(isblank(_cnt) , "Missing", "Found")

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
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.