O'Reilly logo

MDX with Microsoft SQL Server 2008 R2 Analysis Services: Cookbook by 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

Calculating parallel periods for multiple dates in a slicer

In the recipe Calculating the YoY (Year-over-Year) growth (parallel periods), we've shown how the ParallelPeriod() function works when there's a single member involved. In Calculating parallel periods for multiple dates in a set, we've showed how to do the same, but on a range of members defined in a set. This recipe presents the solution to a special case when the set of members is found in slicer.

Getting ready

We'll use the same case as in the previous recipe; we'll calculate the growth in the pre-Christmas season for each color of our products.

Start SQL Server Management Studio and connect to your SSAS 2008 R2 instance. Click on the New Query button and check that the target database ...

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