connect_xmla
Connect to a Power BI XMLA endpoint (Fabric/Premium) to run DAX on the service. Returns a sessionId used by all session-based tools (run_dax, etc.), so no Desktop is required.
Instructions
Connect to a Fabric/Premium XMLA endpoint (powerbi://...) instead of local Power BI Desktop. Returns a sessionId that every session-based tool (run_dax, validate_dax, export_tmdl, run_bpa...) accepts unchanged - DAX runs against the Service, no Desktop needed. Endpoint/catalog/token default from DAXOPS_XMLA_ENDPOINT / DAXOPS_XMLA_CATALOG / DAXOPS_PBI_TOKEN; the token is held in memory only and never echoed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| catalog | No | dataset name in the workspace - required with an endpoint (default: env DAXOPS_XMLA_CATALOG) | |
| endpoint | No | XMLA endpoint, e.g. powerbi://api.powerbi.com/v1.0/myorg/WorkspaceName (default: env DAXOPS_XMLA_ENDPOINT) | |
| accessToken | No | AAD access token (default: env DAXOPS_PBI_TOKEN) |