Forum Discussion

DCrowther's avatar
DCrowther
Helper I
7 years ago

LOOKUPVALUE Function with additional matching IF Statments

Hi

 

Can anyone help with creating a LOOKUPVALUE Function that can include a matching IF statement with two or more matching criteria from other columns

 

Regards

Dan

3 Replies

  • v-xuding-msft's avatar
    v-xuding-msft
    Community Support

    Hi DCrowther ,

     

    I create a sample you can reference to modify your own formula. And there are two  documents about the function of LOOKUPVALU and IF. If your formula still doesn’t work,  please post the sample data and the expected output.

    Measure =
    VAR a =
        LOOKUPVALUE ( Table2[Avg], Table2[Product Name], SELECTEDVALUE(Table1[Product] ))
    RETURN
        IF ( NOT ISBLANK ( a ), a, 0 )

    Best Regards,

    Xue Ding

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • PattemManohar's avatar
    PattemManohar
    Community Champion
    DCrowther Please post some sample test data and expected output, which will be helpful to provide/suggest an accurate solution.
  • v-xuding-msft's avatar
    v-xuding-msft
    Community Support

    Hi DCrowther ,

    Could you tell me if your problem has been solved? If it is, kindly mark the helpful answer as a solution if you feel that makes sense. Welcome to share your own solution. More people will benefit from here.

     

    Best Regards,

    Xue

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.