> For the complete documentation index, see [llms.txt](https://docs.docbits.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.docbits.com/chinese/gao-ji-gong-neng-yu-gong-ju/powerbi.md).

# 将 DocBits 连接到 Power BI

如何配置 PowerBI

您可以通过两种不同的方式将 DocBits 数据连接到 Power BI。合适的方法取决于您希望如何使用这些数据。

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

### 如何选择连接方式：

* **方法 1：通过 ClickHouse 连接**
  * **分析大量数据**。
  * **历史趋势和仪表板**。

{% content-ref url="/pages/mXhBppuBzCRe44NLTLcG" %}
[通过 ClickHouse 连接](/chinese/gao-ji-gong-neng-yu-gong-ju/powerbi/powerbi.md)
{% endcontent-ref %}

* **方法 2：通过只读数据库连接**
  * **运营数据或近实时数据**。
  * **直接访问当前 DocBits 表**。

{% content-ref url="/pages/3ODLzBmxWOYcrt8MDN24" %}
[通过只读数据库连接](/chinese/gao-ji-gong-neng-yu-gong-ju/powerbi/connect-via-read-only-database.md)
{% endcontent-ref %}


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.docbits.com/chinese/gao-ji-gong-neng-yu-gong-ju/powerbi.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
