Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

check if a value in table 1 exist in table2

Hello,   I have two tables.  Table1 contains let's say 15,500,000 rows and table2 contains 15,263,123 rows.   In table 1, I have the field UniqueKey1 and in Table 2 I have the field UniqueKey2. ...
  • AlB's avatar
    7 years ago

    Hi Anonymous 

     

    I would created a calculated column:

     

     

    NewColumn =
    IF ( Table1[UniqueKey1] IN DISTINCT ( Table2[UniqueKey2] ), 1, 0 )

    Since the large majority of NewColumn values will be 1, the engine will be able to compress that NewColumn a lot and thus it won't take up too much additional space.