Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago
Solved

cross reference data. between tables

Hi, 

I would like to add a column in table 1 using data from table 2 to see if a company passed at least once 

 

So account 1 would be Passed

Account 2 passed 

Account 3 not passed 

 

Matching would be on account ID, I have tried LOOKUPVALUE but it does not let me as table 2 has double account ID's 

 

Table 1

Account IDCompany Name Passed? 
1Company A 
2Company B 
3Company C 

 

Table 2

Account IDDatePassed?
101-01-2024FALSE
202-01-2024TRUE
303-05-2024FALSE
1

08-05-2024

TRUE
108-05-2024FALSE
310-05-2024FALSE

 

Any help would be appreciated 🙂 

  • Anonymous Try this, PBIX attached below signature.

    Passed? = IF( TRUE IN SELECTCOLUMNS( RELATEDTABLE( 'Table 2' ), "__Passed", [Passed?] ), TRUE(), FALSE() )

2 Replies

  • Greg_Deckler's avatar
    Greg_Deckler
    Community Champion

    Anonymous Try this, PBIX attached below signature.

    Passed? = IF( TRUE IN SELECTCOLUMNS( RELATEDTABLE( 'Table 2' ), "__Passed", [Passed?] ), TRUE(), FALSE() )
    • Anonymous's avatar
      Anonymous
      Not applicable

      Amazing it worked, thanks 😃