MSDN

Measures and KPIs in Multidimensional Modeling

This document provides an in-depth guide to understanding and implementing measures and Key Performance Indicators (KPIs) within the context of SQL Server Analysis Services (SSAS) multidimensional models. Measures are the numerical values that users will query, and KPIs provide a standardized way to evaluate the performance of these measures against defined targets.

Understanding Measures

Measures represent aggregations of business data, typically found in fact tables. They are the quantitative aspects of your business that you want to analyze. Common examples include Sales Amount, Quantity Sold, Cost, Profit, and Employee Count.

Types of Measures:

Creating Measures:

Measures are typically created using SQL Server Data Tools (SSDT). You define the aggregation function (SUM, COUNT, MIN, MAX, AVG) and the source column.

For explicit measures, you can write custom MDX formulas. For example, to calculate Profit Margin:


CREATE MEMBER CURRENTCUBE.[Measures].[Profit Margin] AS
    ([Measures].[Internet Sales Amount] - [Measures].[Internet Sales Cost]) / [Measures].[Internet Sales Amount],
FORMAT_STRING = "Percent"
            

Understanding KPIs

Key Performance Indicators (KPIs) are specific, measurable values that demonstrate how effectively a company is achieving key business objectives. In SSAS, KPIs are built on top of measures and provide a way to track performance against goals.

Components of a KPI:

Creating KPIs:

KPIs are also defined within SSDT. You select the measure that will be the KPI's value, define the goal, and then configure the status and trend visualizations.

Important: Ensure that your measures are properly aggregated and that your goal definitions are clear and relevant to the business objectives you aim to track.

Example KPI Configuration:

Pro Tip: Use MDX to dynamically define goals based on seasonality, promotions, or other business factors to make your KPIs more adaptive.

Best Practices

Conclusion

Measures and KPIs are fundamental to building insightful and actionable multidimensional models in SQL Server Analysis Services. By carefully designing and implementing these elements, you empower business users to monitor performance, identify trends, and make data-driven decisions.

Further Reading: