Add Data to Stories

You can add data from existing models, connect to models from external data sources, or add data from a local file.

When you import data into a story, a “private” or “embedded” entity is created in the background. This entity contains your data structures - dimensions, measures, and dimension attributes such as descriptions or hierarchy information. The imported data is embedded in the story as a self-contained entity. It will not appear in the folder list for use with other stories.

The source data can be your own data from local or server-based files, or from supported data sources.

When importing data into a story, the import process analyzes the source data and creates an initial inferred data view with proposed dimensions and measures. You then further refine the proposal by geo enriching dimensions, specifying certain columns as either dimensions or measures, and fixing any data-quality problems.

The overall workflow for adding data to a story involves the following:

  1. Import your data.

  2. Optional: specify descriptions or hierarchies for the dimensions, or specify a column to be a measure.

  3. If necessary, cleanse your imported data and fix any data-quality problems. For more detailed information about preparing data, see About Data Wrangling, Mapping, and Transformation in Datasets.

  4. Embed the dataset by saving the story, or by switching from Data to Story view.

Data Preparation

SAP Analytics Cloud supports two data preparation experiences: agile and basic data preparation.

Agile Data Preparation

The agile data preparation experience is geared towards datasets consumption for adhoc and flexible analysis. This is the default experience for adding data to a story. You can import and immediately use data to create visualizations within your stories. Using this experience, you can smoothly move between the data and the story layout views. You can quickly edit the imported data to suit the changing requirements of your story creation process. Other benefits of this agile data preparation experience:
  • Data structures and data types are inferred during the initial data import, letting you immediately start working on story layout.

  • A Dataset Overview panel listing all the dimensions and measures included in the imported dataset is displayed. You can use this panel to make some quick changes to your data structures.

  • You can immediately consume the imported data and any consequent data modifications to charts and other visualizations in your stories.

  • You can easily create level hierarchies based on the imported dimensions.

  • Unresolved data quality issues will not prevent you from consuming unaffected data cells to create charts and other visualizations.

For more information about datasets, see About Datasets and Dataset Types.

Basic Data Preparation

The basic data preparation experience is more suited to models, where data structure is a paramount consideration. These scenarios include working with live data where structure is defined by the source of data, and governed data that is centrally controlled. You can launch this experience after importing your data. Under the Save toolbar, choose Open With Basic Data Preparation.

Compared to the agile data preparation experience, the basic data preparation experience also supports the following functionalities:
  • Appending data to an existing embedded dataset.

  • Mapping newly uploaded data into an existing dataset.

  • Acquiring data from a Dow Jones data source.

  • Using multiple headers when performing a transformation to convert columns to rows.

  • Using Smart Insights when working with variance chart.

  • Building a parent-child hierarchy.

Add Data to a New Story

You can import and immediately use data to create visualizations within your stories.

Procedure

  1. From the (Main Menu), choose Stories, and choose Canvas.
  2. From the toolbar, choose and Add New Data.
  3. In the data selection dialog, select one of the following options:
    • Model or Dataset: Use this option to select existing models or datasets.

    • Data Source: Use this option to upload data stored in a supported SAP or external data source. For example, SAP HANA.

      In the dialog, the list of data sources is automatically filtered to display the data sources for which a connection has already been preconfigured on the system. Next to the data source type, you can also see the number of connections available. To see all connections, choose  and uncheck Enabled Data Sources Only.

      If the data is stored in SAP Datasphere, select a live connection in the model selection dialog, and then select an analytic model, a view (analytical dataset), or a perspective. For more information on how to leverage SAP Datasphere data in stories, check Live Data Connections to SAP Datasphere.
    • File: Use this option to upload data from an Excel or CSV (comma-separated-values) file stored on your device.

  4. If you have uploaded an Excel or CSV file, the application displays a data preview dialog where you can visualize the first 1000 rows of data you are about to add to the story and the corresponding dimensions and measures that have been created. Do one of the following:

Add Data to an Existing Story

You can add additional data to existing stories.

Procedure

  1. In Edit mode, choose (Data) from the toolbar on the right.
  2. From the toolbar, choose and Add New Data.
  3. In the data selection dialog, select one of the following options:
    • Model or Dataset: Use this option to select existing models or datasets.

    • Data Source: Use this option to upload data stored in a supported SAP or external data source. For example, SAP HANA.

      In the dialog, the list of data sources is automatically filtered to display the data sources for which a connection has already been preconfigured on the system. Next to the data source type, you can also see the number of connections available. To see all connections, choose  and uncheck Enabled Data Sources Only.

      If the data is stored in SAP Datasphere, select a live connection in the model selection dialog, and then select an analytic model, a view (analytical dataset), or a perspective. For more information on how to leverage SAP Datasphere data in stories, check Live Data Connections to SAP Datasphere.
    • File: Use this option to upload data from an Excel or CSV (comma-separated-values) file stored on your device.

  4. If you have uploaded an Excel or CSV file, the application displays a data preview dialog where you can visualize the first 1000 rows of data you are about to add to the story and the corresponding dimensions and measures that have been created. Do one of the following:

Replace a Dataset in a Story

You can now replace any public or private dataset in your story with another public dataset.

Context

When you replace the dataset in your story, the configuration of all the widgets in your story is preserved. This means there's no need to rebuild your charts and tables.

Your new dataset must contain all the measures and dimensions, and the same measure and dimension names and types as your original dataset. However, your new dataset can also contain additional measures and dimensions not found in the original dataset.

Procedure

  1. Open a story in Data view.
  2. Choose beside your current dataset name.
  3. Choose to open the Select Dataset dialog.
  4. In the (Search) field, type the name of the new dataset with which you'd like to replace your current dataset, and select it from the list.
  5. A Replace Dataset dialog appears informing you about the potential differences in your story after replacing the dataset. Choose OK.
    You have replaced the dataset in the story.
  6. Choose (Save) to save your story based on the new dataset.

Results

You have replaced the dataset.