Export Chart and Table Data from Stories

As the consumer of an SAP Analytics Cloud story, you can export the underlying data to external file formats for further examination for charts (CSV) and tables (CSV, Microsoft Excel, and PDF).

Video Overview

Open this video in YouTubeInformation published on non-SAP site

How to Export Chart Data to CSV

You can export both acquired and live data from a chart as a CSV file. Note that live data may take some time to export because it must be downloaded before it can be exported.

Procedure

  1. Verify that the format for numbers and separators are the same for the underlying model of the chart to be exported and your local machine (for example, 123,456.78).
    • On a PC, in the Control Panel, go to Start of the navigation pathClock, Language, and Region Next navigation step Region Next navigation step Additional SettingsEnd of the navigation path.

    • On a Mac, in the System Settings, go to Start of the navigation pathGeneral Next navigation step Language and RegionEnd of the navigation path.

  2. In view mode for the selected story, choose a chart that contains data.

    Any applied filters will be applied in the final file.

  3. Choose Start of the navigation path (More Actions) Next navigation step More Options Next navigation step End of the navigation path Export....
  4. In the export dialog, provide a name for your CSV file.
  5. Choose a CSV Delimiter (column separator).
  6. If you want the scaling, units, and currencies formatting to exactly match what is in the chart, select Include formatting.

    For example, if the chart shows $12.04 Million, that is how the value will be exported, even if that is a rounded value.

    If you don't include the formatting, your values are exported as unformatted numeric values.

  7. To include story information in the export, select Enable appendix.

    This includes the story URL, owner, model names, story variables, story filters, widget filters, and (optionally) the export time and date.

  8. Select Export.

Results

Depending on your browser settings, your file is automatically saved, or a dialog opens for you to choose where to save your file.

The notification dialog provides information on the export progress or completion. It also allows you to cancel the export.

All chart data is included in the CSV file, not just the currently visible data. For example, if your chart has a hierarchy, all the nodes of the hierarchy will be exported, even if you have not drilled down on the data in your chart (except for time series charts, which include only the currently selected level).

The following restrictions apply to chart exports:

  • Formatting (such as cell color, font styles, and so on) is not exported.

  • Hyperlinks are removed.

  • Hierarchies are flattened.

  • SAP Analytics Cloud profile settings do not influence the format of the exported data.

  • There is no export of BW display attributes.

How to Export Table Data to CSV, XLSX, or PDF

You can export both acquired and live data from a table as a CSV, XLSX, or PDF file. Note that live data may take some time to export because it must be downloaded before it can be exported.

Procedure

  1. Verify that the format for numbers and separators are the same for the underlying model of the table to be exported and your local machine (for example, 123,456.78).
    • On a PC, in the Control Panel, go to Start of the navigation pathClock, Language, and Region Next navigation step Region Next navigation step Additional SettingsEnd of the navigation path.

    • On a Mac, in the System Settings, go to Start of the navigation pathGeneral Next navigation step Language and RegionEnd of the navigation path.

  2. In view mode for the selected story, choose a table that contains data.
  3. Choose Start of the navigation path (More Actions) Next navigation step End of the navigation path Export....
  4. For File Type, choose CSV, XLSX, or PDF .
  5. In the export dialog, provide a name for your file.
  6. Select a Scope of either Point of View to export only what is visible in the table or All to export all data, regardless of what is shown (for example, collapsed hierarchies or hidden columns).

    The selected scope will affect what data and how many cells will be exported. For details, see Understand Scope Options for Table Export.

  7. Define the following settings, depending on the selected file type and scope:

    CSV

    XLSX

    PDF

    • If you want to maintain the scaling, units, and currencies formatting defined in the models and story (Point of View) or in the models (All), select Include formatting.

    • (Point of View only) To flatten any hierarchical data, select Flatten hierarchy.

    • Choose a CSV Delimiter (column separator).

    • If you want to maintain the scaling, units, and currencies formatting defined in the models and story (Point of View) or in the models (All), select Include formatting.

      • If you want to format exported cells as text, select Format as General.

      • If you want to keep Excel cell formatting, you can select Format as True Value Type.

        Selecting this option ensures that exported cells retain Excel formatting, such as Currency, Unit, Percentage, Scale Format (Thousand (k), Million (m), and Billion (bn)), Date, Time, and decimal place and separator.

        This feature is available for the Point of View and All scope.

    • (Point of View only) To keep the hierarchical indentation for the data labels, select Keep hierarchical indentation.

    • Choose an Orientation of Landscape or Portrait.

    • Choose a Paper Size of A2, A3, A4, A5, Letter, or Legal.

    • Insert page numbers, either at header or footer.

    • Select Include Non-ASCII characters so that Non-ASCII characters can be exported to PDF. Currently, Chinese, Japanese, and Korean characters are supported. You also need to switch to the corresponding language in your profile settings.

  8. To include story information in the export, select Enable appendix.

    This includes the story URL, owner, model names, story variables, story filters, widget filters, and (optionally) the export time and date.

Results

Depending on your browser settings, your file is automatically saved, or a dialog opens for you to choose where to save your file.

The notification dialog provides information on the export progress or completion. It also allows you to cancel the export.

The table data included in the output depends on the scope defined in the settings. See Understand Scope Options for Table Export.

The following restrictions apply to table exports:

  • Formatting (such as cell color, font styles, and so on) is not exported.

  • The exported data has the same number of decimal places as are shown in the table. To include all seven decimal places, in the Styling panel, select Decimal Places and change the value.

  • Hyperlinks are removed.

  • Hierarchies are flattened.

  • Only the table data region is exported.

    If you want to include custom cells that are outside the table data region, you need to select all the cells, copy them, and then paste them into Excel after the export is complete.

  • Only a table that is on the current active page is exported if you are using script APIs.

  • The maximum volume of exported table data depends on the result set limit of data model itself in addition to the export limit. For the result set limit in SAP Datasphere, refer to SAP Note 2770570 Information published on SAP site“Error message "The select returned more records than the limit in MaxResultRecords" / MDS Cube resultset & cell size limit”.

Learn More...

Consider the following when exporting your chart or table data.

Import CSV Files into Excel to Preserve Numeric Formatting

If you have data columns that contain only numeric values (such as ID columns, zip codes, or data with leading zeros), you will need to import your CSV file into Excel. If you try to open it directly in Excel, the numeric columns will be treated as numbers, not text.

  1. Make a note of where you saved the CSV file, but do not open it.

  2. Open Excel 365. If you have an older version of Excel, the following steps may be slightly different.

  3. Select the Data tab.

  4. Select From Text/CSV.

  5. In the Import Data dialog, select the CSV file to import and select Import.

  6. In the Text Import dialog, from the File Origin list, select Unicode (UTF-8).

  7. Select Transform Data.

  8. In the Power Query Editor, find a column that needs the data type to be changed.

  9. In the column header, right-click, select Change Type, and then select Text. When the prompt appears, select Replace Current.

  10. Repeat the process for each column that needs to have its type changed.

  11. When you are finished, from the menu, select File > Close and Load.

  12. Save your file as an Excel file.

Understand Scope Options for Table Export

When exporting table data, you can choose the scope of your CSV or XLSX file export to be either Point of view or All. The scope dictates what data and how many cells will be exported.

Scope Information

Scope

Point of View

All

Description

Exports what you see in the table data region (all the visible rows and columns).

This includes visible comment columns, story/model calculations, and hierarchy levels in separate columns.

Exports all the data, not just the currently visible data.

Hierarchies of visible dimensions are expanded. If your table has a hierarchy, all the nodes of the hierarchy will be exported, even if you have not drilled down on the data in your table.

Restrictions and notes

When there are too many rows or columns in your table, you will get a drill limitation warning.

To export more data, do the following:

  1. Select the warning icon in your table.

  2. In the warning message, select Edit Drill Limitation.

  3. In the Edit Drill Limitation dialog, select Unlimited.

  4. Select OK.

The following are not included:

  • Visible content applied to the table such as added row or column calculations, data point comments, dimension comments, or unit/scale rows or columns

  • Properties such as extra rows or columns shown in the table visualization for the IDs or descriptions of dimension members

  • SAP BW display attributes

The following are included:

  • Rows or columns which are hidden from the table visualization

  • Filters

SAP Analytics Cloud profile settings and number format settings in the styling panel do not influence the format of the exported data.

Restrictions Specific to Scope and File Type

File Type

Point of View

All

PDF

There are no specific restrictions, although browser, memory, and personal computer restrictions can still apply.

You cannot export more than 3 million cells or 60 columns.

CSV

XLSX

You cannot export more than 500 thousand cells.

You cannot export more than 3 million cells or 60 columns.

Only the following data model types are supported:

  • SAP Analytics Cloud acquired

  • SAP HANA live

  • SAP BW live

Convert Text for Exported Data in Excel

If you have characters such as parentheses or the percent sign in your exported data, Microsoft Excel may treat your numeric data as text and align it to the left instead of the right.

To correct the formatting:

  1. In Excel, select the column that is incorrectly formatted.

  2. From the ribbon menu, select Data > Text to Column, and then select Finish.

  3. From the ribbon menu, select Home, and then apply the correct number formatting.