Analyzing the fluctuation of customers
Every company takes care of its customers, or at least it should, because it is relatively easy to lose one while it's much harder to acquire a new one.
There are many ways to perform analysis on customers. In this recipe, we are going to highlight a few techniques that allow us to get some easy-to-understand indicators:
The number of loyal customers
The number of new customers
The number of lost customers
Which customers are in a particular group
The idea is pretty simple to understand, so let's start.
Getting ready
Start SQL Server Management Studio and connect to your SSAS 2016 instance. Click on the New Query button and check that the target database is Adventure Works DW 2016.
In this example, we're going to use the Customer
and Date
dimensions and the Customer Count
measure, which can be found in the Internet Customers
measure group. Here's the query we'll start from:
SELECT { [Measures].[Customer Count] } ON 0, { [Date].[Calendar].[Calendar...