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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply

Lookup value between two dates

I have a dataset (sample linked to this post) - I need to lookup a value from another dataset based on the column called 'KEY'.  If there is a corresponding match in the other dataset to the KEY, between Meet 1 and Meet 2 dates, then I need it to return the value it has found.  Should there not be two dates (as in the sample here) then I need to us only the Meet 1 data.

If dates Meet 1 and Meet 2 are the same dates, then I just need one of them to use for the lookup to work.

 

What's the best way to do this?  Can anyone help with suggesting sample DAX, or other means, to be able to achieve this? 

I've shown you what I am hoping to achieve by adding the desired result in orange, on the Data tab (only shown first 5 lines of data as an example of what I need to achieve - obviously the main data is much larger!)

 

I'd like the lookup to return the exam and the event date which corresponds to the date range.

 

Sample Data 

 

As always, your help is so valuable.

1 ACCEPTED SOLUTION
BIswajit_Das
Impactful Individual
Impactful Individual

Hello @Creative_tree88 
You can create two columns like
(Here 'Table1' is 'Lookup Data' and 'Table2' is 'Data' table)
PB1.pngPB2.png

Thanks & Regards ...

View solution in original post

1 REPLY 1
BIswajit_Das
Impactful Individual
Impactful Individual

Hello @Creative_tree88 
You can create two columns like
(Here 'Table1' is 'Lookup Data' and 'Table2' is 'Data' table)
PB1.pngPB2.png

Thanks & Regards ...

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.