Exercise: Group shopping centres into bands, by size

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 - tabular  (29 exercises)
Topic ==> The EARLIER Function  (1 exercise)
Level ==> Harder than average
Course ==> SSAS - Tabular Model
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.

This exercise assumes that you have a base model set up (see one of the many other SSAS tabular exercises on loading tables from the MAM database and creating a model).

Open the Word document in the above folder, and paste it into your model to create a new table:

Categories table

The new table, which is here called Categories.


Create a calculated column in the Centre table to give the value of the category by using this logic:

Show the value of the CategoryName column from the Category table where this centre's number of units is less than the upper amount but also greater than or equal to the lower.

If you succeed (and there are many things which can go wrong!) you should be able to create this pivot table:

Sorted pivot table

Just to ice the cake, the sizes have been sorted correctly.

If you want to keep a copy of what you've done, use DAX Editor to create a copy of your measures with extension .dax called Mind-expanding DAX, and save your workbook with the same file name.

This page has 0 threads Add post