Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Re: Search / Lookup value from table A in multiple columns in table B

I need to write a DAX forumula that will create a New Column in Table A based on the follow criteria: IF Table A [Org Name] is found in either Table B [Org Name 1], Table B [Org Name 2], Table B [Or...
  • AlB's avatar
    7 years ago

    Hi Anonymous

    How about this:

     

    Column_Test = 
    IF (
         (TableA[Org Name] IN VALUES ( TableB[Org Name 1] )
                || TableA[Org Name] IN VALUES ( TableB[ Org Name 2] )
                || TableA[Org Name] IN VALUES ( TableB[ Org Name 3] )
                || TableA[Org Name] IN VALUES ( TableB[ Org Name 4] ))
         
         && (TableA[Training Title] IN VALUES ( TableB[Training Title Group 1] )
                    || TableA[Training Title] IN VALUES ( TableB[Training Title Group 2] ));
        "Yes";
        "No"
    )

     

     

  • Anonymous's avatar
    Anonymous
    7 years ago

    Thank you so much.  This worked.  Awesome!!!!  I spend quite some time on this and I really wasn't getting anywhere.  What a great way to end a Friday.

     

    Steve