Filtering Data in Stories

Objective

After completing this lesson, you will be able to filter data in stories.

Story Filters

Use story filters to narrow the scope of your analysis. Story filters allow you to apply filters for all charts in a story that are based on the same model. They are used for specific dimensions or measures and can apply to all components of a story.

Page filter location above all story pages

Widget Filters

While defining a widget in the Builder panel, you can pre-filter the data that the widget displays in the Filter area.

Widget filter definition in the Builder pane

Prompts/Variables

A data source for a chart or table may prompt you to select dimension members before data can be displayed. If the data source you select to create a chart or table has prompts or variables to be set, a prompt will appear when you create the first chart or table that uses the data source. After the responses to the prompts/variables are set, the information you provide will be used by all tables and charts that use the same data source.

Input Controls

Input controls are page filters that allow story viewers to filter data, compare figures, and explore relationships directly from a story page. When selecting All in an input control, only dimension members that have values in the underlying model are selected, or Booked members. Unbooked members (members that have no measure values associated with them) are not displayed. In other words, All does not necessarily select all possible dimension members.

It is also possible to use an input control to exclude members from the data analysis. When the user selects a member, its value will not appear in the widget, but all other members' values will.

Adding Input Controls to a Story

Watch this video to learn how to create input controls.

Use Story Filters and Input Controls

Business Scenario: You have created story for gross profit per product and you want to be able to analyze your data based on currency and year. You decide to customize the story by adding a filter for currency and an input control for year.

Task Flow: In this practice exercise, you will:

  • Add a filter to a story
  • Insert and configure an input control

Time Series Chart Filter Options

The time series chart has a built-in time filtering mechanism allowing users to change the time frame display in the chart.

In your time series chart, you can show the absolute value of a measure for any given data point, or you can show the relative percentage difference over time.

Time series chart with built-in date filter

In addition, the relative difference can calculated from the first visible data point to all other visible data points. When the time frame is adjusted (moved, shrunk, or stretched), the relative differences are updated.

Use the Time Series Chart with Measure Input Controls

Business Scenario: You need to create a time series chart with information for gross margin, product count, and sales revenue. You want to add and configure a measure input control so that the story viewer can select the measure that they would like to display in the chart.

Task Flow: In this practice exercise, you will:

  • Create and configure a times series chart
  • Add and configure an account input control
  • Add and configure an input control for a date range

Component Filters

Component filters are used to filter data visualized in a component, and can be a single filter or a predefined filter like a ranking. You can right-click on a bar in a chart or a row in a table and choose Filter to limit the data.

In the following example, a filter is applied in the Discount, Gross Margin per Product chart to filter by one specific product.

Filter directly on a widget by right-clicking

Filter by Hyperlinks

In filtering by hyperlinks, you have the option to set filters to jump from one page to another, to a different story, or to an external website. For example, as shown in the following figure, you can set a filter to jump to a page in a story. If you select Apply Selected dimension as filter, your selected cell is passed as a filter value to the Link to specifications.

Jump target displaying data only for the region selected

Create a Filter Using Hyperlinks

Business Scenario: You have created story and you would like to create a chart-to-chart filter, where you insert a hyperlink on the third page of the story that will take the user to the first page of the story to view filtered data.

Task Flow: In this practice exercise, you will:

  • Add a hyperlink chart add-on to a story from the builder pane
  • Configure the hyperlink to use selected dimensions as a filter
  • Use chart-to-chart filtering to filter data using the hyperlink

Linked Analysis

Linked analysis is similar to filtering by hyperlinks in that you can use one widget to filter others. The primary difference is that this functionality filters only the story where Linked Analysis is defined. In other words, you cannot link to another story or external web site.

Linked analysis is available when working on multiple widgets and a single model. Linked analysis can also be used for widgets from different models as long as the models are blended. Blending is covered in an upcoming lesson.

Using Linked Analysis Options

Watch this video to learn about how to configure and work with linked analysis options in SAP Analytics Cloud.

Use Linked Analysis to Filter Data

Business Scenario: You have created a story containing a chart for sales revenue by product category, one for gross margin by product, and a table containing gross margin by region. You want to be able to filter in one chart or table and have the other filter to the same information.

Task Flow: In this practice exercise, you will:

  • Set up a linked analysis for a chart to filter by product category
  • Set up a linked analysis for a table to filter on data point selections

Advanced Filters

Advanced filtering allows you to create story and page filters based on multiple dimensions by defining a set of logical conditions.

The dimensions used in advanced filtering can be filtered by using AND or OR conditions. These conditions can be set to include or exclude the data that satisfies the filter conditions.

The following figure illustrates advanced filters defined to return United States data for all years and overseas data only for 2018.

Advanced filter dialog

Additional Information

For more information on advanced filtering, watch this video tutorial.

Apply Advanced Filters

Business Scenario: You have created a story and need to apply filters to show USA data for all years but only 2017 data for overseas.

Task Flow: In this practice exercise, you will:

  • Add an advanced filter to a story
  • Set the advanced filter conditions by entity and date

Cascading Filters

With cascading filters, selections you make to a filter affect related filters in the same story or page. For example, if you have both Country and Region filters on a page, and you change the Country filter value from All to Sweden, the Region filter updates to show only regions within Sweden. All other region names are hidden.

This cascading filter effect is applied by default. You can turn it off in the More Actions options for a specific filter or input control.

Filter options for Location filtered to the selected APJ Region only

Use Cascaded Filtering

Business Scenario: You need to create table and filter data by region and location. You decide to use input controls so that you can view data quickly by using the cascaded filtering functionality.

Task Flow: In this practice exercise, you will:

  • Add input controls and configure them to filter on region and location
  • Use the cascaded filtering functionality

Log in to track your progress & complete quizzes