Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date Variable

Status
Not open for further replies.

WhoaNelly

Technical User
Joined
Aug 5, 2005
Messages
2
Location
US
How do I write a query that only returns data if the transaction took place in the last 10 months? It needs to be a 'rolling' 10 months as I don't want to come back in here and redo it every month.


TIA
:)
 
I think the best way to achieve this is by creating a view on the database and adding a filter on there to say they only have to take the last 10 months.
 
I would do that, but then the client machine would freeze b/c it's such a large amount of data.

Thank you
 
it really depends on how the data should appear to the front end user you can create a Calculated member which will some up the Past 10 months into a single value or you can create a Calculated set. Within the calculation you can use a filter where the date is between today minus 10 Time.Months.CurrentMember and Time.Months.CurrentMember - 10 this is done easier if you carry member properties with a unique Identifier from each Month Year set so todays month may be 33 and 10 months ago would be 23.

Shoot Me! Shoot Me NOW!!!
- Daffy Duck
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top