Connecting Power BI¶
Power BI reads data from the platform through Trino, the platform’s SQL
endpoint. You do not host Trino yourself: it is a managed service run by
Datafoundation at https://<customer>.trino.datafoundation.eu. This page
describes what works today, what does not work yet, and what happens to
your data when you use Power BI.
Management summary¶
Power BI Desktop works today. Each user installs the Trino connector and signs in with their own platform account, the same account they use for Security Center. Every query runs as that user, and the access rules from Security Center apply.
Sign-in with a platform account is the only supported way in. There is no supported way yet to create service accounts, so applications and unattended processes cannot access the data. Service accounts are on the roadmap.
Scheduled refresh in the Power BI Service is not supported yet, because it needs such a service account.
Power BI stores data outside the platform. Data you import into a Power BI report is a copy. Once you publish that report to the Power BI Service, the copy is stored in Microsoft’s cloud, not in your own network and not on the platform.
Where your data ends up¶
The platform keeps your data on sovereign infrastructure and enforces who may see it. As soon as Power BI has loaded data, that copy is no longer under the platform’s control:
Power BI Desktop, Import mode: the data is copied into the report file (
.pbix) on the user’s computer. Anyone who receives that file sees the data, whatever their own access on the platform.Power BI Service: publishing a report uploads its imported data to Microsoft’s cloud, in the region of your Power BI tenant. The data is then stored there, outside your network and outside the platform.
DirectQuery: the data is not stored in the report, but query results still pass through the Power BI Service when the report is viewed online.
The access rules in Security Center apply when Power BI loads the data. They do not apply to the copy afterwards. Only load what the report’s audience may see, and decide up front whether storing that data in Microsoft’s cloud is acceptable for your organization.
What is not supported yet¶
A published report that refreshes on a schedule in the Power BI Service has no user present to sign in. It needs a service account: a non-personal account with its own, limited access to the data, used by an on-premises data gateway. There is no supported way yet to create such an account, so this set-up is not possible today. The same holds for other applications that need to read data without a person signing in.
Service accounts for applications are on the roadmap. Until then:
Use Power BI Desktop with per-user sign-in (see Installing the Trino connector in Power BI Desktop). Sharing is then file-based, and the data location described in Where your data ends up applies.
Use Apache Superset for shared dashboards. It connects to Trino with the signed-in user’s own identity and keeps platform-level enforcement end to end.
Installing the Trino connector in Power BI Desktop¶
Power BI Desktop connects to the platform with a custom Trino connector. You sign in with your own platform account, so every query runs as you and the rules from Security Center apply.
Download the connector:
trino.mez. Check that the file is intact (see Where the connector comes from).Copy
trino.mezto the folderDocuments\Power BI Desktop\Custom Connectors. Create the folder if it does not exist yet.The connector is not certified by Microsoft, so Power BI must be allowed to load it. In Power BI Desktop, open File > Options and settings > Options > Security, and under Data Extensions choose Allow any extension to load without validation or warning. Click OK.
Warning
This setting applies to every custom connector on the computer, not only to this one. Power BI then loads any
.mezfile in theCustom Connectorsfolder without checking it. Only put connectors there that you trust, and ask your IT department first if they manage Power BI settings centrally. The connector is not signed, so it cannot be trusted by certificate (TrustedCertificateThumbprints) instead.Close and restart Power BI Desktop.
Choose Get data > More…, search for Trino, select it and click Connect.
Fill in Host
<customer>.trino.datafoundation.euand Port443. Leave User empty. Optionally fill in Catalog to show only one catalog, or SQL Query to load the result of one query. Click OK.Choose Organizational account and click Sign in. In the window that opens, sign in with the account you use for Security Center (see Introduction). Then click Connect.
In the navigator, select the tables you need and click Load, or Transform Data to edit them first.
Power BI remembers the sign-in for this host. To sign in as someone else, remove the host under File > Options and settings > Data source settings and connect again.
Where the connector comes from¶
trino.mez is built from open source code: a fork of the community
Power BI Trino connector that adds the
sign-in through the platform.
Source |
|
Version (commit) |
|
Build |
|
SHA256 |
|
The build is reproducible: building that commit gives exactly the same file. To check a downloaded file, run this in PowerShell and compare the result with the SHA256 above:
Get-FileHash .\trino.mez -Algorithm SHA256