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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
ExcelMonke
Super User
Super User

LookupValue not returning all values

I've come across an interesting behaviour with the LOOKUPVALUE DAX, where it is not returning all lookupvalues, even though it should. Has anyone seen this before? Effectively, I am using the LOOKUPVALUE to confirm if a value exists in both tables. (e.g. Does value 123, exist in Table A and in Table B). This works for tens of thousands of rows flawlessly.

 

However, the other day I stumbled on a couple values where they exist in both tables, but LOOKUPVALUE is not picking them up. This confirmed after I switched to a IF(TableA[Value], IN VALUES (TableB[Value]), 1, 0). The Lookupvalue formula gives me a total of 45,107 "matches", whereas the IF Formula gives me 45,466 "matches". A nearly 1% difference. Does anyone know what may be causing this behaviour? I have tried changing data type, etc. etc. and cannot figure out why lookupvalue is giving me blanks





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

Proud to be a Super User!





1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

What made you use LOOKUPVALUE in the first place if you have other options?  It should only ever be used as a last resort.

 

LOOKUPVALUE – DAX Guide

 

Please provide sample data that fully covers your issue.
Please show the expected outcome based on the sample data you provided.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @ExcelMonke ,

 

Could you please provide more details about issue? Such as formulas and screenshots. It would be better to provide a demo file.

 

 

Best regards,

Mengmeng Li

 

 

lbendlin
Super User
Super User

What made you use LOOKUPVALUE in the first place if you have other options?  It should only ever be used as a last resort.

 

LOOKUPVALUE – DAX Guide

 

Please provide sample data that fully covers your issue.
Please show the expected outcome based on the sample data you provided.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors