<?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: accessing power bi dataset using MDX query using windows is working but the same not working using python Linux server. in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/accessing-power-bi-dataset-using-mdx-query-using-windows-is/m-p/11208#M6220</link>
    <description>&lt;P&gt;@KVNARK .​&amp;nbsp;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One potential solution would be to use an open-source MDX library for Python that can connect to SSAS, such as OLAP-XMLA for Python. This library can be used to execute MDX queries against a SSAS server, including Power BI datasets.&lt;/P&gt;&lt;P&gt;Here's an example code snippet to get you started:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;from olapxmla.xmla import XMLAConnection
conn = XMLAConnection('http://&amp;lt;server_name&amp;gt;/powerbi/msmdpump.dll')
catalog = conn.Catalogs['&amp;lt;catalog_name&amp;gt;']
cube = catalog.Cubes['&amp;lt;cube_name&amp;gt;']
result = cube.execute("SELECT ... FROM ...")&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Note that you will need to replace &amp;lt;server_name&amp;gt;, &amp;lt;catalog_name&amp;gt;, &amp;lt;cube_name&amp;gt;, and the MDX query with the appropriate values for your Power BI dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another option could be to use the Power BI API to extract data from the dataset, rather than connecting directly to the SSAS&lt;/P&gt;</description>
    <pubDate>Mon, 10 Apr 2023 15:09:56 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-04-10T15:09:56Z</dc:date>
    <item>
      <title>accessing power bi dataset using MDX query using windows is working but the same not working using python Linux server.</title>
      <link>https://community.databricks.com/t5/data-engineering/accessing-power-bi-dataset-using-mdx-query-using-windows-is/m-p/11207#M6219</link>
      <description>&lt;P&gt;trying to access the SSAS POIWER BI dataset using MDX query from python LInux server. We are hitting roadblock.&amp;nbsp;The existing setup works as expected in windows system due to adodb.dll but unable to connect in Linux. Any help would be much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We were using adodbapi in python to connect to powerbi&lt;/P&gt;&lt;P&gt;in local during development it was working as the windows system had the driver and it was running perfectly fine.&lt;/P&gt;&lt;P&gt;while moving to Test environment, the databricks cluster is in Linux and it is not compatible and looking for windows driver&lt;/P&gt;&lt;P&gt;We were using adodbapi, that required pywin32. pywin32 is windows specific so we require an alterantive way to access powerbi dataset and run MDX on top of it&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2023 06:55:19 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/accessing-power-bi-dataset-using-mdx-query-using-windows-is/m-p/11207#M6219</guid>
      <dc:creator>KVNARK</dc:creator>
      <dc:date>2023-01-19T06:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: accessing power bi dataset using MDX query using windows is working but the same not working using python Linux server.</title>
      <link>https://community.databricks.com/t5/data-engineering/accessing-power-bi-dataset-using-mdx-query-using-windows-is/m-p/11208#M6220</link>
      <description>&lt;P&gt;@KVNARK .​&amp;nbsp;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One potential solution would be to use an open-source MDX library for Python that can connect to SSAS, such as OLAP-XMLA for Python. This library can be used to execute MDX queries against a SSAS server, including Power BI datasets.&lt;/P&gt;&lt;P&gt;Here's an example code snippet to get you started:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;from olapxmla.xmla import XMLAConnection
conn = XMLAConnection('http://&amp;lt;server_name&amp;gt;/powerbi/msmdpump.dll')
catalog = conn.Catalogs['&amp;lt;catalog_name&amp;gt;']
cube = catalog.Cubes['&amp;lt;cube_name&amp;gt;']
result = cube.execute("SELECT ... FROM ...")&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Note that you will need to replace &amp;lt;server_name&amp;gt;, &amp;lt;catalog_name&amp;gt;, &amp;lt;cube_name&amp;gt;, and the MDX query with the appropriate values for your Power BI dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another option could be to use the Power BI API to extract data from the dataset, rather than connecting directly to the SSAS&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2023 15:09:56 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/accessing-power-bi-dataset-using-mdx-query-using-windows-is/m-p/11208#M6220</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-10T15:09:56Z</dc:date>
    </item>
  </channel>
</rss>

