Defining calculated measures

You can add calculations to the cube at any time by simply typing calculation definitions on the Calculations tab and saving the database. Cube-level calculations are stored in the MDX script, which you can review on the cube designer's Calculations tab. This tab has two views: Form View and Script View. The Form View is helpful in developing individual calculated members, calculated measures, and named sets. The Script View contains all calculations as a single script, which is essentially a collection of MDX statements separated by semicolons. Regardless of whether you use Form View or Script View, the Calculations tab includes the metadata—dimensions and measures as well as a list of all supported MDX functions ...

Get SQL Server Analysis Services 2012 Cube Development Cookbook 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.