WISE OWL EXERCISES
SSAS - MULTIDIMENSIONAL EXERCISES
SSAS - multidimensional | Hierarchies and Relationships 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.
You can learn how to do this exercise if you attend the course listed below!
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:
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:
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:
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!