<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Is there a way to run queries on all datasets in a workspace via XMLA/SSMS? in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Is-there-a-way-to-run-queries-on-all-datasets-in-a-workspace-via/m-p/2877583#M39528</link>
    <description>&lt;P&gt;I appreciate it,&amp;nbsp;@Anonymous&lt;/a&gt;. I try to avoid 3rd-party solutions where possible for data security.&lt;/P&gt;</description>
    <pubDate>Tue, 01 Nov 2022 14:49:45 GMT</pubDate>
    <dc:creator>arpost</dc:creator>
    <dc:date>2022-11-01T14:49:45Z</dc:date>
    <item>
      <title>Is there a way to run queries on all datasets in a workspace via XMLA/SSMS?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Is-there-a-way-to-run-queries-on-all-datasets-in-a-workspace-via/m-p/2875505#M39504</link>
      <description>&lt;P&gt;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 &lt;A href="https://learn.microsoft.com/en-us/power-bi/enterprise/service-premium-connect-tools#connect-with-ssms" target="_self"&gt;MS doc&lt;/A&gt;). I can then run queries like this just fine when I connect to a specific dataset/database in the workspace:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SELECT * FROM $System.TMSCHEMA_PARTITIONS&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 21:21:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Is-there-a-way-to-run-queries-on-all-datasets-in-a-workspace-via/m-p/2875505#M39504</guid>
      <dc:creator>arpost</dc:creator>
      <dc:date>2022-10-31T21:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to run queries on all datasets in a workspace via XMLA/SSMS?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Is-there-a-way-to-run-queries-on-all-datasets-in-a-workspace-via/m-p/2876246#M39510</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/307993"&gt;@arpost&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please refer from this &lt;A href="https://community.powerbi.com/t5/Service/How-to-run-a-MDX-query-for-all-datasets-available-in-workspace/m-p/1733100" target="_self"&gt;solved post&lt;/A&gt; with similar issue like yours.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Assuming you can use the new-ish AAD based Power BI REST API custom connector you can do all this now in Power Query.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/migueesc123/PowerBIRESTAPI" target="_blank" rel="nofollow noopener noreferrer"&gt;GitHub - migueesc123/PowerBIRESTAPI: A Microsoft Power BI Data Connector or Power Query Connector fo...&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- collect all workspaces you have access to&lt;/P&gt;
&lt;P&gt;- collect all datasets in these workspaces&lt;/P&gt;
&lt;P&gt;- run MDX query against the datasets&amp;nbsp; (via the Analysis Services connector)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 06:18:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Is-there-a-way-to-run-queries-on-all-datasets-in-a-workspace-via/m-p/2876246#M39510</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-01T06:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to run queries on all datasets in a workspace via XMLA/SSMS?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Is-there-a-way-to-run-queries-on-all-datasets-in-a-workspace-via/m-p/2877583#M39528</link>
      <description>&lt;P&gt;I appreciate it,&amp;nbsp;@Anonymous&lt;/a&gt;. I try to avoid 3rd-party solutions where possible for data security.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 14:49:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Is-there-a-way-to-run-queries-on-all-datasets-in-a-workspace-via/m-p/2877583#M39528</guid>
      <dc:creator>arpost</dc:creator>
      <dc:date>2022-11-01T14:49:45Z</dc:date>
    </item>
  </channel>
</rss>

