Filtering Data

Adding Restricted Measures

Objective

After completing this lesson, you will be able to create restricted measures in an SAP Analytics Cloud table by defining base measure and dimension restrictions, enabling side-by-side comparison of multiple data segments in a single view.

What Is a Restricted Measure?

In SAP Analytics Cloud, a measure is a numerical value — such as Revenue, Cost, or Gross Margin - that the model calculates and aggregates across dimension members. By default, when you add a measure to your table, it displays the aggregated value for all data that the current table configuration allows.

A restricted measure is a type of calculation that always returns values for a specific subset of dimension members. You define this subset by applying one or more dimension filters when you create the restricted measure.

Restricted measures in the add-in are local to the table in which they are created. They are not shared across other tables or other worksheets in the workbook. You can also use an existing restricted measure as the source for another restricted measure to build more granular segmented views.

Note

Depending on the model type, the feature is labeled differently in the add-in. For analytic models that use standard measures, the option is called Add Restricted Measure. For planning models that use an Account dimension, the option is called Add Restricted Account.

How Restricted Measures Differ from Table Filters

Understanding the difference between a restricted measure and a standard table filter helps you choose the right approach for your analysis.

When you apply a filter to your table - for example, a member filter that limits the Category dimension to Juices - you change the data scope for all measures in the table at once. Every measure then shows values for Juices only. This approach adjusts the entire table view.

A restricted measure works at a different level. It restricts data at the measure level, not at the table level. This means you can display multiple restricted measures in the same table, each returning values for a different subset of the same dimension. You can place Gross Margin – Juices, Gross Margin – Water, and Total Gross Margin as separate columns in a single table - without applying any table filter.

This side-by-side comparison is the core benefit of restricted measures. They allow you to analyze several segments simultaneously in a single view, without repeatedly filtering and re-filtering the table.

Two table diagrams contrast a Filter (highlighting all columns) versus a Restricted Measure (highlighting only Gross Margin - Juices and Gross Margin - Water columns).

Creating a Restricted Measure

To create a restricted measure, open the Designer panel and locate the Columns section. Select the More button next to the measure or account already displayed in the columns. In the context menu, choose Add Restricted Measure or Add Restricted Account, depending on your model type.

Add Restricted Account option highlighted in the SAP Analytics Cloud panel's Columns context menu within Excel

Configuring the Restricted Measure

The Restricted Measure panel provides the following settings to define a base measure and its dimension restrictions.

SAP Analytics Cloud panel for a Restricted Account named Gross Margin - Juices with Account set to Gross Margin and Product dimension filtered to Juices

Complete the following fields:

  • Name

    Enter a descriptive name for the restricted measure. The name must be unique within the table. It appears as the column header in your table.

  • Description

    Add a note to explain the purpose of this restricted measure.

  • Measure / Account

    Select the base measure on which the restriction applies - for example, Gross Margin.

  • Dimensions

    Add one or more dimensions. For each dimension, specify the member or members to include in the restriction - for example, Dimension Category, member Juices.

Choose Apply and Close to confirm. The add-in adds the restricted measure as a new column in your table and refreshes the data automatically.

Summary

Let's summarize what you've learned:

  • Restricted measures return values for a specific subset of dimension members.
  • They restrict data at measure level, while table filters affect all measures.
  • Use restricted measures to compare segments side by side in one table.
  • Restricted measures are local to the table where you create them.
  • Create them from the Designer panel by selecting a base measure and dimension members.