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
djohnson
Advocate I
Advocate I

BUG? LOOKUPVALUE() limited to 5,999 matches

Background: Trying to fill-in ID values from a table [approx 11k rows] with another table [approx 11k rows] using LOOKUPVALUE(). Upon checking the results I noticed there were roughly half missing values (that I knew existed). I created the relationship between the two tables (1-1) and rechecked: still missing matches. When I looked at the exact count of the matches, it was 5,999 - very peculiar. It looks like DAX has a limit on LOOKUPVALUE() for a table - which is disturbing. I was able to switch over to using the RELATED() function since I had a relationship between the two tables.

 

Comments? 

2 REPLIES 2
AWolvan9
Regular Visitor

I had the same issue, big table (2 million rows), lookup value on 3 columns just didnt seem to be working. Tested it other way ( i.e. table 1 looking up table 2 rather than other way around) and lookup was able to pull values. 
Going to try creating a unique ID column, creating a relationship and using the related funciton instead. 

Edit: Made the relationship based on a unique col, and a related function did work, but interestingly the relationship also made the lookupvalue work. Lesson to learn? make a unique col and make a relationship?

This basically makes lookupvalue uesless though!!!

Ciria
Advocate III
Advocate III

Hi djohnson:

 

I was also working with that formula but for a different goal.

 

Seeing what you say I think that creating a relationship and Related formula should be enough to match both tables and get what you want.

 

If you cannot use Relate for a problem with the relationship and the Cross filter direction maybe you can use "USERELATIONSHIP" sometimes it helps to calculate something when it is not fully connected in both sides.

 

Good luck!

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