Re: Problem with creating Date Range in MDX till Day level . -
09-13-2006
, 11:02 AM
If you're using AS 2005, you can create multiple hierarchies in a
dimension; so an easier solution will be to create an alternate date
hierarchy without month, like:
Date
-Year
-Quarter
-Week
-Day
More details of the Date hierarchy, level and member names would be
useful, but something like this might work:
{Head(Filter(Descendants([Date].[Year].[2006],
[Date].[Day]),
[Date].Parent.Name = "Week1")).Item(0).Item(0)
: Tail(Filter(Descendants([Date].[Year].[2006],
[Date].[Day]),
[Date].Parent.Name ="Week 9")).Item(0).Item(0)}
- Deepak
Deepak Puri
Microsoft MVP - SQL Server
*** Sent via Developersdex http://www.developersdex.com *** |