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
Anonymous
Not applicable

Check if date is between two dates in another table?

Hi, my background is more excel than PBI but looking to create something similar to a vlookup.

 

I have two tables, Table 1 contains various dates, Table 2 contains a Start Date and End Date with a unique reference for each range of dates.

I would like to add the reference from Table 2 into Table 1 if the date lies equal to or between the two dates. I could do it in excel and import in but that wouldnt allow the report to run independently on PBI hence the ask.

 

Hoping there is a solution for this.

 

Thanks in advance.

Stuart

3 REPLIES 3
ribisht17
Super User
Super User

@Anonymous 

 

Sounds similar to the below, hope it helps!

Solved: Return value if date is between 2 dates in another... - Microsoft Power BI Community

 

Regards,

Ritesh

Anonymous
Not applicable

Thanks for the reply though im a bit confused trying to replace the info in the dax with my data.

 

My lookup reference table is WeeklyRef, the table with the date being looked up is LRSignOff.

 

Is it possible you could show this in DAX please?

Hi, @Anonymous 

 

Can you provide some sample data or simple pbix files? Sensitive information can be removed in advance. What kind of expected results do you expect? You can also show it with pictures.

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.