Exercise: Create unnatural hierarchy (age band/gender)

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.

The answer to the exercise will be included and explained if you attend the Wise Owl course listed below!

Category ==> SSAS - multidimensional  (21 exercises)
Topic ==> Hierarchies and Relationships  (2 exercises)
Level ==> Average difficulty
Course ==> SSAS - Multidimensional
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.

The aim of this exercise is to be able to filter a cube:

SSAS Analysis Services exercise - Hierarchies and Relationships (image 1)

We want to be able to filter a cube by a dimension based on an unnatural hierarchy

When you browse this cube using the filter shown above, it should show the following quantities of products purchased by region and age band:

SSAS Analysis Services exercise - Hierarchies and Relationships (image 2)

The figures you should get for the filter above

If yoiu're using Analysis Services 2012 or later, you'll need to analyse your cube in Excel to see a pivot-table-style view of it similar to the one shown above.

To create this cube:

  • Create a data source view to include the dimProduct, dimStore and msrTransaction views
  • Create a straightforward dimension of Stores, including the usual location hierarchy
  • Create a dimension of Products, to include an unnatural hierarchy as shown below

Note that you won't be able to get rid of the wavy line underneath the Products dimension hierarchy you create, since the underlying relationships don't exist:

SSAS Analysis Services exercise - Hierarchies and Relationships (image 3)

Your products hierarchy shows sales by target gender and within that by target age range

You should now be able to create, filter and browse the cube as shown at the start of this exercise!

This page has 0 threads Add post