With a conversion measure, you can convert units into a target unit.
Prerequisites
To prepare for unit conversion, you must import the T006 and T006D tables to your space from your SAP system (or have these tables shared to your space from another space). See Enabling Unit Conversion with T006* Tables and Views.
Context
Unit conversion allows you to convert measures with units that have different units of measure in the source system into a uniform unit of measure in SAP Datasphere to enable a proper data analysis. You can only convert values within a unit of measurement, for example 1 m into 100 cm, 1 kg into 1000 g.
Procedure
You are in the editor of your analytic model. You can create a new conversion measure by clicking the background of the canvas and choosing Add Measure in the properties panel. Choose Conversion Measure.
Edit the following properties:
Property
Description
Business Name
Enter a descriptive name to help users identify the object. This name can be changed at any time.
Technical Name
Displays the name used in scripts and code, synchronized by default with the Business Name.
To override the default technical name, enter a new one in the field. Technical names can contain only alphanumeric characters and underscores.
Select the source measure. The source measure has to be a fact source and has to refer to a measure in the underlying fact with semantic type Weight or Quantity. The measure in the fact has to have an assigned unit field.
Define the unit properties:
Property
Description
Target Unit
The target unit can be specified as:
a constant value. The available values are provided by the table T006 with unit texts from tableT006D.
a reference to a dimension that is mapped to an attribute of the fact with semantic type Quantity with Unit or Unit.
a variable. You can use an existing variable or you can create a variable for the target unit. See Use Variables for Conversion.
Define further properties:
Property
Description
Client
The conversion tables have a client field, which you can enter here.
Error
Select the error handling method. This defines how the system reacts when a value cannot be converted. Possible values are:
Set to null
Fail on error
Keep unconverted
Formatting
You can change the format of a measure in an analytic model. You can change the scale (Thousand, Million, Billion, Percent) and the number of decimal places.
Settings
Decide whether your measure should be an Auxiliary Measure. An auxiliary measure can be used for further calculation but it will be hidden in the story in SAP Analytics Cloud.
You can control whether currency conversion applies a shift (for example JPY ×100) or not, so that both shifted and unshifted measures can correctly be processed without values being shifted twice.