SACM21_EN_Col41
SACM21_EN_Col41
.
.
PARTICIPANT HANDBOOK
INSTRUCTOR-LED TRAINING
.
Course Version: 41
Course Duration: 2 Days
SAP Copyrights, Trademarks and
Disclaimers
No part of this publication may be reproduced or transmitted in any form or for any purpose without the
express permission of SAP SE or an SAP affiliate company.
SAP and other SAP products and services mentioned herein as well as their respective logos are
trademarks or registered trademarks of SAP SE (or an SAP affiliate company) in Germany and other
countries. Please see https://www.sap.com/corporate/en/legal/copyright.html for additional
trademark information and notices.
Some software products marketed by SAP SE and its distributors contain proprietary software
components of other software vendors.
National product specifications may vary.
These materials may have been machine translated and may contain grammatical errors or
inaccuracies.
These materials are provided by SAP SE or an SAP affiliate company for informational purposes only,
without representation or warranty of any kind, and SAP SE or its affiliated companies shall not be liable
for errors or omissions with respect to the materials. The only warranties for SAP SE or SAP affiliate
company products and services are those that are set forth in the express warranty statements
accompanying such products and services, if any. Nothing herein should be construed as constituting an
additional warranty.
In particular, SAP SE or its affiliated companies have no obligation to pursue any course of business
outlined in this document or any related presentation, or to develop or release any functionality
mentioned therein. This document, or any related presentation, and SAP SE’s or its affiliated companies’
strategy and possible future developments, products, and/or platform directions and functionality are
all subject to change and may be changed by SAP SE or its affiliated companies at any time for any
reason without notice. The information in this document is not a commitment, promise, or legal
obligation to deliver any material, code, or functionality. All forward-looking statements are subject to
various risks and uncertainties that could cause actual results to differ materially from expectations.
Readers are cautioned not to place undue reliance on these forward-looking statements, which speak
only as of their dates, and they should not be relied upon in making purchasing decisions.
Demonstration
Procedure
Warning or Caution
Hint
Facilitated Discussion
TARGET AUDIENCE
This course is intended for the following audiences:
● Data Manager
● Data Consultant
● Industry / Business Analyst Consultant
● Database Administrator
● System Architect
Lesson 1
Describing Data Modeling Basics 3
Lesson 2
Identifying the Differences Between Model Types 5
Lesson 3
Explaining Where the Data Comes From 9
Lesson 4
Creating Datasets 13
UNIT OBJECTIVES
LESSON OBJECTIVES
After completing this lesson, you will be able to:
● Describe the foundational concepts for data modeling.
LESSON SUMMARY
You should now be able to:
● Describe the foundational concepts for data modeling.
LESSON OBJECTIVES
After completing this lesson, you will be able to:
● Identify the different model types.
Analytic Models
Analytic models are read-only models used strictly for data reporting and analysis. They do
not have any required dimensions or measures.
Planning Models
Unlike the read-only analytic models, planning models allow write-back to the planning data
source. Because designated planners can write data, planning models require Version and
Date dimensions to designate what the written data is, and for what time frame.
In a typical workflow, the structure of the planning model is created and then actual data is
imported. The actual data is typically copied to a plan version and then the data is adjusted to
accommodate expected changes in the planning time frame.
Both analytic and planning models can be created as either account-based or measure-based
models.
Note:
A planning model integrated with SAP BPC Embedded can work with real-time
(non-imported) data, but that is the only exception. Any other planning model
must replicate the data into SAP Analytics Cloud.
Version Dimension
Version dimension within the model supports the creation of new (empty) versions and the
deletion of existing (empty) versions. This helps to improve the administration of data
versions for planning and analytics scenarios.
Measure-Based Models
The measure-based model type exposes measures as single entities and lets you add and
configure multiple measures with aggregation and units to fit your data. It provides plenty of
flexibility; you can match the structure of an account-based model by using measures and an
account dimension, or you can remove the account dimension when it is not required for your
use case.
There are two types of measure-based models:
● Model with measures and no account dimension
● Model with measures and an account dimension
The measure-based model is a best of both worlds. It has multiple measures but can also use
an account-type dimension. In addition, measure-based models support model-specific
calculated and converted measures.
Account-Based Models
Account-based models have a single measure associated with multiple accounts.
In an account-based model, model values are stored in a single default measure, and you use
the account-type dimension's structure to add calculations, specify units, set up an account
hierarchy, and set aggregation types for all the data. In the preceding figure, data is broken
down by Account (Discounts, Gross Sales, Quantity, and Cost of Sales), which is used to
describe the values in the measure column (SignedData.) Those values represent transaction
data associated with other dimensions (Product and Date).
LESSON SUMMARY
You should now be able to:
● Identify the different model types.
LESSON OBJECTIVES
After completing this lesson, you will be able to:
● Describe the data source options.
Connection Types
SAP Analytics Cloud enables access to both on-premise and cloud data sources via either live
or import connectivity – two ways of accessing your data located anywhere in your
information-system landscape.
Depending on your environment, there are different requirements for establishing live and
import data connections to SAP Analytics Cloud. For more information, see the System
Requirements and Technical Prerequisites Guide
You must decide which connection type your organization needs, based on your user
requirements. As you evaluate which connection type to use, consider the following criteria:
● Functional needs
● Data privacy constraints
● Data volume constraints
It is possible that you will need a combination of both live and import connections, and SAP
Analytics Cloud makes satisfying that requirement very easy to support and manage.
Connection Screen
On the Connection screen, an administrator creates and maintains data source system
connections. Connections are categorized as either a live connection or an acquired data
connection. It is also possible to filter the list of available connections by data source type or
by category.
The following figure shows the connection screen in SAP Analytics Cloud.
Live Data
You can create models from data sources in on-premise or cloud systems without any data
replication. Live data models do not support any data transformations or model-based
calculations. However, creating calculations in a story that uses a live model is possible. Live
models are typically used when:
● You need data in a story that is real-time.
● You do not need to transform or calculate the data in SAP Analytics Cloud.
● You cannot have data on the cloud due to security or privacy considerations.
Data access for the model is controlled by the source system security, not SAP Analytics
Cloud security.
Currently, the data sources for live models are limited to SAP systems and include:
● SAP BPC Embedded - Connect to a configuration model.
● SAP BW - Connect to a BW query.
● SAP HANA - Connect to a HANA view.
● SAP S/4HANA - Connect to a query or CDS view.
● SAP Universe or WebI document - Create a universe query or connect to an existing Web
Intelligence document.
Acquired Data
As with live models, you can create models from data sources in on-premise or cloud
systems; however, with acquired data, the data is imported (copied) to SAP Analytics Cloud
from the source system. This replication allows the imported data to be transformed/
manipulated and/or additional calculations created. Import models are typically used when:
● Data in stories does not need to be real-time.
● Source system performance issues preclude the use of live models.
● You need to transform data.
● You need to combine data from multiple source systems.
● You need model-dependent calculated measures.
● You need to submit planning data.
One very important consideration is that changes made to the data in the source system do
not affect the imported data. Because of this fact, imports from sources systems can be, and
typically are, scheduled to occur on a regular basis. However, if data is imported from a file
into a model, the import cannot be scheduled.
Data access for the model is controlled by SAP Analytics Cloud security.
There are many data sources for imported models, both SAP and non-SAP.
LESSON SUMMARY
You should now be able to:
● Describe the data source options.
LESSON OBJECTIVES
After completing this lesson, you will be able to:
● Explain the types of datasets and the difference between datasets and models.
● Create a dataset.
Datasets
A dataset is a simple collection of data, usually presented in a table. You can use a dataset as
the basis for your story, and as a data source for Smart Predict. Datasets are a good choice
when you want to create stories quickly and do not want to get into structure definition or
when development does not demand IT governance.
For the most part, datasets acquire data via import connections. The only exception is that a
dataset can be built based on a live connection to a HANA data repository.
Public Datasets
Public datasets are data sources that can be used in multiple stories by any users who have
access to them. They can be created directly from the vertical toolbar and can also be used
for Smart Predict.
Embedded Datasets
Embedded datasets are created in and exist in only a single story, and cannot be shared or
used in other stories or with Smart Predict. However, if you need others to be able to use this
dataset, you can convert it to a public dataset.
Note:
A shareable live dataset can be created for SAP HANA. Live datasets can also be
created from a story based on SAP Datasphere.
Datasets are intended to supplement models and be used only for ad-hoc, ungoverned data
analysis.
LESSON SUMMARY
You should now be able to:
● Explain the types of datasets and the difference between datasets and models.
● Create a dataset.
Learning Assessment
X A InfoCubes
X B Import models
X C Datasets
X D Universes
X E Calculation Views
X True
X False
X A Version
X B Organization
X C Generic
X D Date
X A Calculated measures
X B Story calculations
X C Converted measures
X D Table formulas
X A One
X B Unlimited
X True
X False
X B The model
X A Data set
X B Live model
X C Import model
X True
X False
X A InfoCubes
X B Import models
X C Datasets
X D Universes
X E Calculation Views
Stories access data from datasets, import models, and live data models.
X True
X False
X A Version
X B Organization
X C Generic
X D Date
X A Calculated measures
X B Story calculations
X C Converted measures
X D Table formulas
X A One
X B Unlimited
X True
X False
X B The model
In a live model, data access is controlled in the source system for the model.
X A Data set
X B Live model
X C Import model
X True
X False
Lesson 1
Defining Dimensions 23
Lesson 2
Identifying Dimension Types 27
Lesson 3
Describing Properties 31
Lesson 4
Designing and Creating Hierarchies 35
Lesson 5
Importing and Preparing Master Data for a Dimension 39
UNIT OBJECTIVES
● Explain the difference between dimensions and measures, and private and public
dimensions.
● Explain account, organization, generic, data and version data types.
● Explain the unique properties for dimension types.
● Explain the prerequisites required for creating hierarchies.
● Create a dimension and hierarchy.
● Import and prepare data in a dimension.
LESSON OBJECTIVES
After completing this lesson, you will be able to:
● Explain the difference between dimensions and measures, and private and public
dimensions.
Note:
A measure-based model also supports the account-based single measure
dimension, but you can add other measures to the model as well. With the
account-based model, you are limited to the single account-type dimension to
represent measures.
Public Dimensions
Public dimensions are stand-alone entities that are created independently and can be shared
among multiple models. If a model that contains a public dimension is deleted, the public
dimension remains intact because it is not dependent on the model. If you copy a model that
contains public dimensions, those dimensions are not duplicated, again, because they are not
dependent on the model.
Typically, the values for the dimension members are imported into the dimension. Because
the data is imported, it is often scheduled to repeat the import process on a regular basis to
ensure that the dimension always reflect accurate information.
Private Dimensions
Private dimensions are created directly in a model, so they are model-specific and cannot be
shared among other models. If the model containing the private dimension is deleted, the
dimension is also deleted because it is part of the model. The same is true if you copy the
model; the private dimension is duplicated in the copy.
Since the dimension is created during the model creation process, the data values for the
dimension members are not populated until the data for the entire model structure is
imported into it. And while data imports into models can be scheduled, the private dimension
cannot be singled out for its own scheduled import.
LESSON SUMMARY
You should now be able to:
● Explain the difference between dimensions and measures, and private and public
dimensions.
LESSON OBJECTIVES
After completing this lesson, you will be able to:
● Explain account, organization, generic, data and version data types.
Dimension Types
Dimensions are always qualified as a specific type. This Type qualification gives SAP Analytics
Cloud information on how the dimension should function within the system. Depending on the
type selected, you can configure various properties and possibly create hierarchies for the
dimension.
When creating a public dimension, you can select the Generic, Organization, or Account type.
There are two other dimension types required by planning models that the system creates
automatically for every planning model: Version and Date.
LESSON SUMMARY
You should now be able to:
● Explain account, organization, generic, data and version data types.
LESSON OBJECTIVES
After completing this lesson, you will be able to:
● Explain the unique properties for dimension types.
Dimension Properties
Dimension properties have many uses in SAP Analytics Cloud. In stories, they can be used to
sort and filter data or for currency translation calculations. They can also be displayed to
provide additional information or clarity to the story.
The following example displays the Stores dimension with its properties.
Note:
Member ID, Description, and Hierarchy appear as a columns in the member sheet,
but they are not properties.
These properties are used for currency conversion, data access control, data locking
ownership, and to hide unauthorized hierarchy nodes.
These properties are used for currency conversion, data access control, data locking
ownership, and to hide unauthorized hierarchy nodes.
Note:
* There are many aggregation types available in SAP Analytics Cloud: average,
last, first, rank, sum, etc. Aggregation behavior can be specified in account
dimensions, calculated measures in stories, as well as a measure-based model.
LESSON SUMMARY
You should now be able to:
● Explain the unique properties for dimension types.
LESSON OBJECTIVES
After completing this lesson, you will be able to:
● Explain the prerequisites required for creating hierarchies.
● Create a dimension and hierarchy.
Hierarchies
A hierarchy is used to establish parent-child relationships within your data. For example,
suppose you have sales data for the following:
● Worldwide
● Region
● Country
● State/Province
● City
A hierarchy allows you to organize these geographic areas into logical levels (also called
nodes), from the largest area to the most granular.
The hierarchy column in a dimension is used to store the parent-child values. You can add
hierarchies by selecting +Add Hierarchy on the toolbar. When you choose this option, a new
hierarchy column is inserted into the dimension, and you must enter the name of the new
hierarchy.
The hierarchy is visualized in the Preview panel in the dimension. You can use drag-and-drop
in the Preview panel to arrange the members and build the relationships. If more than one
hierarchy has been defined, you can select the one you want to display in the preview from the
drop-down list.
The Version dimension type does not have a hierarchy, because different versions are
independent from one another and do not have parent-child relationships.
Types of Hierarchies
Two types of hierarchy are available:
Level-based hierarchy
The following figure shows dimensions with a level-based hierarchy.
Parent-child hierarchy
The following figure shows dimensions with a parent-child hierarchy.
Parent-child hierarchies can be maintained manually in SAP Analytics Cloud or imported from
files or SAP systems.
Note:
When working with parent-child hierarchies for a planning model, avoid situations
where data can be booked directly to a parent node.
These situations include the following:
● Structuring two or more hierarchies so that a member is a leaf node in one
hierarchy and a parent node in a different hierarchy.
● Updating a hierarchy so that a leaf node that has a value booked to it is
changed to a parent node.
LESSON SUMMARY
You should now be able to:
● Explain the prerequisites required for creating hierarchies.
● Create a dimension and hierarchy.
LESSON OBJECTIVES
After completing this lesson, you will be able to:
● Import and prepare data in a dimension.
For example, you may need to concatenate columns when dimension members are non-
unique, such as the same city name used in multiple states. In this situation, concatenating
City and State creates a single, more meaningful dimension.
Smart Transformations
The Smart Transformations list suggested transformations to apply to the column, such as
replacing the value in a cell with a suggested value. There are many transformation options,
including but not limited to:
● Trim White Space: Remove spaces, including non-printing characters, from the start and
end of strings.
● Duplicate Column: Create a copy of an existing column.
● Concatenate: Combine two or more columns into one. An optional value can be entered to
separate the column values.
● Split: Split a text column on a chosen delimiter, starting from left to right. The number of
splits can be chosen by the user.
● Change: Change a column to uppercase, lowercase, or title case.
The figure Smart Transformations and Custom Expression Editor Examples shows examples
of each transformation option.
LESSON SUMMARY
You should now be able to:
● Import and prepare data in a dimension.
Learning Assessment
X True
X False
X A Imported
X B Live
X C Public
X D Private
X A Imported
X B Live
X C Public
X D Private
X True
X False
5. What dimension types can you add when you create a model in SAP Analytics Cloud?
Choose the correct answers.
X A Account
X B Version
X C Generic
X D Organization
X E Time
X A Account
X B Generic
X C Date
X D Version
X E Organization
X True
X False
X A Level-based
X B Branched tree
X C Parent-Child
X D Star schema
X True
X False
10. Data preparation involves manipulating the data to make it accurate and to match your
business needs.
Determine whether this statement is true or false.
X True
X False
11. You can add calculated columns when importing into a dimension.
Determine whether this statement is true or false.
X True
X False
X A Calculation Editor
X C Smart Transformations
X D Formula Editor
X True
X False
X A Imported
X B Live
X C Public
X D Private
X A Imported
X B Live
X C Public
X D Private
A Private dimension cannot be shared among models because it exists only in the model
where it was created.
X True
X False
5. What dimension types can you add when you create a model in SAP Analytics Cloud?
Choose the correct answers.
X A Account
X B Version
X C Generic
X D Organization
X E Time
When creating a model, you can add Account, Generic, Date, and Organization dimension
types. The Version dimension is are added by the system.
X A Account
X B Generic
X C Date
X D Version
X E Organization
X True
X False
X A Level-based
X B Branched tree
X C Parent-Child
X D Star schema
X True
X False
10. Data preparation involves manipulating the data to make it accurate and to match your
business needs.
Determine whether this statement is true or false.
X True
X False
Data preparation involves manipulating the data to make it accurate and to match your
business needs.
11. You can add calculated columns when importing into a dimension.
Determine whether this statement is true or false.
X True
X False
X A Calculation Editor
X C Smart Transformations
X D Formula Editor
To prepare master data, you can use the Calculation Editor and Smart Transformations.
Lesson 1
Creating an Import Model 53
Lesson 2
Importing and Preparing Transaction Data in a Model 59
Lesson 3
Scheduling Data Imports 69
Lesson 4
Creating Formulas and Calculations 71
Lesson 5
Translating Currency 75
Lesson 6
Designing and Creating Time Hierarchies 81
UNIT OBJECTIVES
LESSON OBJECTIVES
After completing this lesson, you will be able to:
● Create an import model.
Note:
All dimensions are private in this case.
If you choose to Start with an empty model, you will follow these basic steps:
2. Create at least one measure. Currency related measures can either use a default currency
or can be derived from a dimension with the currency property.
When you add a measure to the model, the aggregation type will default to sum. The
exception aggregation type can be used to manipulate aggregation. For example, a
headcount measure could be set to an exception aggregation type of Last and an
exception aggregation dimension of Date so that the model always reflects the headcount
for a specific date, rather than the sum for all time.
In the measure-based model, you can also create calculated measures based on the
existing measures in your model. Measure values are stored in the model; however,
calculated and converted measures are refreshed when used and are not stored.
1. Set the model preferences if needed, especially to define the model as Planning or not
(Analytic). When you create a blank model, the default is the Planning model type, and
Date and Version dimensions are included by the system. If you turn off the Planning
preference to create an Analytic model, the Version dimension goes away, and the Date
dimension becomes optional.
2. Select the time range. When creating a measure-based model, the default time range is
from the current year to the current year plus one. For example, if the current year is
2024, the default time range will allow data for 2024 and 2025. But you can change the
default range to meet your modeling requirements and match the data you will import into
the model.
Note:
A typical model has a Date dimension, Organization dimension, several Generic
dimensions, and several Measures. It may also have an Account dimension, but in
the measure-based model, that dimension type is not required.
1. Model structure workspace: Where you can view the meta data
Model Preferences
Preferences are set by default when the model is created and rarely changed except to
specify an Analytic rather than a Planning model.
The following image shows the model preferences options.
Model Preferences
General Settings
Select the model type, either Planning or not (Analytic).
Language
Request language translation.
Access and Privacy
Set data access and other controls.
Date Settings
Enable weekly based if needed and set the date to calendar year or fiscal year.
Planning
Set disaggregation behavior for planning models.
Currency
Enable currency conversion.
Structure Priority
Set the tie breaker for data intersections for account and measure formulas.
Data and Performance
Configure settings to optimize performance for analytics and planning.
Viewing Options
When creating a model, you can view the structure of the model, the data in the model, or
both. Simply use the Toggle Data Foundation View button in the View area of the ribbon to
choose your preference.
The upper half is the model structure, listing the measures and dimensions in the model. The
lower half is the data foundation view, showing the data values and members for the
measures and dimensions.
In planning models, you can switch among the different public versions of your data in the
data foundation view. For example, you may want to see if data exists for a specific version.
The default version is Actual.
LESSON SUMMARY
You should now be able to:
● Create an import model.
LESSON OBJECTIVES
After completing this lesson, you will be able to:
● Explain data transformation functions in an import model.
● Import data into a model.
5. Select fields to be imported; add filter(s) if necessary. When the import is created, it
appears in the data management workspace of the model with a hyperlink: Set Up Import.
The following figure illustrates how you select the data to import into the model structure.
a. Available data: The source system fields are shown on the left side of the dialog. You
can scroll through the list or search for specific fields that are required.
b. Selected data: The fields that have been selected to be imported are displayed here.
c. Filters: Filter the data where needed. In the example, week 53 is not required so the
filter is set to Less than or equal to 52.
c. Map properties.
7. Run the import and read the log. If records fail, debug and re-import.
In order to run another import, repeat the process manually or schedule it to repeat on a
regular basis.
1. use the Custom Expression editor to add a 0 if the week is less than 10.
2. use the Transformation Bar to concatenate the Year and Week values with no separator
into the required YYYYWK format.
Job Settings
During the import process, the Job Settings can be maintained:
● Import method: These selections are important when importing data again for the same
data region.
● Reverse sign by account type: If the source system stores revenue, equity, and liabilities
with positive values, then they can be reversed based on the account type property in the
account dimension.
● Update local dimensions with new members: If the model contains a private dimension,
then its members can be updated with new members during the model import.
● Conditional validation: This is used to validate members to make sure they are not parent
members in a hierarchy.
Map to Target
In the figure Map to Target, the system will map fields automatically where possible. If the
source and target fields names are different, then the mapping can be completed using drag-
and-drop. When importing from an SAP source system, the mapping can be edited if needed.
1. Source fields.
● Set to a constant.
3. Mapped fields.
Map Properties
The Map Properties step can be used to map properties of both public and private
dimensions, if there are any. The only way to import into a private dimension is during the
model import. Also, when importing into an analytic model, the Map Properties step indicates
that all records have been assigned to the public actual version.
Note:
All target fields must either be mapped or use a default value or Unassigned. Some
source fields may be unmapped if they are not needed.
Review Import
Before you complete the import, you must review any issues. In the Review Import step, if
there are no issues the Dimension Restrictions area will be blank. If you have any issues,
choose the Prepare Dataset workspace, correct the issues, re-map if necessary, and return to
the Review Import workspace.
For example, in the following image you can see the issue that requires review. The U00
Stores dimension does not include e-Fashion in the store name, so the imported data does not
match the model dimension's data.
Update Methods
When data must be imported regularly into SAP Analytics Cloud models, you can use import
method options to prevent data duplication. In addition, when importing from SAP systems,
the import is typically filtered to the current period.
A choice of four import methods are available:
Append Leaves the existing data unchanged and adds only new entries to
the target model. When using append there are two options:
Clean and replace se- Deletes the existing data and adds new entries to the target model
lected version data only for the versions that you specify in the import. You can choose
to use either the existing version or specify a new version under Ver-
sion.
For example, if you specify to import data for the Actual version, on-
ly the data in the Actual version is cleaned and replaced. Other ver-
sions, for example Planning, are not affected.
Clean and replace Replaces existing data and adds new entries to the target model for
subset of data a defined subset of the data based on a scope of selected versions
using either the Existing Version or New Version buttons. You can al-
so limit the scope to specific dimensions. To define a scope based
on a combination of dimensions, select + Add Scope and use the Se-
lect a dimension field to specify a dimension.
When a Date dimension is defined in the scope, the time range in the
source data (calculated based on the target model's granularity)
combined with other dimensions in the scope will determine what
existing data is cleaned and replaced.
If, for example, Date and Region dimensions are defined as part of a
scope, only entries that fall within the time range and match Region
from the source data will be replaced in the target model. Existing
data that does not match the scope will be kept unchanged.
Note:
If there is an issue with a scheduled import, the schedule status log can be
accessed via Connections in the navigation bar.
In the figure Rejected Records 1,116 rows were rejected. The rejection summary shows that
the dimension member does not exist. You must update the dimension and refresh the data
into the model.
LESSON SUMMARY
You should now be able to:
● Explain data transformation functions in an import model.
● Import data into a model.
LESSON OBJECTIVES
After completing this lesson, you will be able to:
● Schedule data import.
Scheduled jobs can also be viewed, deleted, and refreshed via: Navigation Bar →
Connections → Schedule Status.
If any rows in the dataset are rejected, you can select Download rejected rows to save the
rejected rows as a .csv file. You can then examine this file to see which data was rejected. You
can either correct the data in the .csv file and then import the .csv file into the model using the
Import Data workflow, or correct the data in the source system and re-import the data.
LESSON SUMMARY
You should now be able to:
● Schedule data import.
LESSON OBJECTIVES
After completing this lesson, you will be able to:
● Explain calculations created for import models.
● Create calculated measures in a model.
You can use dimension member formulas to calculate account values that are restricted to
other dimension member values such as Prior Year Revenue. A dimension formula is available
in any story that uses a model that contains the account dimension with a formula.
An account dimension formula can be used as it was created in the dimension, or it can be
modified in specific models. In this scenario, the model can contain its own version of the
dimension formula.
Calculated Measures
Calculated Measures are similar to Dimension Member Formulas, but are created in the
Calculations workspace for measure-based models. They do not appear in the Data
Foundation view because, like Dimension Member Formulas, the results are not stored in the
model. They are calculated only when used in the story.
The figure Calculated Measures outlines how to create a calculated measure:
In the figure Exception Aggregation, the weekly counts of product lines are counted per store.
The monthly amount is not a total (which would be inaccurate) but rather reflects the total
number of unique product lines sold in that store for that month.
Exception Aggregation can be quite complex, but may be necessary to ensure that the final
result of a calculation is correct. For a more detailed explanation and examples of its use with
SAP Analytics Cloud models (and stories), refer to this blog.
LESSON SUMMARY
You should now be able to:
● Explain calculations created for import models.
● Create calculated measures in a model.
LESSON OBJECTIVES
After completing this lesson, you will be able to:
● Configure and translate currencies.
Note:
In a measure-based model, you can enable a currency variable in the model
Preferences to set a default target currency for conversions measures.
Exchange rates are stored in the SAP Analytics Cloud currency translation rates table.
Exchange rates originate from financial institutions and are automatically or manually
updated into the table. If a currency conversion is added and there are no exchange rates, the
system will direct you to the currency table to add the missing rates.
With currency conversion, there are several terms to be aware of:
● Local Currency (LC): The functional or operating currency of a company; for example, a
company in the US has a local currency of USD.
● Group Currency: The corporate level currency; for example, a company in the US that has
a German parent has a group currency of EUR.
● Translation: Used interchangeably with conversion.
Note:
The concepts in this lesson concern planning concepts only, not month-end
closing currency translation.
4. Alternative Currency CAD is calculated but not stored. This is a model currency
conversion measure.
1. CAD values will be translated to EUR values at an exchange rate of 0.65 for accounts that
have the Average rate type for postings that occur on 2020.01.01 or later.
2. Category is used to assign rates to a specific planning version such as Actual or Forecast.
Leave this setting blank to create a generic conversion rate.
3. Rate Version is used to create a rate for specific planning Versions and other scenarios.
Set the Category to Specific and then type a name for the Rate Version.
4. Rate Type allows you to define whether the exchange rate is an average for the month or
whether it is the month-end closing rate. Income statement accounts use Average and
balance sheet accounts use Closing.
Currency tables can be updated via flat files, SAP BPC rate models, and SAP BW queries. For
more information, see the Currency Conversion Tables documentation.
2. Select the source currency table using the Currency Rates Table drop down.
4. Activate the currency variable (optional) by selecting Create Currency Variable in the
currency variable settings.
The currency variable can be used to determine the target currency dynamically when the
story is opened.
Measures can also be added to the model that calculate currency values with each data
refresh.
1. Use the Enable Currency toggle to enable currency translation for the dimension. This
option can be for any dimension that has a currency property, not just Organization type
dimensions.
2. Change the name of the currency property (for display in the story) by selecting the pencil
icon.
3. LC is the local (or operating) currency of the entities; for example, a store in Canada has a
local currency of CAD.
For each converted measure in the model, a dimension (any dimension with currency
enabled) is set as the currency dimension.
Note:
Only the average and closing rate types are possible. Custom rate types are not
possible.
1. The EXP and INC account types use the Average rate type. LEQ and AST use the Closing
rate type.
● The Default Currency (USD) values are translated with the monthly average exchange
rates for 2020. For example:
- January: 11,655.9 x 1.1 = 12,821.5
- February: 17,302.5 x 1.15 = 19,897.9
● The USD in Constant ER (USD) values are translated with the January average exchange
rate for 2020 only. For example:
- January: 11,655.9 x 1.1 = 12,821.5
- February: 17,302.5 x 1.1 = 19,032.7
LESSON SUMMARY
You should now be able to:
● Configure and translate currencies.
LESSON OBJECTIVES
After completing this lesson, you will be able to:
● Explain the prerequisites required for creating hierarchies.
● Build custom time hierarchies.
Time hierarchies are level-based, based on properties of the Date dimension. If you need a
custom hierarchy you must add properties first.
Semantic Types
Each property you create is assigned to a Semantic Type, which is a time unit assigned to a
property within the hierarchy. The Semantic Type options are:
● Year
● Half-Year
● Quarter
● Month
● Period
● Week
● Day
● Other
The semantic type Other is reserved for custom properties that you want to attach to other
properties as linked descriptions.
Once the properties have a Semantic Type assigned, you can add them as levels within the
hierarchy.
Make sure to follow these guidelines:
● The hierarchy has the mandatory Year semantic type as the highest level.
● The semantic types within the hierarchy are ordered from the largest to the smallest time
unit. For example, Month must be below Quarter and above Week.
● Each semantic type within the hierarchy is used only once, except for the Other semantic
type.
● If the hierarchy uses the semantic type Month, do not include the semantic type Period,
and vice versa.
● The lowest level of the hierarchy is the ID property if there is one. Otherwise, it must be a
unique property.
● Description properties cannot be used in the hierarchy.
To create a new hierarchy from the Hierarchy Builder, simply click + Create New Hierarchy
and then drag and drop the required levels into the custom time hierarchy.
The figure Bar Chart with Custom Time Hierarchy is one example of a custom time hierarchy
displaying sales values for each season and then drilled down to the Easter Season.
LESSON SUMMARY
You should now be able to:
● Explain the prerequisites required for creating hierarchies.
● Build custom time hierarchies.
Learning Assessment
1. What happens when you turn off the Planning option in Model Preferences?
Choose the correct answer.
2. When importing data into a model, which dimension has no import option?
Choose the correct answers.
X A Version
X B Account
X C Date
X D Organization
3. Model imports settings allow you stop an import job if one step fails.
Determine whether this statement is true or false.
X True
X False
4. Dimension member formulas are only available for the account type dimension.
Determine whether this statement is true or false.
X True
X False
X A In a dataset
X B In a currency table
X C In a model
X D In a dimension
X B Flat File
X C FTP
X D SAP BW query
X E Internet download
X A 4-4-4
X B 4-5-5
X C 13x4
X D 12x4
1. What happens when you turn off the Planning option in Model Preferences?
Choose the correct answer.
When the planning option is disabled in the Model Preferences, it is no longer possible to
write data to the model.
2. When importing data into a model, which dimension has no import option?
Choose the correct answers.
X A Version
X B Account
X C Date
X D Organization
The Version and Date dimensions are system-generated so have no import option.
3. Model imports settings allow you stop an import job if one step fails.
Determine whether this statement is true or false.
X True
X False
The Stop if any query fails setting stops group processing if any import job fails. The Skip
any failed query setting allows a failed import job to be skipped and the remaining jobs are
still processed.
4. Dimension member formulas are only available for the account type dimension.
Determine whether this statement is true or false.
X True
X False
Dimension member formulas are only available for the account type dimension.
X A In a dataset
X B In a currency table
X C In a model
X D In a dimension
X B Flat File
X C FTP
X D SAP BW query
X E Internet download
The currency table can be updated via flat file, SAP BPC rate model, or BW query.
X A 4-4-4
X B 4-5-5
X C 13x4
X D 12x4
The supported weekly time patterns are: 4-4-5, 4-5-4, 5-4-4, 13x4.
Because time hierarchies are parent-child, you must add time-related properties to the
date dimension.
Lesson 1
Using Data Analyzer to Preview Your Live Data Structure 93
Lesson 2
Creating Live Models 95
Lesson 3
Working with SAP Datasphere 101
UNIT OBJECTIVES
LESSON OBJECTIVES
After completing this lesson, you will be able to:
● Access data for your model with the data analyzer.
LESSON SUMMARY
You should now be able to:
● Access data for your model with the data analyzer.
LESSON OBJECTIVES
After completing this lesson, you will be able to:
● Create a live model with SAP S/4HANA data.
● Create a live model with SAP HANA data.
● Create a live model with SAP Business Warehouse data.
● Create a live model with SAP BusinessObjects data.
Overview
Live models are created with SAP data and are created in the same way, regardless of the
SAP system. The only difference is the System Type, Connection, and Data Source you select
in the dialog when you begin the creation process.
Your SAP Analytics Cloud system administrator typically creates the Connection, while your
SAP source system team creates the Data Sources.
SAP S/4HANA
SAP S/4HANA Integration
The integration with an S/4HANA system can be done in two ways:
● As a live data connection: No data is stored on SAP Analytics Cloud.
● As an import data connection: Data is stored on SAP Analytics Cloud and updated
periodically. When using SAP Analytics Cloud as the interface for planning activities, data
must be imported from S/4HANA.
SAP HANA
SAP HANA Integration
SAP Analytics Cloud is integrated with SAP HANA in two ways:
● As a live data connection: Available for SAP HANA and SAP HANA Cloud.
● As an import data connection: Available for SAP HANA.
1. You can declare a Time Dimension, allowing for the use of automatic time determination
features in stories.
2. In the Measures tab, the aggregation settings can be adjusted in the live model.
Live models in SAP HANA: Below, you can see a story table with time determination options
for an SAP HANA live model. It allows for automatic time determination in stories.
BW Hierarchy Support
● Time dependent hierarchies are supported.
● Time dependent hierarchy structures are supported.
BW Variable Support
● Exit and authorization variables are supported.
● Show booked values in the search help based on the setting in the BW query.
● Merge/unmerge Prompts.
Measure/Dimension Support
For measures, you can change the following:
● Descriptions.
● Scale to be displayed as default (thousands, millions, etc.).
● The decimal place defaults: This is preferable at the model level if measure reporting has a
specific universal format (as in financial reporting), as opposed to always changing scale
and decimals at the story level.
Note:
Display and navigation attributes are not fully supported. You must manually
change the attribute column in as a property classification.
SAP BusinessObjects
SAP BusinessObjects Integration
The Integration with SAP BusinessObjects can be done in two ways:
● As a live data connection: Available for SAP BusinessObjects Universes and Web
Intelligence documents.
● As an import data connection: Available for SAP BusinessObjects Universes.
Note:
Web Intelligence Variables are not to be confused with SAP BW Variables. SAP BW
Variables often render as prompts. Web Intelligence variables are simply
calculations and formulas that have been defined with a name and will not prompt
the user for any information.
LESSON SUMMARY
You should now be able to:
● Create a live model with SAP S/4HANA data.
● Create a live model with SAP HANA data.
● Create a live model with SAP Business Warehouse data.
LESSON OBJECTIVES
After completing this lesson, you will be able to:
● Create a story using an SAP Datasphere model as the data source.
SAP Datasphere
The advantages of using an SAP Datasphere model in an SAP Analytics Cloud story include:
● More analytical capabilities or calculation for complex business requests
● Reusable objects
● Output control
● Optimized performance
● Optimized integration for SAP Business Warehouse
● Reusing data security of the source (supported by SSO)
● Analytical previews
● Self-service analytics strategies are supported - users can create their own models
It is also recommended to establish tenant links between SAP Analytics Cloud and SAP
Datasphere. This enables a better and more efficient collaboration between the two cloud
platforms. It helps to provide data very easily and for users to navigate between the
connected tenants using the Product Switch menu option.
Figure 43: Add SAP Datasphere and SAP Analytics Cloud as Trusted Origins and Enable Product Switch
Note:
The use of the different data structures in SAP Datasphere belongs to the Data
Security and User Permissions settings in SAP Datasphere.
SAP Datasphere and changes to the SAP Datasphere data model can only performed in SAP
Datasphere Data Builder. SAP Analytics Cloud cannot be used to update the model.
This simplifies story creation as the user can use the data for analyzing without having to
create or maintain a data model in SAP Analytics Cloud.
To use SAP Datasphere as a data source, you must start off with an SAP Datasphere space.
Spaces are created in the Data Builder by administrators and are virtual work environments
with their own databases. It is in the space that models created in SAP Datasphere are stored.
Note:
Spaces in SAP Datasphere and its data are used according to the Data Security
and Permission settings in SAP Datasphere.
4. When you open a model in SAP Datasphere, you can see if it has been deployed or not. A
model can only be used as a data source in SAP Analytics Cloud if it has been deployed.
5. Measures are taken from fact source. Calculated and restricted measures can be added.
7. Variables for different use cases. For example, input parameter push-down, restricted
measure variables.
Note:
Data Analyzer in can be used to preview data in SAP Analytics Cloud
Use the SAP Datasphere Analytic Model as a Data Source in an SAP Analytics Cloud Story
To use a model created in SAP Datasphere, you first have to create an Optimized Design
Experience story in SAP Analytics Cloud using the model that was created and deployed in
SAP Datasphere.
1. In the Select Dataset or Model dialog, select the SAP Datasphere tenant.
The SAP Datasphere model appears in the SAP Analytics Cloud story Builder panel as the
story's data source.
Unsupported Features
To view unsupported features with SAP Datasphere live connections in SAP Analytics Cloud
go to SAP Note: 2832606.
LESSON SUMMARY
You should now be able to:
● Create a story using an SAP Datasphere model as the data source.
Learning Assessment
X True
X False
2. When accessing data from SAP S/4HANA, what is a possible data source?
Choose the correct answers.
X A Query
X C Calculation View
X D InfoProvider
3. What is the source when acquiring data from SAP HANA Cloud into SAP Analytics Cloud?
Choose the correct answer.
X B Calculation View
X C Composite View
X D Responsive View
X A Exception
X B Structure
X C Variable
X D Condition
5. When using a WebI document as a data source, Web Intelligence variables are not
accessible.
Determine whether this statement is true or false.
X True
X False
X A To use a model created in SAP Analytics Cloud, you must expose the model to SAP
Datasphere.
X B To use a model created in SAP Analytics Cloud, you must select SAP Datasphere
as the data source.
X C To update a model created in SAP Analytics Cloud, you must make the changes in
SAP Datasphere.
X True
X False
2. When accessing data from SAP S/4HANA, what is a possible data source?
Choose the correct answers.
X A Query
X C Calculation View
X D InfoProvider
Data sources for SAP S/4HANA are CDS Views and Queries.
3. What is the source when acquiring data from SAP HANA Cloud into SAP Analytics Cloud?
Choose the correct answer.
X B Calculation View
X C Composite View
X D Responsive View
Calculation Views in SAP HANA Cloud are used to provide data to SAP Analytics Cloud.
X A Exception
X B Structure
X C Variable
X D Condition
Structures, variables, and conditions are supported SAP BW elements, along with time-
dependent hierarchies, variants and personalization, and parallel processing of queries.
5. When using a WebI document as a data source, Web Intelligence variables are not
accessible.
Determine whether this statement is true or false.
X True
X False
Your SAP Analytics Cloud live model has access to variables defined in the Web
Intelligence document.
X A To use a model created in SAP Analytics Cloud, you must expose the model to SAP
Datasphere.
X B To use a model created in SAP Analytics Cloud, you must select SAP Datasphere
as the data source.
X C To update a model created in SAP Analytics Cloud, you must make the changes in
SAP Datasphere.
Models created in SAP Analytics Cloud must be updated in SAP Analytics Cloud. Models
created in SAP Datasphere must be updated in the SAP Datasphere Data Builder.
Lesson 1
Configuring Geographic Data in a Model 113
UNIT OBJECTIVES
LESSON OBJECTIVES
After completing this lesson, you will be able to:
● Configure data for a geo map.
Note:
Geo enriching is available for both live and replicated data scenarios; however, in
this course we’re focusing on the replicated use case.
As a prerequisite, you must have an XLSX or CSV file with a location ID column that contains
unique data, and latitude and longitude columns.
A Location dimension is created in the modeler using location data. This acts as the
foundation for the map in your story. There are two ways to geo-enrich your data:
1. By coordinates: Geo-enriching your data by coordinates enables you to use longitude and
latitude coordinates. Your data may already include this information, but you can also
enter it manually in a file.
2. By area name: During the creation of the Location dimension you can download all the
currently supported countries, regions, and sub-regions. This option does not support an
area enrichment with mixed granularity. For example, if enriching an area that has
locations in both Country A and Country B, but Country A does not go down do the Sub-
Region level, then the enrichment can only be created to the Region level at the lowest.
The figure Geo Enrich Data by Coordinates shows how you can enrich your data by
coordinates.
Points of Interest
Points of interest are sets of geographical data that you can add to a geo map and analyze
with reference to data from a model.
You can add point of interest data from an Esri shapefile, Excel or a CSV file, or from a SAP
HANA model with a geographical dimension.
If you have a CSV or Excel file with clearly distinguishable names for latitude and longitude
columns, you can simply drag and drop the file directly into your geo map.
Note:
Points of Interest will disappear soon. To prevent disruption, please use geo
enriched dimensions instead.
SAP Analytics Cloud supports a finite number of spatial reference IDs. To avoid incorrectly
displayed data or error messages, you should know the spatial reference identifier (SRID)
used in your shapefile. Publicly available tools can help you recognize the shape identifier and
thus determine the shapefile format.
You can view and maintain point of interest data in the Files list where you can filter on the
Points of Interest file type to view the files. You can add or search points of interest, or select
points of interest to delete.
You can set access permissions for point of interest data using the Share icon in the toolbar.
Additional Information
From the Esri website you can access Esri location data, such as Points of Interest.
LESSON SUMMARY
You should now be able to:
● Configure data for a geo map.
Learning Assessment
1. When you geo-enrich data, the system concatenates the latitude and longitude columns.
Determine whether this statement is true or false.
X True
X False
X A Region
X B Area
X C Geo Reference
X D Location
X C Internet download
X D Esri shapefile
X E Geo table
1. When you geo-enrich data, the system concatenates the latitude and longitude columns.
Determine whether this statement is true or false.
X True
X False
When you geo-enrich data, the system concatenates the latitude and longitude columns.
X A Region
X B Area
X C Geo Reference
X D Location
X C Internet download
X D Esri shapefile
X E Geo table
You can get Point of Interest data from .xlsx or .csv files, SAP HANA models, and Esri
shapefiles.
Lesson 1
Defining Data Access 121
UNIT OBJECTIVES
LESSON OBJECTIVES
After completing this lesson, you will be able to:
● Apply data access control.
Securing Data
General SAP Analytics Cloud Security
Security in SAP Analytics Cloud is used to control access to data and also access to objects. It
is carried out in the following ways:
1. Controlling access to objects, or who can create a model, is accomplished via roles.
2. Controlling data access, or who can view what data and how they can interact with it, is
accomplished primarily via data access control in dimensions; however, it can also be
carried out via roles.
Roles
A role represents the main tasks that a user performs in SAP Analytics Cloud. SAP Analytics
Cloud is delivered with several standard application roles; however, the roles you see will
depend on the licenses included in your subscription.
Roles are used mainly to control activities in the system. In this context, roles are also object
oriented, for example, user X can update dimension Y.
Basic Permissions
● Create: Permits creating new objects. Users need this permission to create files and
folders or upload data to an object, such as models, stories, point of interest, and others.
● Read: Permits opening and viewing an item and its content.
● Update Permits editing and updating existing items, including the structure of models and
dimensions.
● Delete: Permits deletion of an item.
● Execute: Permits executing the item to run a process, for example, running a simulation
using a Value Driver Tree, or acquiring data from a data source.
● Maintain: Permits the maintenance of data values, for example adding records to a model,
without allowing changes to the actual data structure.
● Share: Permits the sharing of the selected item type.
● Manage: This permission lets users manage content; for example, deleting content for any
users, and resharing, copying, and moving content.
1. Model Data Privacy: Model Data Privacy determines whether the model is visible to users
other than the owner. If you switch on Model Data Privacy, only the owner of the model
and user roles that have specifically been granted access can see the data. Disable this
switch if you want the model and data to be public. Member IDs and properties can be
used when defining which roles can access which models.
2. Data Access Control in Dimensions: If you activate the Data Access Control switch for any
dimension, you can then specify the data access in the dimension's setting.
Special Considerations
For the Version dimension, a Delete column is added as well as Read and Write columns to
control which users can delete each public version. Users who have read-only permission for
public versions can still copy data to a private version that they can edit.
When Data Access Control is used with hierarchical data, you can switch on Hide Parents to
restrict which dimension members can be seen in the Modeler. If this option is enabled, users
will see only the members that they have at least read access to.
If you grant write access to a user, that user automatically receives permission to read the
data. Likewise, if you grant a user delete permission for a member of the Version dimension,
they also receive read and write permissions for it.
Note:
In the preceding example, the user can change values for Pacific and Southwest
but they cannot publish.
Additional Information
Visit SAP Help for additional information on Data Access Control for dimensions.
LESSON SUMMARY
You should now be able to:
● Apply data access control.
Learning Assessment
X A via Roles
X B via Teams
X C In the object
2. With data access control, what permission can you set for dimension members?
Choose the correct answers.
X A Update
X B Read
X C Write
X D Manage
X A via Roles
X B via Teams
X C In the object
2. With data access control, what permission can you set for dimension members?
Choose the correct answers.
X A Update
X B Read
X C Write
X D Manage
Dimension members can have Read or Write access set for them with data access control.