> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bijection.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Power BI workspace datasets

> Observe semantic model metadata in one Power BI workspace.

Mount [app-rest](https://docs.bijection.com/integrations/native-rest.md#mount-and-bind) with
`restEndpoint` at `https://api.powerbi.com` and path
`/v1.0/myorg/groups/<workspaceId>/datasets`. Seal a bearer token authorized
to read the workspace's datasets and rotate it for the same workspace.
Bind the receiver and the mount under the same `data` label.

Initialize with
`{ profile: { mode: "provider", provider: "powerbi.datasets", limit: 100 } }`.
Each poll reads one unpaged response and upserts each dataset by `id`.
A response above the selected limit (at most 100 rows) or 36 KiB is
refused. Omitted datasets leave earlier observations in place. Power BI
owns refresh and DAX execution.

To land DAX query results, declare ``powerbiDax({ api, provider }, { workspaceId, dataset, key, fields, columns? })`…` ``
from `@bijectionhq/library-connectors/powerbi` and feed it through
`@bijectionhq/library-sources`. The statement text is fixed in the deployed
declaration, its digest is in the lock, and it never travels in a feed's
terms. `provider` is the `statement` target of
`statementProvider({ protocol: "powerbiRest", endpoint: "https://api.powerbi.com", secret })`.
Deploy installs the statement there by digest, and the provider runs it
through `executeQueries`. `executeQueries` carries no parameters, so the
statement takes no binds; read a parameterized statement through the model's
XMLA endpoint with `ssas.dax`. `bijection check` admits the text with the
guest's DAX parser. Each pass is one snapshot, checked against the declared
key and columns. An `error` anywhere in the answer, including the limited
rows Power BI returns past its row limit, refuses the page.
[Microsoft Get Datasets In Group](https://learn.microsoft.com/en-us/rest/api/power-bi/datasets/get-datasets-in-group)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.