# OKRs and custom metrics

The functionality of [Ylem's metrics](https://github.com/datamin-io/public-documentation/blob/main/use-cases/functional-use-cases/broken-reference/README.md) allows you to set up actions based on the values of various data KPIs, OKRs, SLAs, or any other custom metric you use in your organization.

## Objectives and Key Results (OKRs)

OKRs (Objectives and Key Results) is a performance management framework that encourages companies to set, communicate, and monitor broad organizational goals and results. The framework is meant to be transparent and to align the business, team, and individual objectives in a hierarchal, measurable way.

Ylem's framework of metrics and pipelines perfectly fits the task of converting OKRs to practical automated actions.

## HR OKR. Number of monthly hires

Retrieve data from the data source, where you store your HR data. It can be an API of Personio, BambooHR your custom DWH, or any other data storage

<figure><img src="https://3180830455-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FD0FT8l3QzMrw546vOdHU%2Fuploads%2FnWCK1tfusgztIjdZZubn%2FScreenshot%202023-01-15%20at%2020.29.24.png?alt=media&#x26;token=f4b18f36-d9ff-47ca-95e2-007150db1f8d" alt=""><figcaption></figcaption></figure>

And then calculated the number of items with the aggregated function COUNT():

<figure><img src="https://3180830455-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FD0FT8l3QzMrw546vOdHU%2Fuploads%2FA0dtKQnlsRC41rRMyc1m%2FScreenshot%202023-01-15%20at%2020.29.33.png?alt=media&#x26;token=97d92c72-d6c1-4949-b63d-9f31cc99ca90" alt=""><figcaption></figcaption></figure>

## Customer success OKR. Number of sign-ins per month

First, you need to retrieve data from your data source when sign-ins are in the current month:

<figure><img src="https://3180830455-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FD0FT8l3QzMrw546vOdHU%2Fuploads%2FEFMNKT0ckiQpow7fWbVO%2FScreenshot%202023-01-15%20at%2020.34.02.png?alt=media&#x26;token=309a3089-5e78-44f7-b528-b84f03e58de6" alt=""><figcaption></figcaption></figure>

And then as same as in the previous example, to calculate a number of it:

<figure><img src="https://3180830455-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FD0FT8l3QzMrw546vOdHU%2Fuploads%2Fw8PuccbC6vyAkIRjwAsf%2FScreenshot%202023-01-15%20at%2020.34.10.png?alt=media&#x26;token=34cc62aa-9bb3-4e48-b066-3c00056fa649" alt=""><figcaption></figcaption></figure>

## Marketing OKR. The average number of website actions per user

<figure><img src="https://3180830455-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FD0FT8l3QzMrw546vOdHU%2Fuploads%2FzQ7Uh27TAaYajh6APcip%2FScreenshot%202023-01-15%20at%2020.36.30.png?alt=media&#x26;token=4b4adfcb-ebf6-4c25-8a63-8e40bb8fa554" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3180830455-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FD0FT8l3QzMrw546vOdHU%2Fuploads%2FTkFwIknoILwGDyMd5MTJ%2FScreenshot%202023-01-15%20at%2020.36.37.png?alt=media&#x26;token=d389d6e4-8e48-4f53-bbe2-a7100075476c" alt=""><figcaption></figcaption></figure>

## Sales or Operations OKR. Monthly shipped amount

<figure><img src="https://3180830455-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FD0FT8l3QzMrw546vOdHU%2Fuploads%2FtUCpY0aQBL0cYPTYFq6C%2FScreenshot%202023-01-15%20at%2020.42.30.png?alt=media&#x26;token=94d631d4-8dec-46f1-ae2d-ba5715771866" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3180830455-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FD0FT8l3QzMrw546vOdHU%2Fuploads%2FMF4k3XIhqv4cWDzyr0XR%2FScreenshot%202023-01-15%20at%2020.42.39.png?alt=media&#x26;token=70c91378-4bcc-4d81-9b36-0bd938385ca5" alt=""><figcaption></figcaption></figure>
