Skip to Content

Upload Flat Files and Wrangle Your Data

Upload flat files, such as CSV files, in SAP Datasphere and then transform the data using the Data Builder.
You will learn
  • How to upload flat files in the Data Builder of SAP Datasphere
  • How to make the best of the Data Builder capabilities during a file upload process
  • How to transform the data for data consistency and integrity
jmmargojmmargoMarch 13, 2023
Created by
jmmargo
January 6, 2023
Contributors
jmmargo
meganhoy

Data Wrangling is the process used to clean and convert data from one format and structure to another. The goal is to make the data as accurate and convenient for consumption as possible. After all, it is easier to gain more insight from complex and large amounts of data if it is accurate and actionable. Data Wrangling reduces the time you need to collect and organize unruly data to make it usable for the business.

  • Step 1
    1. In the SAP Datasphere welcome page, click on Data Builder on the menu on the left-hand side.

      DWC
    2. Choose the space in which you would like to upload and transform the data.

    3. This brings you to the Data Builder, click on the import icon as shown in the below example.

    4. Select Import a CSV file.

      Import CSV
    5. Find the source file on your local computer and upload. The file must be in CSV format.

    6. Choose the delimiter in the same Upload file pop-up dialog.

      Upload file
    Log in to complete tutorial
  • Step 2

    Once you upload a CSV file, you will be automatically redirected to a data transformation canvas where you will see a preview of your CSV data.

    The system will classify the data type for each column automatically, but you can change this setting using the capabilities of the Data Builder.

    You can see in the video in the beginning of this tutorial that columns such as Country and Sales Units are set as strings, Time is set as time date type, and Revenue is set as an integer.

    1. If you want to rename one of the columns, go to the overview panel on the right side of the screen and double click on the column name to give it a new name.

      Rename
    2. You can preview the content of the column by clicking on the cube icon. For instance, if the column has values from 1 to 12, we can see the data distribution of the column with number of occurrences of each value as shown in the below example.

      preview
    3. You can also specify how you want to display the data by clicking the info icon. This can give you some ideas or suggestions as to how you can change it.

    Log in to complete tutorial
  • Step 3

    You can apply some of the basic transformation to your data set. Suppose you want to filter the data records for a particular year from the available dates of last 50 years. You can easily achieve by transforming data to match only the records from a particular year.

    1. Click on the column which you want to transform in the canvas to make a change.

    2. Click on Create a transform to see the transformations available. This varies depending on the data type.

      Info

      In the Data Builder, you can see the following transformation options :
      - Concatenate: Join items of two different columns together.
      - Split: Split one value in a cell into two or more.
      - Replace: Replace a value with another, or with a better description.
      - Change: Change the font from lower to upper case or vice versa.
      - Filter: Filter your data and match.

    3. If you want to, for example, filter the data records for a particular year, click on the date column and then select Create a transform and from the available options choose Filter.

    4. Select matching from the transformation bar at the top and include the year for which the data records should be filtered.

    5. Once all the changes are done, deploy them by clicking on the deploy icon on the bottom of the transformation canvas.

    You can again preview the file to see the reflected changes.

    Well done!

    You have completed the first tutorial of this group! Now you know how to upload and transform your data in SAP Datasphere.

    Learn in the next tutorial how to integrate and monitor your data in SAP Datasphere.

    Log in to complete tutorial
  • Step 4

    Does the Data Builder in SAP Datasphere classify the data type automatically for each column during the upload process?

    Log in to complete tutorial
Back to top