# Connecting DocBits to Power BI

You can connect DocBits data to Power BI in two different ways. The right method depends on how you want to use the data.

{% embed url="<https://youtu.be/O1MtuXf_R_M>" %}

### When to Use Which Connection:

* **Method 1: Connect via ClickHouse**
  * **Analytics on large data volumes**.
  * **Historical trends and dashboards**.

{% content-ref url="/pages/GRYxDQftLs4Z8uWdqmfK" %}
[Connect via ClickHouse](/advanced-functions-and-tools/powerbi/powerbi.md)
{% endcontent-ref %}

* **Method 2: Connect via Read-Only Database**
  * **Operational or near real-time data**.
  * **Direct access to current DocBits tables**.

{% content-ref url="/pages/Sc0U8Gmemy7VVId3Wgeb" %}
[Connect via Read-Only Database](/advanced-functions-and-tools/powerbi/connect-via-read-only-database.md)
{% endcontent-ref %}


---

# 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.docbits.com/advanced-functions-and-tools/powerbi.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.
