# 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="powerbi/powerbi" %}
[powerbi](https://docs.docbits.com/advanced-functions-and-tools/powerbi/powerbi)
{% endcontent-ref %}

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

{% content-ref url="powerbi/connect-via-read-only-database" %}
[connect-via-read-only-database](https://docs.docbits.com/advanced-functions-and-tools/powerbi/connect-via-read-only-database)
{% endcontent-ref %}
