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
anorville
Helper I
Helper I

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