A collection of Microsoft Fabric utility notebooks to solve common challenges in Data Engineering and Fabric/PowerBI administration.
Enables the execution of DAX queries via the XMLA endpoint.
This utility solves the limitation where standard sempy functions and REST APIs error out when trying to handle Row-Level Security (RLS) enabled datasets when authenticated as a Service Principal. It uses the .NET AdomdClient to ensure reliable connection and security context switching.
- Download the desired
.ipynbfile from this repository (e.g.,fabric_execute_dax_xmla.ipynb). - Go to your Microsoft Fabric Workspace.
- Click New -> Import notebook.
- Upload the file.
- Configure the variables (e.g.,
workspace_name,dataset_name). - Run the notebook!
To use this notebook successfully, ensure the following configuration:
- Service Principal: Must be an Admin, Member, or Contributor in the target workspace.
- Capacity: Premium (P-SKU) or Fabric (F-SKU) capacity (required for XMLA endpoint access).
- Tenant Settings (Admin Portal):
- Developer settings -> Allow service principals to use Power BI APIs: Enabled (Allows SP login).
- Integration settings -> Allow XMLA endpoints and Analyze in Excel: Enabled (Allows XMLA connectivity).