cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors