Forum Discussion

adityavighne's avatar
adityavighne
Icon for Continued Contributor rankContinued Contributor
5 years ago
Solved

Lookup value when 2 conditions meet

Hi, I have two table: Table 1 contains (ID, Email) and Table 2 contains (ID, Email, Usage) I want lookup value Usage in Table 1 when two conditionas are meet: ID and Email   below is sample dumm...
  • Tahreem24's avatar
    5 years ago

    adityavighne  As you have same ID for different email ID so you'll need to create a Key column in both the tables.

    Step 1: Create Key column (combining ID and Email) in Table 1.

    Key = DATA1[Email]&DATA1[ID]


    Step 2: Create the Key Column in Table 2:

    Key  = DATA2[Email]&DATA2[ID]

     

    Step 3: Create Bridge Table to join these Key columns:

     

    Step 4: Then Create calculated column to find relevant usage.

    Lookup = IF(DATA2[Key]=RELATED(Bridge[Key]),DATA2[Usage],"-")
     
    Output: