O'Reilly logo

MDX with Microsoft SQL Server 2016 Analysis Services Cookbook - Third Edition by Sherry Li, Tomislav Piasevoli

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required