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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Syndicate_Admin
Administrator
Administrator

LOOKUPVALUE does not find data that does exist

Hello

Does anyone know why I only find a line when there are really more coincidences?

Measure:

Contact Name = LOOKUPVALUE(contactos_sql[Name],Contactos_sql[No_],Sales_Header_sql[Sell-to Contact No_])
apenaranda_0-1719560322332.png

Between these two tables there is a non-active relationship

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @Syndicate_Admin 
There are reasons for returning blanks when using lookupvalue function:

 

  • No Matching Value:

    • If there is no row in the table that matches the provided search conditions, LOOKUPVALUE will return a blank.
  • Multiple Matching Values:

    • If there are multiple rows that match the search conditions, LOOKUPVALUE will also return a blank to indicate ambiguity.
  • Missing or Blank Values in the Lookup Column:

    • If the column being looked up contains blanks or is missing for the matching rows, LOOKUPVALUE will return a blank.

For more assistance :

please share a pbix or some dummy data that keeps the raw data structure with expected results. It should help us clarify your scenario and test the coding formula.

How to Get Your Question Answered Quickly  

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

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

6 REPLIES 6
Ritaf1983
Super User
Super User

Hi @Syndicate_Admin 
There are reasons for returning blanks when using lookupvalue function:

 

  • No Matching Value:

    • If there is no row in the table that matches the provided search conditions, LOOKUPVALUE will return a blank.
  • Multiple Matching Values:

    • If there are multiple rows that match the search conditions, LOOKUPVALUE will also return a blank to indicate ambiguity.
  • Missing or Blank Values in the Lookup Column:

    • If the column being looked up contains blanks or is missing for the matching rows, LOOKUPVALUE will return a blank.

For more assistance :

please share a pbix or some dummy data that keeps the raw data structure with expected results. It should help us clarify your scenario and test the coding formula.

How to Get Your Question Answered Quickly  

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

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

The problem then is that there are multiple coinciding values. Is there a way for anyone I find to indicate it (even if there are several)?

Anonymous
Not applicable

Hi @apenaranda 

 

Can you show some sample data of two tables in the table format? You say there are multiple coinciding values, do you mean one No_ value may have multiple Name values in the Contactos_sql table? Additionally, what is the cross-filter direction of the inactive relationship?

 

Best Regards,
Jing

 

 

I finally did it by power query.

rajendraongole1
Super User
Super User

Hi @Syndicate_Admin - I hope there is an inactive relationship between the tables, create a below measure 

Contact Name =
CALCULATE(
LOOKUPVALUE(
Contactos_sql[Name],
Contactos_sql[No_], Sales_Header_sql[Sell-to Contact No_]
),
USERELATIONSHIP(Contactos_sql[No_], Sales_Header_sql[Sell-to Contact No_])
)

 

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!





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

Proud to be a Super User!





With the measure you comment I get the following error:

apenaranda_0-1719561909448.png

It is true that in the contacts table there are no repetitions but in the Sales header table there are

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.