Hi Karthik,
Can you provide more details of your time hierarchy, and of the approach
that you were trying to use? When trying to compute the difference
between dates in a hierarchy, you may be able to use the MDX Rank()
function, rather than DateDiff():
http://msdn2.microsoft.com/en-us/lib...S,SQL.90).aspx
Returns the one-based rank of a specified tuple in a specified set.
Syntax
Rank(Tuple_Expression, Set_Expression [ ,Numeric Expression ] )
Arguments
Tuple_Expression
A valid Multidimensional Expressions (MDX) tuple expression that
specifies the tuple to be ranked.
Set_Expression
A valid MDX set expression that specifies the set that contains the
specified tuple.
Numeric_Expression
A valid MDX numeric expression.
...
- Deepak
Deepak Puri
Microsoft MVP - SQL Server
*** Sent via Developersdex http://www.developersdex.com ***