<?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: query in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/query/m-p/356748#M10624</link>
    <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/6971"&gt;@Eric_Zhang&lt;/a&gt;&amp;nbsp;I think what&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/46593"&gt;@vinodhkannan&lt;/a&gt;&amp;nbsp;was trying to do is convert the M query to SQL. Even if he has 8 tables as the result of 8 separate queries, could those 8 queries be turned into SQL?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As in my case, I'm using T-SQL to query SQL Server 2012 DB using the native sql query functionality in PowerBI. However, if I build a query using M within PowerBI, I couldn't then use that code to query the database directly in SSMS or use that code to&amp;nbsp;use in a&amp;nbsp;stored proc, or build a view, etc.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking for a compiler that would take the M code and produce valid SQL, but I'm not sure if that currently exists?&lt;/P&gt;</description>
    <pubDate>Mon, 12 Feb 2018 19:30:29 GMT</pubDate>
    <dc:creator>d_brew</dc:creator>
    <dc:date>2018-02-12T19:30:29Z</dc:date>
    <item>
      <title>query</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/query/m-p/300263#M8832</link>
      <description>&lt;P&gt;Hi - So I have developed power BI File connecting to MSSQL Database, amd I am using around 8 tables. The report is as expected. Is it possible for me to convert this to a SQL query?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2017 19:46:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/query/m-p/300263#M8832</guid>
      <dc:creator>vinodhkannan</dc:creator>
      <dc:date>2017-11-09T19:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: query</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/query/m-p/300579#M8837</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/46593"&gt;@vinodhkannan&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi - So I have developed power BI File connecting to MSSQL Database, amd I am using around 8 tables. The report is as expected. Is it possible for me to convert this to a SQL query?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/46593"&gt;@vinodhkannan&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;What do you mean "convert to a SQL query"? As you use 8 tables, so you may have to create 8 individual queries to get data. Alternatively your can get data by SQL with Tables JOIN statement accordingly if you don't think all individual tables are necessary.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2017 07:07:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/query/m-p/300579#M8837</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2017-11-10T07:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: query</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/query/m-p/356748#M10624</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/6971"&gt;@Eric_Zhang&lt;/a&gt;&amp;nbsp;I think what&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/46593"&gt;@vinodhkannan&lt;/a&gt;&amp;nbsp;was trying to do is convert the M query to SQL. Even if he has 8 tables as the result of 8 separate queries, could those 8 queries be turned into SQL?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As in my case, I'm using T-SQL to query SQL Server 2012 DB using the native sql query functionality in PowerBI. However, if I build a query using M within PowerBI, I couldn't then use that code to query the database directly in SSMS or use that code to&amp;nbsp;use in a&amp;nbsp;stored proc, or build a view, etc.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking for a compiler that would take the M code and produce valid SQL, but I'm not sure if that currently exists?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2018 19:30:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/query/m-p/356748#M10624</guid>
      <dc:creator>d_brew</dc:creator>
      <dc:date>2018-02-12T19:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: query</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/query/m-p/356766#M10625</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/21426"&gt;@d_brew&lt;/a&gt;&amp;nbsp;I did a little bit of research on this, as far as I had seen that kind of conversion (M query to SQL) was not possible.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2018 20:26:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/query/m-p/356766#M10625</guid>
      <dc:creator>vinodhkannan</dc:creator>
      <dc:date>2018-02-12T20:26:37Z</dc:date>
    </item>
  </channel>
</rss>

