The exact syntax depends on the structure of your date dimension. Here's
a working example for the Foodmart Sales cube. It selects the current
calendar month (11), but subtracts 7 from the current year, to select
1997 data:
Quote:
|
select {[Measures].[Unit Sales]} on columns,
|
{StrToMember("[Time].["
+ CStr(Year(Now())-7) + "].[Q"
+ CStr(CInt((Month(Now())-1)/3)+1) + "].["
+ CStr(Month(Now())) + "]")} on rows
from Sales
- Deepak
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!