Connect ClickHouse to Power BI through the ClickHouse ODBC/Native connectors so you can visualize database tables and queries instantly.
Joining ClickHouse’s ultra-fast analytics engine with Power BI’s rich visuals lets you build real-time dashboards without exporting data. You query ClickHouse directly and slice results inside Power BI.
• ClickHouse server reachable from your workstation
• Power BI Desktop (May 2022+)
• ClickHouse ODBC driver or the Native connector (preview)
• A read-only user in ClickHouse
Download the appropriate 64-bit driver from ClickHouse docs, run the installer, and confirm the new DSN appears in Windows ODBC Administrator.
Set DSN
, Host
, Port
, User
, Password
, and optional Database
. For large result sets add MaxRowsToFetch=1000000
.
1. Open Power BI Desktop → Get Data.
2. Choose ODBC (or “ClickHouse (Beta)” if enabled).
3. Select your DSN or paste the Native connector URL.
4. Enter credentials, select DirectQuery to avoid importing data.
5. Navigate to the schema, tick tables or paste SQL.
Use the Power Query editor or switch to the native query interface and paste SQL such as the example below. Click OK, then apply changes to load the model.
• Prefer DirectQuery so Power BI pushes filters to ClickHouse.
• Index high-cardinality columns with primary key
and ORDER BY
clauses.
• Limit columns and rows in your SQL—Power BI retrieves exactly what you request.
Create a dedicated Power BI user in ClickHouse with SHOW
and SELECT
privileges only. Encrypt traffic with HTTPS or ClickHouse's built-in TLS by setting sslmode=require
in the DSN.
• Keep queries atomic and aggregate in ClickHouse.
• Name measures clearly to match business terms.
• Refresh visuals during off-peak hours when using Import mode.
• Monitor query logs to spot slow visuals.
Yes. Enable the ClickHouse (Beta) connector under File → Options → Preview Features, then restart Power BI. Enter the full URL (e.g., https://clickhouse.myshop.local:8443
) and credentials.
No. Calculated columns require Import mode because Power BI needs the data locally. Use measures or perform calculations in ClickHouse SQL instead.
Publish the report to the Power BI service, then add a gateway connected to your ClickHouse DSN. Configure refresh frequency under Dataset settings.