SSAS - multidimensional | Writing MDX Queries exercise | Complicated MDX query for 2 shopping centres

This exercise is provided to allow potential course delegates to choose the correct Wise Owl Microsoft training course, and may not be reproduced in whole or in part in any format without the prior written consent of Wise Owl.

Software ==> SSAS - multidimensional  (21 exercises)
Version ==> SSAS 2008 R2 and later
Topic ==> Writing MDX Queries  (3 exercises)
Level ==> Harder than average
Subject ==> SSAS training
Before you can do this exercise, you'll need to download and unzip this file (if you have any problems doing this, click here for help).

You need a minimum screen resolution of about 700 pixels width to see our exercises. This is because they contain diagrams and tables which would not be viewable easily on a mobile phone or small laptop. Please use a larger tablet, notebook or desktop computer, or change your screen resolution settings.

Create a query which creates a named set called [Local Shopping Centres] to include the following members:

  • Snipe Retail Park
  • The Trafford Centre

Using this named set, extend your query to show total sales for these two centres for all of the dates in the Calendar Id level of the Calendar hierarchy, but using a WHERE clause to restrict data to the tuple given by:

  • the March 2010 member of the UK Month hierarchy of the Calendar dimension; and
  • the Owl member of the Animal Id level of the Classification hierarchy of the Product dimension

This should give total sales data for the two selected shopping centres for sales of owls in March 2010:

SSAS Analysis Services exercise - Writing MDX Queries (image 1)

What your query should return ...

You can precede an axis selection clause with the words NON EMPTY to omit completely null rows.

Save this query as March 2010 specific centres, then close it down.

You can unzip this file to see the answers to this exercise, although please remember this is for your personal use only.
This page has 0 threads Add post