Showing results for 
Search instead for 
Did you mean: 
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.



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!!!

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

August 2022 update 768x460.jpg

Check it Out!

Click here to learn more about the August 2022 updates!

August 1 episode 9_no_dates 768x460.jpg

The Power BI Community Show

Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Top Solution Authors
Top Kudoed Authors