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

Finding the last date with data

In this recipe we're going to learn how to find the last date with data for a particular combination of members in the cube. We'll start with a general calculation, not dependent on the time context and later show how to make it time-sensitive, if required so.

Getting ready

Open Business Intelligence Development Studio (BIDS) and then open Adventure Works DW 2008 solution. Double-click the Date dimension found in the Solution Explorer. Select the Date attribute and locate the property ValueColumn in the bottom of the Properties pane.

Getting ready

There's a value in that property. Column FullDateAlternateKey, of the Date type, is ...

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