Home > HANA, SAP Analytics Cloud > Embracing the Cloud for Analytics – Part 3

Embracing the Cloud for Analytics – Part 3

In the first two blogs we were introduced to SAP Leonardo with:

Now we want to connect our data to the SAP Analytics Cloud (aka BusinessObjects Cloud).  We will do this in four key steps:

  1. Sign up for our SAP Analytics Cloud Trial Account
  2. Make our data accessible
  3. Connect to Our data
  4. Create a Story within the SAP Analytics Cloud

The SAP sales team has been running a number of HANA DBaaS Academies in which they can come onsite and walk your team through these steps so that by the end of the day your team will have hands-on experience with loading data into the SAP Cloud Platform and visualizing that data with the SAP Analytics Cloud.  If you are interested in this for your team, you should reach out to your SAP sales rep.

SAP Analytics Cloud Trial Account

As with the SAP Cloud Platform, SAP is keen to have people try out their SAP Analytics Cloud capabilities and provide feedback.  Already the Analytics Clouds have received a number of wave updates.  As of the writing of this blog new capabilities are still being released every two weeks.  If you are interested in reading about the latest capabilities, Carmen Choy has an excellent series of blog posts.

To sign up for your free SAP Analytics Cloud 30-day trial and in less than a minute you will have a trial account configured.  All you need to do is go to their trial website and put in your email address.  That’s it.

You will notice here that some of the branding still says SAP BusinessObjects Cloud below.  Although the announcement of the name change from SAP BusinessObjects Cloud to SAP Analytics Cloud has been announced, not all of the internal systems have fully made the switch.  As time goes on you should expect this branding to be updated to SAP Analytics Cloud.

After you put in your email address you will see two quick screens

After putting in my email address… SAP running SIMPLE

… and then..

An Email Gets Generated

… done.  That’s what you call Software As a Service!

In your Inbox you will get an email telling you to activate your count.  The 30-day countdown starts as soon as you begin the activation.  I wish they would limit the trial a different way rather than by a time limit, but for now that’s all we get.  Fortunately by owning my own domain name I have access to unlimited email addresses.  🙂

This is what the activation will look like

Go ahead and click on the URL and activate your account.  The URL will take you to a login page

All you need to do is provide a password, the other fields are read-only

Once you click save, the system should return with the following message.

Message Once Activation is Complete

Now that we have our account activated let’s return to HANA and get our data ready.  We need to make our data accessible to the SAP Analytics Cloud be exposing it as a HANA Calculation View, so let’s do that now.

Make The Data Accessible

This next step can be done by either the WebIDE or the Eclipse client.  Since showed you how to configure the Eclipse client earlier we will use that.

Before you begin this step, confirm that you SAP HANA database is running by logging into your SAP Cloud Platform and verifying the status.  If necessary start the database.  (Remember to refresh the screen since the screen does not refresh automatically.)

We want to create a Calculation View.  The Calculation View is exposed
through the _SYS_BIC directory and therefore is accessible to external
BI tools.  In our case we are going to create a Package and call it demo.

Right click on the Schema and choose New Package from the menu.

Right-Click and Create New Package

Next, provide the package a name, e.g. demo

Name the Package

After naming the package we want to create a New Calculation View.  We do this by right-clicking on the package and selecting Calculation View… from the menu.

Right-Click Create New Calculation View

If you are unfamiliar with how to create calculation views,
you might wish to review to this helpful video.  Although
the terminology is changing and SAP no longer differentiates
between Analytics Views and Calculation Views, it is still help
to watch how a Calculation view is created.

I will assume you are using the dataset from my previous blog, so let’s create a calculation view called, CV_INSURANCESALES.  We want this Calculation View to be a standard cube, so we can accept the default settings.

Enter a name and label (Description)

First, drag the table Insurance directly into the Aggregation box since we don’t need to join it to any other tables.

Drag the SYSTEM.Insurance Table into the Aggregation

This is what you should see:

All Available Columns will appear

Next, in the area labeled Details, select the columns you wish to expose as dimensions.  You can multi-select them by holding down the ctrl key and clicking on each one.  Once you are complete, right click and choose Add to Output.

Add the Dimensions To Output

Next, select the columns you wish to expose as measures. Highlight them and then right click and choose Add to Aggregated Output.   By default all our dimensions aggregate as SUM, so no further changes are required.

Select the Measures and right-click Add As Aggregate Output

Now all our dimensions and measures should appear in the right panel.

The Dimensions and Measures Now Appear in the Output

We are almost done.  The next step is to click on the Semantics Box .  The contextual Details area will change accordingly.  As a last step demo in the design of the model, we need to select each of the dimensions and categorize it as a dimension.

Click on the Semantics box and to see the exposed data elements

Highlight each of the Dimensions (all the items without an orange ‘measure’ icon in the leftmost column), and click on the very small blue square in the menu bar.

Select the Dimensions and click the blue square

Now the final step is the Save and Activate our model.  This will validate the model and activate it so that it becomes part of the _SYS_BIC schema within HANA.  To activate your model, click on the dark green circle in the top right menu.

Click on the button or choose the value from the drop down

As the model runs, you should see the log files update below.

After click Save & Activate, you will see the Job Log update below


Once you see the message Completed successfully, you are ready to consume this model from with SAP Analytics Cloud.

If you are interested in watching a similar exercise in video form, check out this youtube video.

Connect To Your Data

Let’s log into our SAP Analytics Cloud environment.  You may notice from to time a delay in the time it takes from when you click on something to the time you see the screen update. I have noticed that SAP Analytics Cloud isn’t the best at telling you when “it’s working”, so if in doubt give it some time to paint the screen – especially when it’s doing something for the first time.  If you are using a trial account, it’s hard to know what the URL will be that you have been assigned.  In my case I was assigned a trial account on a tenant named:  fd13b.us2.sapbusinessobjects.cloud, so my URL will be.


Based on the rebranding of SAP BusinessObjects Cloud to
SAP Analytics Cloud, the base URL made change.

This is the URL that you will want to bookmark, not the URL that asks for your username and password.  The authentication process is handled by a separate identity server that is not necessarily running within the same namespace as your SAP Analytics Cloud account.

Once you have logged in with your username (email) and password, you should see the following welcome screen:

SAP Analytics Cloud Welcome Screen

By default your account will be loaded with a sample set of data and content.  Feel free to review these stories and get familiar with the SAP Analytics Cloud navigation.  The first thing we need to do is to use SAP Analytics Cloud to create a connection to our HANA data running within the SAP Cloud Platform.  This is very easy to do.  Simply select Create Connection from the menu:

Create a Connection to a Data Source

From here we will decide which type of connect we want to create.  Today there are “Live Connections” available for both HANA and SuccessFactors and many more will be added in the future.  However if you want additional live connectivity today, I would recommend you check out SAP’s partner APOS provides live connectivity to other data sources such as Microsoft SQL Server, etc. with it’s Data Gateway for SAP Analytics Cloud.

On the right hand side you will see a (+) plus button.  Click this to add a new HANA Connection.

Create Live Data Connection to HANA

Next you’ll get a pop-up screen and be asked to fill in the relevant details:

Completing the Live Connect Information

Continue to scroll down:

  • SAP CP Account – Enter your account name.  If it is a trial account then you will include the “trial” at the end of the name.  (We went over this in more detail when we showed setting up the HANA account in this earlier blog.
  • Database Name – This is the name of your HANA database within your SAP Cloud Platform environment.
  • Landscape Host – If you are using a Trial account then it will be Trial, otherwise you need to pick the correct data center.
  • User Name – This is the username for your HANA database within the SAP Cloud Platform environment.
  • Password – This is the password for your HANA database within the SAP Cloud Platform environment.

… so fill out the bottom section as well.:

Completing the Live Connect Information

Once you click okay, the connection will validate what you’ve filled in by connecting to the HANA database.  If you are prompted again for a username and password in a pop-up window, either your HANA database is not currently running or you are using the incorrect user name and password.

This Live Connection is now added to our landscape:

List of all current connections

Next we want to connect to our CV_INSURANCESALES view within the SAP Cloud Platform.  To do this we need to create a model.  Choose Create Model from the menu:

Navigate to Create > Model

From this menu we will select the live data source:

Select a datasource and choose Live data connection.

and then choose the data source from our HANA database in the SAP Cloud Platform.

Select CV_INSURANCESALES as our Model

You will also want to name your model.  In my case I used the name Insurance.  Once you click OK, the system will open up in the Modeler view with the list of measures.  This may appear confusing if you’ve not seen it before.  Because the SAP Analytics Cloud has a Budgeting & Planning framework at it’s core, within a mandatory “Accounts” dimension is where the measures are stored.  (This allows for versions of measures which is critical for Budget & Planning scenarios.)

If you want to change some of the measure descriptions or aggregation methods you can do it here by updating the values directly in the grid.  Once any changes you want to make are complete, click the Save icon on the menu.

Edit the measures as necessary and click Save…

and your changes will be saved:

Changes Saved Successfully.

All the foundational elements are in place.

  1. Our data has been loaded into the SAP Cloud Platform.
  2. We have establish a connection between the SAP Analytics Cloud and our data in the SAP Cloud Platform.
  3. We have created a model on top of our data.

So now is the fun part.  Now that everything is connected we can begin to slide and dice the data and get some insights.

Create a Story within the SAP Analytics Cloud

SAP Analytics Cloud allows you to consume interactive Analytic applications from the same interface that you use to create them.  Let’s create our first story by selecting Create > Story from the menu:

Creating a New Story

This will open up a story wizard.  You can selectd from existing template or start with your own blank canvas.  For this exercise let’s start with a blank Canvas by selecting Add a Canvas Page.

Create a blank page for your story

Next we will chose whether we want our page to be used for data exploration (data sources on the left) or for traditional Analytic elements.  In our case let’s select a chart so that we can begin to visualize our data.

Add a chart to your new story

Next, you will choose your data source.  We want to select the model (data set) to connect our chart to.  Let’s select Insurance.

Connect to our existing Insurance model

Next you will want to select Total_Cost as your measure:

Choose the data elements from the chart builder menu

Once you have selected the measure zzzTotal_Cost and Product_Line, the chart should appear like the one below.

Bar Chart with Total Cost by Product Line

The (+) plus button in the Insert menu above is where you can add additional elements to the canvas.  Feel free to play around and get comfortable with the Designer Interface.

Insert menu for adding additional objects

Once we have updated the canvas to meet our needs, we will want to save our story.  Click the save icon and give your story a name.

Save your Insurance Revenues story


Congratulations, you have created a story within SAP Analytics Cloud connected to a Live data source.  I encourage you to play around and get comfortable with the Designer.  One of my biggest challenges was overcoming my habit of constantly using right-click to to look for shortcut options because within legacy BusinessObjects the web interface still fully supported the right-click paradigm.

For more resources about learning to use many more capabilities within SAP Analytics Cloud, please check out these youtube videos.

Here is a story I created using the data we just uploaded.  It look about 10 minutes to create.

Finished Dashboard

I hope you find these blogs helpful in understanding how you can begin to get familiar with managing and analyzing your data within SAP’s cloud offerings.


Mike Flannagan shared his vision around SAP Analytics at Sapphire 2017 yesterday and the cloud was a cornerstone of his message.  This is the primary go forward strategy for Analytics for SAP so we should be expecting significant investment by SAP in the development of this solution over the coming months and years.

This solution is still in it’s infancy but SAP is well on the road to establish a strong offering for cloud-based analytics against any data source.

«Good BI»

  1. No comments yet.
  1. No trackbacks yet.