564 attributed reviews in the last 3 years
Refreshingly small course sizes
Outstandingly good courseware
Whizzy online classrooms
Wise Owls only (no freelancers)
Almost no cancellations
We have genuine integrity
We invoice after training
Review 30+ years of Wise Owl
View our top 100 clients
How to create a data model in SSAS tabular
Part six of a seven-part series of blogs
The first - and most important - part of using Analysis Services (tabular mode) is to create a data model, incuding only those tables and columns you need. This lengthy blog shows you how to go about creating the perfect data model!
You can take the data model that you've created and analyse it in Excel:
Click on this tool to create a pivot table based on your data model.
The problem is that there's nothing to analyse!:
We can aggregate data by region and/or species, but there are no statistics to show!
To get round this, you need to create measures using the DAX expression language.
Much of this tutorial is given over to explaining how to write DAX expressions - for the moment, though, we'll just use a wizard to create basic statistics.
Complete the following steps to create a measure showing total quantity:
Click at the bottom of the column you want to analyse (step 1), then choose the statistic you want to create (step 2).
SSAS tabular will create a measure, and give it a default name:
This measure gives the total quantity - you can rename it by changing the text before the colon (:).
Here we've renamed the measure to TotalQuantity:
When you press the enter key, SSAS tabular will change the measure name.
You could follow a similar procedure to create a measure showing the average price for any combination of region/species:
Here we're changing the measure name to AveragePrice.
You can now choose to create a pivot table based on your data model in Excel:
Click on this tool to create a pivot table based on your model.
You can now choose to display the measures you've created in the pivot table field list:
Here we're showing the total quantity of transactions for each region and species.
I've now shown how to create and use a full data model. For the final part of this tutorial, I'll show how to make changes to your model if you realise you've done something wrong or omitted something.
|Parts of this blog|
25 Aytoun Street