Skip to Content

In the first blog we looked at the different connectivity options that so far exist for Cloud for Analytics and this time we will put this to work by using a Google Sheet and creating a model based on the Google Sheet.

 

For my example I am going to use a very simple Google Sheet that outlines the Revenue, Cost, and Profit for a set of products broken down by year and month.

 

C4A_GoogleSheet_001.jpg

 

In this example we will create a model and load the data into the model. Please note that you could also just connect to the Google Sheet and explore the data.

 

 

So lets create the model, upload the data, and then create a visualization.

 

  • Logon to SAP Cloud for Analytics.

 

C4A_GoogleSheet_002.jpg

  • In the menu (top left corner) select the menu item Modeler.
  • Now in the top right corner click on the icon “Import Data”.

     C4A_GoogleSheet_004.jpg

  • Select the option “Import Model From Google Drive”.

     C4A_GoogleSheet_005.jpg

  • In the next screen you can enter a name and description for your Target Model.

     C4A_GoogleSheet_006.jpg

  • After entering those details, click on Select Data. In case you are already logged on with your Google Account in the browser you will see a list of data sources, otherwise you will be asked to logon with the Google Account.

     C4A_GoogleSheet_007.jpg

 

  • I will then select the Google Sheet C4A_Sample and click on Import.

 

After we imported the sheet, we are presented with the Data View and we can now configure the details in our model.

 

SCN_blog_Feb29_001.jpg

 

You can click on the column header for dimension Product and you can then see the details on the right hand side.

 

SCN_blog_Feb29_002.jpg

 

In my example I selected the option “ID”. The other available options are “Description” in case you have a Key and Text in the source data, “Hierarchy” to configure a hierarchy, “Property” to configure a Attribute in BW terms.

 

Then I select the column Year and also set it to the type “ID” but this time I set the Dimension Type to “Time” and the Time Format to “YYYY”.

 

SCN_blog_Feb29_003.jpg

 

 

Then I move on to column Month and also set the Dimension Type to Time but set the Time Format to “Unique Values.

 

Here I was hoping for an option to be able to enter a custom format – for example MM or MMM (like in Excel) – but there was only a list of predefined formats available and none of them was only the Month.

 

 

SCN_blog_Feb29_004.jpg

 

For the columns Revenue, Cost, and Profit I will set the Attribute Type to Key Figure.

 

 

SCN_blog_Feb29_005.jpg

 

On the Key Figure part I noticed that there wasn’t an option to configure the number of decimals and a scaling factor – perhaps something in the next release.

 

After that I click on Create Model and…..

 

I received the message that I can only have one time dimension per model, so I moved the Month back to a normal dimension.

 

I guess I will have to solve that issue by setting up a time hierarchy.

 

The model got created and I was able to go back to the Home page and use the option “Explore Data” and see the data from my model.

 

SCN_blog_Feb29_006.jpg

 

In the next step we will setup a proper time hierarchy, fill the descriptions, and setup a product hierarchy.

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply