> For the complete documentation index, see [llms.txt](https://docs.theconfigteam.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.theconfigteam.com/prebilt-ewm/configuration-guide/configuring-prebilt-features/analytics/embedding-analytics-into-prebilt.md).

# Embedding Analytics into PreBilt

KPIs can be embedded either within the newly created logical transaction as a dashboard or within any logical transaction step.

<div><figure><img src="https://1016750988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7lFTpSLijn44pippdL6u%2Fuploads%2Fgit-blob-0f3966fff17d5c67b916ae6486a1321ffa77d2db%2Fimage%20(102).png?alt=media" alt=""><figcaption><p>Embedded within the Analytics logical transaction</p></figcaption></figure> <figure><img src="https://1016750988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7lFTpSLijn44pippdL6u%2Fuploads%2Fgit-blob-2d1900808510a493790b4c5cb1e7552192d1082b%2Fimage%20(105).png?alt=media" alt=""><figcaption><p>Embedded within a standard logical transaction</p></figcaption></figure></div>

{% hint style="info" %}
**Note**

When embedding KPI tiles into standard logical transactions, ensure there is enough screen space available to maintain a positive user experience.
{% endhint %}

### Embedding a KPI tile in to a transaction

{% stepper %}
{% step %}

#### Identify the transaction

Identify the logical transaction where you would like to embed your KPI tile by selecting the information icon in the top right of the PreBilt UI.

{% hint style="info" %}
**Prerequisite**

The SET/GET Parameter ID /SCWM/RF\_TECH\_TITLE must be maintained in SU3 with the parameter value set to "X".
{% endhint %}

<div><figure><img src="https://1016750988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7lFTpSLijn44pippdL6u%2Fuploads%2Fgit-blob-c56c276f3dc1aa2b52f35df4c3ce917f1a03b97d%2Fimage%20(106).png?alt=media" alt=""><figcaption></figcaption></figure> <figure><img src="https://1016750988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7lFTpSLijn44pippdL6u%2Fuploads%2Fgit-blob-c334fc4ffea94cd1a28bad4a1740537abf2621f2%2Fimage%20(107).png?alt=media" alt=""><figcaption></figcaption></figure></div>
{% endstep %}

{% step %}

#### Create "Extra Elements"

{% hint style="info" %}
**Prerequisite**

KPI Screen Element and Parameters must be configured in the 'Defining Extra Screen Elements' section beforehand
{% endhint %}

Access the transaction */TCTM/EWM\_CFG* and navigate to the appropriate logical transaction and step. Once there, select the **Extra Elements** node.

Enter and maintain the following element details:

* **Element Name**: Specify the name of your Analytics Tile.
* **Element Type**: Select "KPI" as the type of tile.
* **Row**: Indicate the row where the tile should be placed.
* **Visual Length**: Define the visual length of the KPI tile.
* **Line Position**: If the tile shares a row with other objects, determine its display order.
* **Row Span**: Specify the number of rows the KPI tile will span.

<figure><img src="https://1016750988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7lFTpSLijn44pippdL6u%2Fuploads%2Fgit-blob-f6bf165df4a66dc1c7b45424e16ae2e4de38d594%2Fimage%20(109).png?alt=media" alt=""><figcaption></figcaption></figure>

Select the entry and then choose the **Parameters** sub-node.

<figure><img src="https://1016750988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7lFTpSLijn44pippdL6u%2Fuploads%2Fgit-blob-a29f4e8ebdf87869afef1a977d6bff9caa906ba6%2Fimage%20(110).png?alt=media" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

#### Create "Parameters"

Save the changes to a customising request.

Update the **KPI Key** field in the maintenance table `/TCTM/EAP_ANALY` with the value from the **Extra Element Parameter Value** shown in the screenshot above.

* If the KPI is based on standard measurement services, the KPI type should be set to EWM\_MS *(EWM Measurement Service)* and an EGF object must be maintained.
* If the KPI tile is a Fiori KPI, the KPI type should be set to SSB\_EVAL *(Smart Business Evaluation)* and your Fiori CDS view ID would need to be maintained against the Unique Identifier Field.

<figure><img src="https://1016750988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7lFTpSLijn44pippdL6u%2Fuploads%2Fgit-blob-34a386d839e01f84219e11227b32be7386214d39%2Fimage%20(111).png?alt=media" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

After saving, the KPI tile will be embedded in the logical transaction and visible on screen.

<figure><img src="https://1016750988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7lFTpSLijn44pippdL6u%2Fuploads%2Fgit-blob-454391ef84d4bf6a41e21e551e3a1e6d7a4574e2%2Fimage%20(112).png?alt=media" alt=""><figcaption></figcaption></figure>

### Creating a KPI dashboard

The YTANLY logical transaction allows multiple tiles to be created in to a KPI dashboard.

This process is similar to embedding within a specific logical transaction as above. Instead of selecting the specific logical transaction in transaction */TCTM/EWM\_CFG*, select logical transaction YTANLY and follow the steps as normal.
