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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Finding the Max Lookup Between Tables

Morning all!

 

I am pulling in the latest price for a particular contact. the contact had three months of activity. 

 

May 

June 

July

 

Pricing in July Changed from $2.00 to $3.00 so in May and June the pricing is the same. However when I try to pull in pricing based on table 1, since there is no June date it is left blank in table 2.   

 

Question, how do I pull in the last max date (which is May pricing) for June.

 

Table 1
DateContract #Price
5/1/2020P-2030 $ (2.00)
7/1/2020P-2030 $ (3.00)

 

Table 2
DateContract #Seller NamePrice
5/1/2020P-2030ABC Corp $    (2.00)
6/1/2020P-2030ABC Corp 
7/1/2020P-2030ABC Corp $    (3.00)
1 REPLY 1
lbendlin
Super User
Super User

Use LASTNONBLANKVALUE() to get the May data for June.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.