Query for calculated measure by member name?

  • I'm simplyfing my issue by using a date hierarchy as the example since it's the same concept. How would I write an MDX query to get the sum of sales by month names (January, February, etc) across all the years?

    Thanks,

    Marcy

  • Something like the following is what you will need

    SELECT

    {[Measures].[Sales Amount] } * { [Calendar].[Month].members }

    ON COLUMNS,

    { [Calendar].[Year].members }

    ON ROWS

    FROM [Sales Cube]

    You will need to substitute the appropiate cube and dimension names

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply