# Metrics Generation

{% hint style="info" %}
Metrics Generation is currently a Beta feature. If you have any questions or feedback, please reach out to <support@getselectstar.com>
{% endhint %}

Select Star can help you document metrics that currently exist in your BI layer, saving hours spent documenting.

By looking at the calculation and lineage behind your dashboards, Select Star can generate metric documentation, including the formula, dimensions, and where it's represented in your BI layer. We extract the measures in the datasets powering your dashboards

{% hint style="info" %}
Metrics generation is currently supported for PowerBI and Tableau with support for Looker coming soon.
{% endhint %}

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

## Generating Metrics

The process for generating metrics is as follows:

1. On the dashboard list page, select one or more dashboards that you want to generate metrics for
2. Click **Generate Metrics** at the top of the list

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

3. Click confirm in the modal. Metrics will be created with the **Draft** tag applied, and you will receive an email summary with metrics that were created.

<figure><img src="/files/6AmZawwbS3bx3e3BPKVp" alt=""><figcaption></figcaption></figure>

4. Review the generated metrics.

Once metrics are finished generating, you'll receive an email with the generated metrics. We highly recommend you review the generated metrics and organize them into [Collections](/data-management/collections.md) and remove the **Draft** tag when ready.

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

### Things to Know

1. The user who generates the metric will automatically be set as the business and technical owner of the created metrics
2. If Select Star detects that a metric already exists, it will not create a duplicate metric, and skipped metrics will be indicated in the email. Duplicates are detected when:
   1. Another metric with the same data measure defined in it's "represented as" section already exists
   2. If another metric already exists with the same name
   3. If mulitiple generated metrics share the same name, only one will be created, with all measures included in the "represented as" field
3. If Select Star detects a similar metric, it will be included in the generated metric's description


---

# 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.selectstar.com/features/documents/metrics/metrics-generation.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.
