Create Restricted Accounts in Charts

In your SAP Analytics Cloud chart, you can create a measure (or account) that restricts the data from a member of the Account dimension or the Structure dimension by excluding certain members of one or more dimensions.

Accounts are numerical values on which you can use mathematical functions.

Restricted accounts can be useful for comparing one value to a set of other values in the same chart. For example, you can create an account that contains all expenses for the country of Australia, and compare expenses from Australia side by side with expenses for all other countries.

Create a Restricted Account or Restricted Structure

  1. Select a chart and then do one of the following actions to open the Calculation Editor:

    • Create a restricted account.

      In Builder, choose Start of the navigation pathAdd Account Next navigation step Calculations Next navigation step Add CalculationEnd of the navigation path.

    • Create a restricted structure.
      1. In Builder, in the Chart Add-Ons section, select Structure.

        A Structure section is added with the default dimension Measure Values.

      2. Select Start of the navigation pathAdd Structure Next navigation step Add StructureEnd of the navigation path.

    The Calculation Editor appears.

  2. Select Restricted Account from the list.

  3. Enter a name for the restricted account.

    In the Account section, select a measure from the list.

  4. In the Dimensions section, select one or more dimensions along which you want to restrict the measure.

    If you want to restrict the measure along more than one dimension, use Add a Dimension.

  5. Beside each dimension, under Values, choose an option from the list:

    • Select by Member:

      1. Select values from the list of available members.

        If you select Exclude selected members, all members except the ones selected will be included in the input control. You can use (Search) to find specific values. When you expand the list beside the search icon, you can choose to view the member Description, ID and Description, or ID.to find specific values.

      2. Expand the Settings for UsersSingle Selection, Multiple Selection, or Multiple Selection Hierarchy.

    • Select by Condition: use the set conditions dialog to specify conditions and restrictions.

      For more information, see Use Conditions to Apply Filters.

  6. For date dimensions, you can quickly specify a dynamic restriction based on the current date using these options:

    • Start of the navigation pathNAVIGATION Next navigation step Previous (shift previous value)End of the navigation path:

      This option shifts the values from a previous time period, letting you show them side-by-side with the current values. For example, you might select section, and then choose whether users can do the following actions in the input control: Year to see how your monthly values in the current year compare with the same months from the previous year.

    • Start of the navigation pathNAVIGATION Next navigation step To Date (running total)End of the navigation path:

      This option shows a running total of the values over the time period that you select. For example, you might select Year to see the year-to-date (YTD) values for each month next to the monthly values.

    • Start of the navigation pathSELECTION Next navigation step Current Time IntervalEnd of the navigation path:

      This option sets a dynamic range filter that selects the current period. Choose Full Time Interval to select all dates of the current period, including those in the future. Choose To Date to select dates from the start of the current period up to the current date. Next, choose the granularity.

    • Start of the navigation pathSELECTION Next navigation step Previous Time IntervalEnd of the navigation path:

      This option sets a dynamic range filter that selects the previous period. Choose section, and then choose whether users can use the Full Time Interval to select all dates of the previous period. Choose To Date to create a filter such as year to date that’s offset to the previous period. Next, choose the granularity.
    • Create a New Calculation Input Control (This option is available when adding a calculation to a chart.)

    • Select OK.

An account is created that does not include data for the members that you excluded. Any input controls that you created appear on the canvas and are listed in the Calculation Editor under Input Controls. Input controls can also be used in calculated accounts.

Create a Calculation Input Control

You can choose to create a calculation input control for your calculated account.

  1. Under Input Controls, select Create New.

  2. Enter a name for the input control.

  3. Select Existing Dimension to allow users to pick from members of a dimension, or Static List to add custom values as options for the input control.

  4. Select OK.

    The input control you created appears under Available Objects.

  5. Select the input control to add it to a formula.

Existing Dimension

Static List

  1. Select a model and a dimension.

  2. In the Input Values section, select Click to Add Values and choose either Select by Condition or Select by Member.

    • Select by Condition: use the set conditions dialog to specify conditions and restrictions.

      For more information, see Use Conditions to Apply Filters.

    • Select by Member:

      1. Select values from the list of available members.

        To exclude one or more members, select All Members, and then deselect the checkbox for each member that you want to exclude.

      2. Expand the Settings for Users section, and then choose whether users can do the following actions in the input control: Single Selection, Multiple Selection, or Multiple Selection Hierarchy.

  3. Select OK.

In the Input Values section, select Click to Add Values and choose either Select by Range or Select by Member.

  • Select by Range: specify a range for a numeric slider.

    1. To create a numeric slider, enter the Min and Max values for your range in the Set Values for Custom Range dialog.

      You can optionally set an Increment value for the slider.

    2. Select OK.

  • Select by Member: create an input control based on a defined set of members.

    1. To create a member based input control, add numeric values to the Custom Members area in the Select Values from Custom LOV dialog, and then select Update Selected Members.

    2. Expand the Settings for Users section, and then choose whether users can do the following in the input control: Single Selection, or Multiple Selection.

    3. Select OK.

On the canvas, input controls are indicated by the (Formula) icon. If you hover over the icon, all calculations associated with the input control are displayed. By default, the input control is displayed in token mode where input values can be selected from a drop-down list. The input control can be expanded into widget mode, where radio buttons appear beside each value.

Constant Selection

When Constant Selection is disabled, the restricted account value is influenced by chart, page, and story filters, as well as categorical axis values. This is the default setting.

When Constant Selection is enabled, the restricted account value is determined by the values you specify in the Calculation Editor and will remain constant. Enabling constant selection is useful for comparing a single value with several different values. For example, you could create a restricted account for sales in 2012, and then compare sales in 2012 with sales for all other years in the same chart.