Power BI with DBine

How to connect DBine to Power BI and what you can do once it's connected. This page is written from what the Power BI driver says about itself, so it matches the version of DBine you download.

Connect

  1. In DBine, open New connection.
  2. Pick Power BI in the list of engines.
  3. Fill in the fields below, press Test connection and then Save and connect.

Default port: 443.

General

FieldDescription
AuthenticationOptions: Microsoft Entra ID (browser, with MFA), Service principal (Client ID and secret), Service principal (Client ID and certificate), Default credential (environment variables, managed identity, Azure CLI), Azure managed identity, Access token
Default: Microsoft Entra ID (browser, with MFA)
TenantRequired with a service principal. Empty: the tenant of the account you sign in with.
Example: contoso.onmicrosoft.com or GUID
Only with Authentication: Microsoft Entra ID (browser, with MFA), Service principal (Client ID and secret), Service principal (Client ID and certificate), Default credential (environment variables, managed identity, Azure CLI), Azure managed identity.
UserOptional: the account to sign in with. Connections without a user in the same cloud, tenant and application share a single account: to use another, write it here.
Example: ana@contoso.com
Only with Authentication: Microsoft Entra ID (browser, with MFA).
Client IDThe service principal's Client ID, or that of a user-assigned managed identity (empty: the system's).
Example: 00000000-0000-0000-0000-000000000000
Only with Authentication: Service principal (Client ID and secret), Service principal (Client ID and certificate), Azure managed identity.
Client secretKept in the system keychain, never in DBine's files.
Only with Authentication: Service principal (Client ID and secret).
CertificateA PEM with the certificate and its private key (PKCS#8, with or without a password), or a PFX / PKCS#12. The key has to be RSA. The certificate without the key is uploaded in Certificates & secrets of the app registration.
A file on this computer.
Example: certificate.pem or .pfx
Only with Authentication: Service principal (Client ID and certificate).
Certificate passwordThe PFX's or the encrypted private key's. Empty if it has none.
Kept in the system keychain, never in DBine's files.
Only with Authentication: Service principal (Client ID and certificate).
Access tokenA token for Power BI from the chosen cloud. DBine doesn't renew it: when it expires you have to paste another.
Only with Authentication: Access token.
WorkspaceOptional: name or ID. With many workspaces it's best to specify one: listing them all takes a call per workspace.
Semantic modelThe model that opens on connecting: its name, or its ID for a model shared with you without access to its workspace.
Read-onlyDAX queries never change the model. Unchecked, it allows refreshing the model, changing its schedules and permissions, renaming it and deleting it.
On or off.

Advanced

FieldDescription
CloudGCC High, DoD and China need an application of your own registered in that cloud (Sign-in application: Custom).
Options: Public (api.powerbi.com), US Government (GCC), US Government (GCC High), US Government (DoD), China (21Vianet)
Default: Public (api.powerbi.com)
Sign-in applicationIf your tenant hasn't approved the DBine application yet, the Azure CLI client is usually allowed.
Options: DBine (default), Azure CLI client, Custom (Client ID)
Default: DBine (default)
Only with Authentication: Microsoft Entra ID (browser, with MFA).
Application client IDA public client application with delegated Power BI permissions and the redirect URI http://localhost.
Example: 00000000-0000-0000-0000-000000000000
Only with Sign-in application: Custom (Client ID).
Query APIAutomatic uses executeDaxQueries where the model supports it and executeQueries otherwise, which returns at most 100,000 rows per query.
Options: Automatic, executeQueries (JSON, any license), executeDaxQueries (Arrow, Premium or Fabric capacity)
Default: Automatic
Maximum query time (s)Default: 600
Test as user (RLS)Queries are filtered with that user's row-level security. It needs write permission on the model (executeQueries) or being a workspace administrator (executeDaxQueries).
Example: ana@contoso.com
Test with roles (RLS)Comma-separated roles (executeDaxQueries only).
Example: Sales North, Sales South
CUSTOMDATA() valueexecuteDaxQueries only.
Read the model's full definition (Fabric API)With write permission on the model it also brings measures, relationships and hierarchies in Pro workspaces. It asks for the SemanticModel.ReadWrite.All permission and only uses it to read.
On or off.

What the explorer shows

Under the connection: Semantic models. Inside each one:

Query editor

The editor uses DAX, with completion for the connection's objects. Statements and commands run against the database selected in the tab.

What the editor accepts:

Read-only DAX queries. Each query starts with EVALUATE <table expression>
(a table, SUMMARIZECOLUMNS, FILTER, TOPN…; a single value goes in braces: EVALUATE { [Sales] }).
DEFINE before the first EVALUATE declares MEASURE, VAR, TABLE, COLUMN or FUNCTION that apply
to every EVALUATE that follows. ORDER BY and START AT sort and page the result.
Comments: //, -- and /* */. Tables go in single quotes ('Sales') and columns
and measures in square brackets ('Sales'[Amount], [Total sales]).

Tools for Power BI

Available

  • Server monitor
  • Drop databases
  • Database properties
  • Relations in the ER diagram
  • Rename objects
  • Users and permissions

Not available for Power BI

  • Graphical execution plans
  • Live query profiler
  • Sessions and running queries
  • End a session
  • Locks: who blocks whom
  • Cancel another session's query from the sessions list
  • Manual transactions (commit and rollback)
  • Index usage
  • Create databases
  • Visual designer for new objects
  • Compare and sync schemas
  • Clone tables
  • Native bulk load when migrating data
  • Backups

Why a tool doesn't apply to an engine, and the details of each one, are in the engine support reference.

Generated from the Power BI driver 0.1.0, which DBine downloads the first time you connect to Power BI.

Download DBineAll engines