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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

How do you look up a value from an earlier date in a different table

I am attempting to look up a value for the end of the month from a different (update/Maintenance History) table by account. 

However, when using the lookupvalue function based on both the account and month End date, I only return matches if an update to the maintenance history table occurred in that respective month. How Do I lookup the value from the other table when there is not a matching date? I need to pull the value for the earlier date of occurence. See Below for an example of what is happening and for what the desired result should be.

 

 

DEK_0-1635880796062.png

 

DEK_1-1635880810184.png

 

DEK_2-1635880827308.png

 

 

 

1 ACCEPTED SOLUTION
vojtechsima
Super User
Super User

Hi, @Anonymous,
see my solution:

Value = maxx(filter(Updated,PrimaryTable[Month End Date]>=Updated[Month End of Updated Date]),Updated[Value])

vojtechsima_1-1635886443933.png

 

 

View solution in original post

1 REPLY 1
vojtechsima
Super User
Super User

Hi, @Anonymous,
see my solution:

Value = maxx(filter(Updated,PrimaryTable[Month End Date]>=Updated[Month End of Updated Date]),Updated[Value])

vojtechsima_1-1635886443933.png

 

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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