Hi all,
I want to get the minimum and maximum among the members of a dimension attribute. This attribute is a date. Can anybody give me a sample MDX query for this..
Regards...
Girija Shankar Beuria
Code Snippet
with member [Measures].[Min Date] as
MIN([Date].[Date].[Date].Members,[Date].[Date].CurrentMember.MemberValue)
member [Measures].[Max Date] as
MAX([Date].[Date].[Date].Members,[Date].[Date].CurrentMember.MemberValue)
select
{[Measures].[Min Date],[Measures].[Max Date]} on 0
from [Adventure Works]
;
 
No comments:
Post a Comment