0

I have two questions:

  1. My date dimention values are names instead of key. Is it possible to display key values for the date dimention in MDX. I know I can go inside the dimention and change the property of attribute to display key value instead of name. But I want to query the data without making any changes. My below MDX query is what I am trying:

    select [Measures].[Internet Sales Amount] on columns, non empty [Ship Date].[Date].[Date] on rows from [Mycube]

  2. How to get maximum date along with its amount. I am using filter function. The below query is still returning all records even after using filter function:

    select [Measures].[Internet Sales Amount] on columns, non empty filter([Ship Date].[Date].[Date],tail(nonempty([Ship Date].[Date].[Date], [Measures].[Internet Sales Amount])).item(0).item(0).MEMBER_KEY) on rows from [Mycube]

Thanks in Advance..

sam
  • 1,242
  • 3
  • 12
  • 31

0 Answers0