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 ...
Get MDX with Microsoft SQL Server 2016 Analysis Services Cookbook - Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.