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 set

In the recipe Calculating the YoY (Year-over-Year) growth (parallel periods) we've shown how the ParallelPeriod() function works and how it can be used to calculate the YoY growth. All we had to do is specify a member, ancestor's level, and an offset, and the parallel member was returned as a result.

OLAP works in discrete space and therefore many functions, ParallelPeriod() included, expect a single member as their argument. On the other hand, relational reports are almost always designed using a date range, with Date1 and Date2 parameters for that report. As the relational reporting has a longer tradition than multidimensional, people are used to thinking that way. They expect many multidimensional ...

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