# 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="/files/PG41NjCmEeVt9vk0RflQ" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/ufSgcj7whkAA3Vt0y8QA" 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="/files/Ht9qECt5182LWCtDV1OT" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/KQkUwCQ6Rfu1DTusbouG" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/mqJKFdyylI6G0ftQpvej" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/YsrlsR5LPVPGqNXGZBGX" alt=""><figcaption></figcaption></figure>

## Sales or Operations OKR. Monthly shipped amount

<figure><img src="/files/t5Es3wOVA3ZJ1oKhMCMW" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/UDrDYc3vsc9U7fL0VnxN" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ylem.co/use-cases/functional-use-cases/okrs-and-custom-metrics.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
