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
h41rd0g
New Member

DateBetween with Specified Date

I'm currently trying to create a function where I can take a date, say May 30, 2018 and determine if it's inbetween two dates that are already inputted into a query. 

 

For example: 

- Start date is Column 1

- End date is Column 2

I want to write an equation that would give me a T/F output that would take the May date above and determine if it is inbetween those two columns. It would probably require a < x < equation or If(And()). further I want to take that equation and apply it to a graph that would show me all the dates in the data set that would come out as true from this equation. (Sorry if that doesn't really make sense). 

1 REPLY 1
Ashish_Mathur
Super User
Super User

Hi,

 

Share some data and show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

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.