Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Does anyone know how to get run MDX on all datasets in a workspace via SSMS? I've successfully connected to the XMLA endpoint via SSMS (per MS doc). I can then run queries like this just fine when I connect to a specific dataset/database in the workspace:
SELECT * FROM $System.TMSCHEMA_PARTITIONS
However, I can't figure out how to run this at a "global" level for all datasets/tables at once without having to explicitly connect to EACH dataset first. Hoping someone else has a brilliant idea on how to solve for this.
Hi @arpost ,
Please refer from this solved post with similar issue like yours.
Assuming you can use the new-ish AAD based Power BI REST API custom connector you can do all this now in Power Query.
- collect all workspaces you have access to
- collect all datasets in these workspaces
- run MDX query against the datasets (via the Analysis Services connector)
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I appreciate it, @Anonymous. I try to avoid 3rd-party solutions where possible for data security.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
11 | |
6 | |
4 | |
2 | |
2 |
User | Count |
---|---|
4 | |
3 | |
3 | |
3 | |
3 |