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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamically going back six weeks from the date entered by the user

Status
Not open for further replies.

cnrk

Programmer
Jun 29, 2006
1
0
0
US
Hi,
I have a situation here like from BO report user enters a date. I need to get data for each week from that date going back 6 weeks. I have the logic in the BO universe but it is hindering the performance of the query. So I want to built this logic in the calendar dimension. Any ideas/thoughts?
 
This is going to sound naive, but why not add a column in the calendar dimension called "Six Wks Ago" and calculate the values using a sp or trigger each time a row is INSERTed into the calendar dimension?

-------------------------
The trouble with doing something right the first time is that nobody appreciates how difficult it was - Steven Wright
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top