CALCULATE(COUNT(table1[col1]), table[col1] = x) DAX code example
Example: DAX check if value exists in another table
Matched = NOT(ISBLANK(RELATED(Table2_UniqueJobIDs[JobIDsDEF])))
Matched = NOT(ISBLANK(RELATED(Table2_UniqueJobIDs[JobIDsDEF])))