Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago
Solved

LOOKUPVALUE to return Match or Not A MAtch

Hi Folks,

 

I have the following: Match = LOOKUPVALUE(Active[Employee Name],Active[Employee Name], Review[Full Name])

 

What I want to do is on my "Review" table add a calculated column to say it matches the name on the Active table name in the Employee Name field. So I want my result to me "Match" if its found or "Not a Match" if it isn't found. 

 

I know how to write this if it were in Excel but I'm having logic issues here. 

 

I originally had:

 

Match = IF(LOOKUPVALUE(Active[Employee Name], Active[Employee Name], Review[Full Name], False), "Match", "Not A Match")

 

but it didn't work. I know it's something I'm overlooking. Any help would be great please. Many thanks

 

 

  • Hi Anonymous,

     

    Please try:

    Match =
    IF (
        LOOKUPVALUE ( Active[Employee Name], Active[Employee Name], Review[Full Name] )
            = BLANK (),
        "Not A Match",
        "Match"
    )

    Best regards,

    Yuliana Gu

2 Replies

  • v-yulgu-msft's avatar
    v-yulgu-msft
    Icon for Microsoft Employee rankMicrosoft Employee

    Hi Anonymous,

     

    Please try:

    Match =
    IF (
        LOOKUPVALUE ( Active[Employee Name], Active[Employee Name], Review[Full Name] )
            = BLANK (),
        "Not A Match",
        "Match"
    )

    Best regards,

    Yuliana Gu

    • Anonymous's avatar
      Anonymous
      Not applicable

      Ah ha! I forgot the = Blank(), piece. THANK YOU! This works. :)