Quantcast
Channel: SQLServerCentral » Data Warehousing » Analysis Services » Latest topics
Viewing all articles
Browse latest Browse all 1341

Date value associated with a max value of a measure at the lower level.

$
0
0
Hi,Looking for an mdx statement to get a member value of a Hierarchy corresponding to the MAX value of a measure. For example My date hierarch is Year - Month - Date.My measure is x. So when I am looking at the data on a Month level I need to display the date value where x is maximum.The below expression will give me the max date value associated with a measure at that level. TAIL( NONEMPTY( [Date].[Date].[Date] ,[Measures].[x]),1).Item(0).MemberValueBut I need the date value associated with a max value of a measure at the lower level.Any response will be greatly appreciated.ThanksJay

Viewing all articles
Browse latest Browse all 1341

Trending Articles