analystUpdated 2026-10-27

Power BI Connection Guide

Power BI Desktop — PostgreSQL connection dialog.

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

  1. Open Power BI Desktop.
  2. Click Get Data on the ribbon (or File > Get Data).
  3. In the list that appears, choose Database on the left, then PostgreSQL database on the right. Click Connect.
  4. 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
    • Database: the workspace slug (also called the tenant slug). For example, acme-demo. To connect directly to a single model, you can also use acme-demo/modelx (workspace/model) or acme-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.
  5. Click OK.
  6. 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-password1 for the demo workspace).
  7. Click Connect.
  8. 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_transaction and its modely__dim_* tables) are listed only when the administrator has set LOOKER_GATEWAY_ENABLED=true and you sign in as an administrator or modeler.

Worked example using the demo workspace

FieldValue
Serverlocalhost:5433
Databaseacme-demo
Data Connectivity modeDirectQuery
Authentication typeDatabase
User nameadmin@acme-demo.com
PasswordAcme-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

FieldWhat to enterWhy
ServerHOST:5433Tells Power BI where the Tessallite gateway is listening. Always include the port number.
DatabaseWorkspace slugTells Tessallite which workspace (tenant) you want to query. You can optionally scope it to a single model.
Data Connectivity modeDirectQuery (recommended)Keeps queries live so Tessallite can route them through aggregates and pockets for speed.
Authentication typeDatabaseTessallite uses email-and-password credentials, which maps to the Database option in Power BI.

DirectQuery vs Import mode

ModeHow it worksRecommendation
DirectQueryPower 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.
ImportPower 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:

Step-by-step

  1. Open Power BI Desktop, click Get Data, choose Database, then SQL Server Analysis Services database, and click Connect.
  2. Server: the XMLA address of your workspace: https://HOST:PORT/api/v1/xmla/WORKSPACE, for example https://localhost:8080/api/v1/xmla/acme-demo. The Endpoints page in Tessallite shows the address for your installation.
  3. Database: the model's catalog name, WORKSPACE__PROJECT__MODEL (for example acme-demo__project1__modelx), or leave it empty and pick the model in the Navigator.
  4. Choose Connect live and click OK.
  5. 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 of EMAIL (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".
  6. In the Navigator, select the model and click OK.

What to expect

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

Two Power BI table visuals on a live connection to Tessallite: base amount by payment method, and base amount by account type and authentication method, each with its total row (181,174,988.27).

Matrices with subtotals

Two Power BI matrix visuals: account type by authentication method with column totals, and country code expanded to channel with a subtotal per country and a grand total.

A hierarchy in a matrix

Power BI matrices from a user hierarchy (country, then city) by payment method with country subtotals, and customer type by digital flag with two measures and totals.

Bar and column charts

A Power BI bar chart of base amount by payment method and a clustered column chart of base amount by account type with a payment method legend.

Line over a date hierarchy, and pie

A Power BI line chart of base amount by year and quarter from a date hierarchy, and a pie chart of base amount by customer segment with values and shares.

Combo chart and treemap

A Power BI line and column combo chart of base amount and average base amount by country code, and a treemap of base amount by merchant category.

Conditional formatting and tooltips

A Power BI table with background colours scaled by base amount (conditional formatting) and a bar chart whose tooltips add average base amount and transaction count.

Gauge and list slicer

A Power BI gauge of base amount with maximum base amount as its maximum, and a list slicer of country codes.

KPI with a goal, and range slicer

A Power BI KPI of base amount against net amount as its goal, trended by year, and a numeric range slicer on year (2024 to 2026).

Page and report filters

A Power BI column chart of transaction count by device type and a card of net amount, both restricted by a page filter (customer type) and a report filter (event type).

Cross-highlight: clicking a bar

A Power BI bar chart of base amount by payment method with BANK_TRANSFER selected, and a column chart of base amount by country code that highlights the BANK_TRANSFER share of each country.

Drill-down: expand all down one level

A Power BI column chart of base amount expanded from Country down to City (Expand all down one level), beside a matrix of base amount by country.

Troubleshooting

SymptomLikely causeResolution
Cannot connect (PostgreSQL method)Wrong host or portConfirm Server field is HOST:5433.
Authentication failed (PostgreSQL connector)Wrong credentials or auth typeUse Database auth with your Tessallite email and password; the PostgreSQL connector does not use Windows authentication.
Analysis Services connector asks for credentials againWindows sign-in is not set up for your computerIn 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 functionThe report uses DAX that Tessallite does not answerBuild the calculation as a measure in the model, or use the PostgreSQL connector for that report.
Data looks stale after changes in TessalliteImport mode is caching old dataSwitch to DirectQuery, or manually refresh the dataset in Import mode.
Scheduled refresh fails in Power BI ServicePrivate networkInstall and configure an on-premises data gateway.
Ungrouped query returns NULLs for some columnsDisconnected table in modelExpected behavior: columns from unreachable tables show typed NULL values.
COUNT(*) returns unexpected result countAggregate-only guard activeAggregate-only queries route through the semantic path, not the raw path.

Best practices