Power BI Connection Guide

What this covers
This guide walks you through connecting Power BI Desktop to Tessallite using the PostgreSQL connector on port5433. DirectQuery sends queries through the governed gateway when Power BI needs results. Import stores a snapshot and asks Tessallite again when it is refreshed. Both modes passed the bounded native local checks in Step-by-step Power BI Scenarios.
A second section explains the live connection through the Analysis Services connector, where Power BI sends DAX and Tessallite answers it from the governed model.
Connect Power BI to Tessallite (PostgreSQL connector)
Power BI Desktop connects to Tessallite through the same JDBC gateway that other SQL tools use. Tessallite listens on port 5433 and speaks the PostgreSQL wire protocol, so Power BI treats it as a standard PostgreSQL database.
Step-by-step
- Open Power BI Desktop.
- Click Get Data on the ribbon (or File > Get Data).
- In the list that appears, choose Database on the left, then PostgreSQL database on the right. Click Connect.
- Fill in the connection dialog:
- Server: your Tessallite host followed by a colon and the port number.
- Local development:
localhost:5433 - Hosted demo:
sql.cloud.tessallite.io:5433
- Local development:
- Database: the workspace slug (also called the tenant slug). For example,
acme-demo. To connect directly to a single model, you can also useacme-demo/modelx(workspace/model) oracme-demo/project1/modelx(workspace/project/model). See the JDBC Connection Guide for the full format reference. - Data Connectivity mode: choose DirectQuery for interactive gateway queries, or Import for a locally stored snapshot that you refresh. The same governed routing and eligible acceleration apply when either mode sends a query.
- Server: your Tessallite host followed by a colon and the port number.
- Click OK.
- Power BI asks for credentials. Choose Database as the authentication type.
- User name: your Tessallite login email (for example,
admin@acme-demo.com). - Password: your Tessallite password (for example,
Acme-demo-password1for the demo workspace).
- User name: your Tessallite login email (for example,
- Click Connect.
- In the Navigator that appears, you will see the models published in the workspace. Select the tables you want, then click Load or Transform Data. When the model declares keys between the tables you load, Power BI creates the relationships between them; a model shown as one table needs none. A model's own tables (for example
modely__payment_transactionand itsmodely__dim_*tables) are listed only when the administrator has setLOOKER_GATEWAY_ENABLED=trueand you sign in as an administrator or modeler.
Worked example using the demo workspace
| Field | Value |
|---|---|
| Server | localhost:5433 |
| Database | acme-demo |
| Data Connectivity mode | DirectQuery |
| Authentication type | Database |
| User name | admin@acme-demo.com |
| Password | Acme-demo-password1 |
After connecting, the Navigator shows every published model in the acme-demo workspace. Select a table (for example, modelx) and click Load to start building visuals.
What each field means
| Field | What to enter | Why |
|---|---|---|
| Server | HOST:5433 | Tells Power BI where the Tessallite gateway is listening. Always include the port number. |
| Database | Workspace slug | Tells Tessallite which workspace (tenant) you want to query. You can optionally scope it to a single model. |
| Data Connectivity mode | DirectQuery (recommended) | Keeps queries live so Tessallite can route them through aggregates and pockets for speed. |
| Authentication type | Database | Tessallite uses email-and-password credentials, which maps to the Database option in Power BI. |
DirectQuery vs Import mode
| Mode | How it works | Recommendation |
|---|---|---|
| DirectQuery | Power BI sends a query to Tessallite every time a visual refreshes. Tessallite routes to the fastest available path (aggregate, pocket, or source). | Recommended. You get live acceleration and governed routing. |
| Import | Power BI downloads a result and stores it locally. Visuals read that snapshot until it is refreshed. | Use when a local snapshot suits the report. Refresh sends queries through Tessallite again. |
In Import mode, eligible acceleration applies during initial load and later refreshes. Between refreshes, local visuals do not ask Tessallite for new data. A saved extract also remains in its file if server permissions later change. DirectQuery queries use current access when they are sent; Power BI and Tessallite caches still make freshness relevant.
How Power BI queries work with Tessallite
Power BI Desktop generates SQL that differs from traditional BI tools. When you drag dimensions and measures onto a visual, Power BI may send a flat SELECT with no GROUP BY clause, table aliases like "$Table", and column aliases on every column. Tessallite handles all of these patterns automatically.
Ungrouped queries (raw route)
When Power BI sends a query with no GROUP BY, such as SELECT "region", "amount" FROM "project1"."modelx", Tessallite detects this and routes it through the raw path. The raw path returns individual rows from the source database instead of aggregated results. Joins defined in the model are applied as LEFT JOINs so that all rows from the fact table appear, even when a related dimension table has no matching row.
If a dimension belongs to a table that is not reachable through the model's join graph, the column still appears in the result with a type-preserving NULL value (for example, CAST(NULL AS TEXT) for a text column). This keeps the result schema stable regardless of join topology.
Aggregate-only queries
If every column in the SELECT is an aggregate function (such as SELECT COUNT(*) FROM "modelx"), Tessallite routes the query through the normal semantic path, not the raw path. This preserves correct aggregation behaviour for summary queries that Power BI generates when computing totals.
Grouped queries (normal path)
Queries that include a GROUP BY clause follow the standard Tessallite routing: the query-router checks for matching aggregates and pockets, and falls back to the source path when no pre-computed summary covers the query.
Table aliases and column aliases
Power BI's PostgreSQL connector wraps tables with AS "$Table" and adds AS "column_name" on every column. Tessallite strips these automatically before routing.
Power BI Gateway for scheduled refresh
If Tessallite is on a private network, Power BI Service cannot reach it for scheduled refresh. Install an on-premises data gateway on a machine with network access to the Tessallite host, then associate the dataset with the gateway in Power BI Service.
Connect with the Analysis Services connector (live connection)
Power BI Desktop can also connect live to one Tessallite model through SQL Server Analysis Services database. Power BI then sends DAX. The gateway turns each DAX query into SQL over your persona's model and runs it through the same governed route as every other connection, so the same access rules, row security and acceleration apply. The model appears in the Fields pane as one table, named after the model, with its columns, measures and hierarchies.
Before you start (administrator)
Windows sign-in uses the gateway HTTPS address supplied by your administrator. Use that address in saved connections; the web application address is not a Windows XMLA endpoint. Its host name must match the gateway certificate and Kerberos service principal.
When an NTLM client supplies a TLS channel binding or a verified HTTP service name, Tessallite checks it against the gateway certificate and published XMLA host. A mismatched claim is refused. Clients that omit these claims retain the existing negotiation; their connection has not proved a TLS binding. Certificate changes take effect when the gateway listener restarts. Windows clients can turn a short server name into its fully qualified DNS name for sign-in. Publish that canonical name and use a gateway certificate and HTTP service identity that cover it.
Power BI Desktop's Analysis Services connector signs in with Windows only. Two ways are supported; the full administrator procedure is in SSO Configuration:
- Computers in your Windows domain (Kerberos). A system administrator turns on XMLA Windows sign-in (System Configuration, Auth tab; it takes effect when the services restart), installs the keytab of the gateway's service principal, and configures the LDAP integration. A Windows account signs in as the Tessallite user with the same e-mail address in the directory.
- Computers outside the domain (NTLM with a password or an access token). With XMLA Windows sign-in on, a workspace administrator turns on Accept NTLM sign-in with passwords, Accept NTLM sign-in with personal access tokens, or both (Identity provider, Power BI Windows sign-in). With passwords, a user's password works after their next sign-in to Tessallite; with tokens, only tokens created after the switch was turned on work. Turning the token switch off blocks new NTLM sign-ins and retains the encrypted token hashes. Turning it back on restores access for those tokens if they are still valid; revoking a token removes its stored hash.
Step-by-step
- Open Power BI Desktop, click Get Data, choose Database, then SQL Server Analysis Services database, and click Connect.
- Server: the XMLA address of your workspace:
https://HOST:PORT/api/v1/xmla/WORKSPACE, for examplehttps://localhost:8080/api/v1/xmla/acme-demo. The Endpoints page in Tessallite shows the address for your installation. - Database: the model's catalog name,
WORKSPACE__PROJECT__MODEL(for exampleacme-demo__project1__modelx), or leave it empty and pick the model in the Navigator. - Choose Connect live and click OK.
- Choose Windows credentials:
- in the domain: Use my current credentials;
- outside the domain: Use my current credentials, with Power BI Desktop started under your Tessallite account. Close Power BI Desktop, open a Command Prompt and run
runas /netonly /user:EMAIL "C:\Program Files\Microsoft Power BI Desktop\bin\PBIDesktop.exe"with your Tessallite e-mail in place ofEMAIL(if Power BI Desktop is installed elsewhere, use that path). When asked, type your Tessallite password (or a personal access token). Windows uses this account only for the connection to Tessallite. Use alternate credentials does not work for a Tessallite account: Power BI Desktop checks those credentials against Windows on your computer before it connects, and reports "The user name or password is incorrect".
- In the Navigator, select the model and click OK.
What to expect
- Visuals, slicers, totals, Top N filters and sorting are answered by Tessallite; the numbers are the same as through the PostgreSQL connector. This includes tables and matrices with several fields, subtotals and hierarchies, the chart types (bar, column, line, area, pie, donut, scatter, combo, treemap, waterfall), cards, KPIs and gauges, list, dropdown, date-range and hierarchy slicers, visual, page and report filters, filters on a measure, tooltips, conditional formatting and Show items with no data.
- Clicking a bar, column or table row highlights or filters the other visuals of the page, and drilling a hierarchy (next level, drill up, expand all down one level, or drill mode and a click on one bar or row) is answered by Tessallite with the same numbers as Analysis Services.
- Two limits: a line or scatter chart with more data points than Power BI samples (about 3,500) is refused rather than sampled differently from Power BI, and a distinct count of a column written in the report is refused. Use a distinct-count measure from the model instead.
- A measure you write in the report (New measure on a live connection) is calculated by Tessallite from governed values, for example a ratio with
DIVIDE, a share withCALCULATEandALLorALLSELECTED(a share of what the visual shows), a filtered total withCALCULATE,SWITCH,SELECTEDVALUE,HASONEVALUE,ISINSCOPEandISFILTERED,SUMX,AVERAGEX,MINX,MAXXandCOUNTXoverVALUESof a column or over the table’s columns, andRANKXoverALL,ALLSELECTEDorVALUESof a column. The numbers are the same as Analysis Services gives. - Text in a filter or comparison you write ignores letter case, as in Analysis Services (
= "card"findsCARD). Slicers and visual filters match the exact value you pick, so a source that holdsCardandCARDas two values keeps them apart. - A DAX function Tessallite does not answer is refused with a message that names it; nothing is guessed. Build that calculation as a measure in the model instead.
- Excel keeps its own connection, the XMLA server address without the workspace, with your e-mail and password; see the Excel XMLA Connection Guide.
- DAX Studio, Tabular Editor and other tools built on Microsoft's ADOMD.NET client sign in with Windows when it is turned on: give them your e-mail as the user name and your password, when your administrator has turned on Accept NTLM sign-in with passwords (sign in to Tessallite once after that), or a personal access token, when Accept NTLM sign-in with personal access tokens is on. A refusal does not lock your account.
What the visuals look like
These pictures were taken in Power BI Desktop on a live connection to the Tessallite demo model modely. Every number comes from Tessallite; the same queries are checked against Power BI's own Analysis Services engine (see BI tool compatibility).
Tables

Matrices with subtotals

A hierarchy in a matrix

Bar and column charts

Line over a date hierarchy, and pie

Combo chart and treemap

Conditional formatting and tooltips

Gauge and list slicer

KPI with a goal, and range slicer

Page and report filters

Cross-highlight: clicking a bar

Drill-down: expand all down one level

Troubleshooting
| Symptom | Likely cause | Resolution |
|---|---|---|
| Cannot connect (PostgreSQL method) | Wrong host or port | Confirm Server field is HOST:5433. |
| Authentication failed (PostgreSQL connector) | Wrong credentials or auth type | Use Database auth with your Tessallite email and password; the PostgreSQL connector does not use Windows authentication. |
| Analysis Services connector asks for credentials again | Windows sign-in is not set up for your computer | In the domain, ask your administrator to turn on XMLA Windows sign-in and the LDAP integration. Outside the domain, start Power BI Desktop with runas /netonly (step 5) and choose Use my current credentials, with your password (sign in to Tessallite once after NTLM sign-in with passwords was turned on) or a personal access token created after NTLM sign-in with access tokens was turned on. |
| A visual shows "This DAX statement ..." or names a DAX function | The report uses DAX that Tessallite does not answer | Build the calculation as a measure in the model, or use the PostgreSQL connector for that report. |
| Data looks stale after changes in Tessallite | Import mode is caching old data | Switch to DirectQuery, or manually refresh the dataset in Import mode. |
| Scheduled refresh fails in Power BI Service | Private network | Install and configure an on-premises data gateway. |
| Ungrouped query returns NULLs for some columns | Disconnected table in model | Expected behavior: columns from unreachable tables show typed NULL values. |
| COUNT(*) returns unexpected result count | Aggregate-only guard active | Aggregate-only queries route through the semantic path, not the raw path. |
Best practices
- Choose the mode for the report. DirectQuery suits interactive gateway queries; Import suits a saved snapshot with deliberate refreshes. Check both using the native lessons.
- Scope the database field to one model (e.g.
acme-demo/modelx) when building a single-model report. This avoids loading all models in the Navigator. - Choose the connector for the report. The Analysis Services connector gives a live model with hierarchies and report measures; the PostgreSQL connector supports Import and works with any sign-in.