# Querying Machine Productivity Metrics

The ENLYZE Power BI Connector allows you to query aggregated data, such as OEE metrics per machine, at selectable resolutions and time intervals. The integration utilizes parameterized queries for this purpose.

## Querying OEE Metrics for All Machines

1. Navigate to **Get Data > More...** and select **ENLYZE**.
2. Check the boxes for **Machines** and **Machine Productivity Metrics**.
3. Click **Transform Data** to access the input form for the parameterized query.
4. Choose an appropriate option for **machines**, set a **start and end date**, and specify the **resolution**.
5. Click **Invoke** to retrieve the data.

## Querying OEE Metrics for a Single Machine

To limit the amount of retrieved data, you can query OEE metrics for individual machines:

1. First, load all your machines into a table by selecting `Machines` and clicking **Load**.
2. Once the query completes, click **Transform Data**.
3. Filter your selection and, in the **productivity\_metrics** column, click **Function** to query the aggregated OEE metrics for the selected machine.
4. You will then be prompted to enter a **start and end date** as well as a **resolution**.


---

# 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.enlyze.com/en/integrations/power-bi/tutorials/querying-machine-productivity-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.
