Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
DCrowther
Helper I
Helper I

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 3
v-xuding-msft
Community Support
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.

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
Community Champion
Community Champion

@DCrowther Please post some sample test data and expected output, which will be helpful to provide/suggest an accurate solution.




Did I answer your question? Mark my post as a solution!

Proud to be a PBI Community Champion




v-xuding-msft
Community Support
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 )

4.jpg

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.

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.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors