> For the complete documentation index, see [llms.txt](https://docs.enlyze.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.enlyze.com/en/integrations/power-bi/tutorials/querying-machine-productivity-metrics.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.enlyze.com/en/integrations/power-bi/tutorials/querying-machine-productivity-metrics.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
