Jump to content

Date Filter help required


Recommended Posts


I want to be able to filter by date looking back 6 months. I then want to include data from 12 months, 18 months, 24 months etc

How would i do this without having to repeat myself? Currently i am using the below and then repeating it



between dateadd(dd,-189,getdate()) and dateadd(dd,-183,getdate())

between dateadd(dd,-373,getdate()) and dateadd(dd,-366,getdate())


Thanks in Advance,

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...