Upload Data Using Upload Jobs

As a modeler, you can set up template files as upload jobs that business users can then reuse in stories to upload data.

This way, they can leverage their data planned offline and stored in local Excel or CSV files quickly in stories in SAP Analytics Cloud.

The template file acts as a structure with mappings that business users cannot edit, with wrangling operations available only in the modeler. This represents a safe and consistent way for business users to upload data in their stories.

After the planning modeler has created a template file and the story designer has created a data upload starter, the end user can then use the data upload starter to add data to the story. See Run Data Actions, Multi Actions, and Data Upload Actions for more information.

Create an Upload Job

Context

Procedure

  1. Open a model for which you want to create a template.
  2. Switch to the Data Management tab.
  3. Under the Data Integration tab, click Upload Data .
  4. Enter a name for the upload job.
  5. Select the source file you want to reuse as a template.
  6. Click Create.
    The job is now available in the Data Integration tab.
  7. Select the upload job, and click Start of the navigation path Next navigation step End of the navigation path Manage Template Start of the navigation path Next navigation step End of the navigation path Edit Settings.
  8. Before you start with the data preparation, click the wrench icon in the toolbar to open the Job Settings dialog, select an upload method under the Import Settings tab:
    • Use Update to compare the existing data of the model with the data you are uploading. If needed, existing entries are updated with the data you have uploaded, and new entries are added to the model.

    • Use Append to combine the existing data of the model with the data you are uploading.

    • Use Clean and replace subset of data to replace your existing data with the data you are uploading for the selected data version only. New entries are added to the model.

  9. Optional: If you select the Clean and replace subset of data method, click Add Scope to specify additional dimensions you would like to add to the replacement scope. The replacement scope limits the data that should be replaced during the upload job.
    For example, adding Date and Region dimensions in the replacement scope means that data entries that match specific dates and regions in the source data will be replaced. Everything else is kept as is. If you do not specify additional dimensions when setting up the file upload template, all the data in the target private version, which selected when uploading the file, is cleaned up.
  10. Select whether you would like to enable the Reverse Sign by Account Type option.
    Select this option to upload your INC and LEQ account values with reversed signs (+/-). This option is only available if your model has an account dimension. If you want your INC and LEQ values to show up as positive, import them as negative values, and vice-versa. Before uploading data, make sure to check the signs of the original source values first, and then set the option accordingly.
  11. Select whether you would like to enable the Replace Empty ID Cells with "#" Value option.
    Select this option to fill empty ID cells with a "#" value to preserve rows without a value in the Dimension ID column. If the option is disabled, empty ID cells are deleted.
  12. Under the Validation Settings tab, select whether you would like to use conditional validation.
    The conditional validation option allows you to validate data against selected hierarchies to prevent data from being imported to non-leaf members. This option is only available if you have at least one parent-child hierarchy in the model. By default, all hierarchies are validated if the option is turned off.
  13. Click OK to close the Job Settings dialog.
  14. In the Prepare Data screen, prepare your data for the template.

    Use the Quick Actions menu to perform actions such as duplicate column, trim whitespace, hide columns, or delete columns or rows. The table below lists all the available actions.

    Use the Smart Transformations menu to list suggested transformations to apply to the column, such as replacing the value in a cell with a suggested value. You can also select Create a Transform and choose from the options listed under the transformation bar displayed above the columns. The transformation bar is used to edit and create transforms.

    As you hover over a suggested transformation, the anticipated results are previewed in the grid. To apply the transformation, simply select the transform. You can manually enter your own transformation in the transformation bar; as the transform is built, a preview is provided in the affected column, cell, or content within the cell. The table below summarizes the available transformations you can apply to selected columns, cells, or content within cells.

    Transformation Description Transform Bar Format

    Delete Rows

    Delete rows in the data, either by selecting individual members, or by specifying a range (not possible for text columns; only numerical and Date columns).

    Provided only as a quick action

    Trim Whitespace

    Remove spaces, including non-printing characters, from the start and end of strings.

    Provided only as a quick action

    Duplicate Column

    Create a copy of an existing column.

    Provided only as a quick action

    Delete Column

    Delete a column. Use the Shift key to select and then delete multiple columns.

    Provided only as a quick action

    Remove duplicate rows

    Remove duplicate rows when creating or adding data to a model.

    Provided only as a task bar icon

    Concatenate

    Combine two or more columns into one. An optional value can be entered to separate the column values.

    Concatenate [<Column1>], [<Column2>]… using "value"

    Split

    Split a text column on a chosen delimiter, starting from left to right. The number of splits can be chosen by the user.

    Split [<Column>] on "delimiter" repeat "#"

    Extract

    Use this transform to extract a block of text specified as numbers, words, or targeted values within a column to a new column.

    Extract [<what to extract]>] [<where to extract>] [<which occurrence>] [""] from [<column name>] [<include value option> ].

    Options for what to extract:

    • number Limits extracted text to one number from column cell.

    • word Limits extracted text to a word from column cell.

    • everything Includes all text.

    Options for where to extract relative to the target value:
    • before

    • after

    • between

    • containing: Extracts a word or number containing the target. For example, if your target is ship, both ship and shipping will be extracted.

    • equal to: Extracts the specific target value if it exists in the cell.

    Options for specifying occurrence:
    • first

    • last

    • occurrence: Allows you to specify the position of the target from one to ten.

    To extract the first number from all column cells, you would specify the following:

    Extract before first "" from [<column name>].

    To extract all text between parenthesis in column cells, you would specify:

    Extract everything between "(" and ")" from [<column name>].

    Change

    Change a column to uppercase, lowercase, or title case.

    Change [<Column>] to (<UPPERCASE>/<lowercase>/<TitleCase>)

    Replace

    Replaces either an entire cell or content that could be found in multiple different cells.

    Replace (<cell/content>) in [<Column>] matching "value" with "value"

    With a <where> clause: Replace (<cell/content>) in [<Column>] matching "value" with "value" where[<Column>]is "value"

  15. When you’re done editing the template file, click Next to get to the Map to Facts screen, and map the existing data from the model to the data you have uploaded.
  16. Click Next to get to the Review Upload screen and review the potential issues related to mapping or data quality.
  17. Click Finish.

Results

Your upload job is now available in the Data Integration tab, and ready to be used in stories via the data upload action. Business users can now upload their data using the structure you have provided. For more information, see Set Up Starters and Run Data Upload Actions in Run Data Actions, Multi Actions, and Data Upload Actions.