Dagster allows you to represent your PowerBI Workspaces as assets, alongside other your other technologies like dbt and Sling. This allows you to see how your PowerBI assets are connected to your other data assets, and how changes to other data assets might impact your PowerBI Workspaces.
Here, we provide interfaces to manage PowerBI Workspaces using the PowerBI API.
Authenticates with PowerBI using a service principal.
Authenticates with PowerBI directly using an API access token.
Represents a workspace in PowerBI and provides utilities to interact with the PowerBI API.
( deprecated ) > This API will be removed in version 1.9.0.
Use dagster_powerbi.load_powerbi_asset_specs instead.>
Returns a Definitions object which will load Power BI content from the workspace and translate it into assets, using the provided translator.
context (Optional[DefinitionsLoadContext]) – The context to use when loading the definitions. If not provided, retrieved contextually.
dagster_powerbi_translator (Type[DagsterPowerBITranslator]) – The translator to use to convert Power BI content into AssetSpecs. Defaults to DagsterPowerBITranslator.
enable_refresh_semantic_models (bool) – Whether to enable refreshing semantic models by materializing them in Dagster.
A Definitions object which will build and return the Power BI content.
Polls the refresh status of a PowerBI dataset until it completes or fails.
Translator class which converts raw response data from the PowerBI API into AssetSpecs. Subclass this class to implement custom logic for each type of PowerBI content.
( experimental ) > This API may break in future versions, even between dot releases.
Returns a list of AssetSpecs representing the Power BI content in the workspace.
workspace (PowerBIWorkspace) – The Power BI workspace to load assets from.
use_workspace_scan (bool) – Whether to scan the entire workspace using admin APIs at once to get all content. Defaults to True.
The set of assets representing the Power BI content in the workspace.
List[AssetSpec]