<?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 SQL Query CTE – Power BI Optimized version for Report Server in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/SQL-Query-CTE-Power-BI-Optimized-version-for-Report-Server/m-p/1231797#M15100</link>
    <description>&lt;P&gt;I create reports with live data (&lt;STRONG&gt;Direct Query&lt;/STRONG&gt;) connect them to the &lt;STRONG&gt;Power BI Report Server&lt;/STRONG&gt;,&amp;nbsp;on many of my reports I use &lt;STRONG&gt;CTE&lt;/STRONG&gt;’s in my query, Power BI lets me retrieve data into the Power Query Editor which looks great and next moment I click on ‘Close and Apply’ which is supposed to load the dataset on Power BI Desktop I get an error message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Work-around using an Import query is not an option because reports need live data. I’ve observed this issue is on-going for some years now, needs a fix as soon as possible, as all the reports created are for the Report Server.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are there any suggestions to work with &lt;STRONG&gt;CTE&lt;/STRONG&gt;s and &lt;STRONG&gt;Direct Query&lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The Query uses CTE’s with Direct Query&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;data retrieved successfully into Power Query Editor,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;This is the error message I receive on the Power BI Desktop workspace. No further details to this message.&lt;/P&gt;</description>
    <pubDate>Fri, 17 Jul 2020 18:51:09 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-07-17T18:51:09Z</dc:date>
    <item>
      <title>SQL Query CTE – Power BI Optimized version for Report Server</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/SQL-Query-CTE-Power-BI-Optimized-version-for-Report-Server/m-p/1231797#M15100</link>
      <description>&lt;P&gt;I create reports with live data (&lt;STRONG&gt;Direct Query&lt;/STRONG&gt;) connect them to the &lt;STRONG&gt;Power BI Report Server&lt;/STRONG&gt;,&amp;nbsp;on many of my reports I use &lt;STRONG&gt;CTE&lt;/STRONG&gt;’s in my query, Power BI lets me retrieve data into the Power Query Editor which looks great and next moment I click on ‘Close and Apply’ which is supposed to load the dataset on Power BI Desktop I get an error message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Work-around using an Import query is not an option because reports need live data. I’ve observed this issue is on-going for some years now, needs a fix as soon as possible, as all the reports created are for the Report Server.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are there any suggestions to work with &lt;STRONG&gt;CTE&lt;/STRONG&gt;s and &lt;STRONG&gt;Direct Query&lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The Query uses CTE’s with Direct Query&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;data retrieved successfully into Power Query Editor,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;This is the error message I receive on the Power BI Desktop workspace. No further details to this message.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jul 2020 18:51:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/SQL-Query-CTE-Power-BI-Optimized-version-for-Report-Server/m-p/1231797#M15100</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-17T18:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Query CTE – Power BI Optimized version for Report Server</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/SQL-Query-CTE-Power-BI-Optimized-version-for-Report-Server/m-p/1232436#M15106</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;why dont you create a view in your origin SQL DB?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I see there are a lot of issues with CTE in Direct Query mode, like&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/Custom-query-with-CTE-not-supported-bug/td-p/41395" target="_blank"&gt;https://community.powerbi.com/t5/Desktop/Custom-query-with-CTE-not-supported-bug/td-p/41395&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;also, please, vote for idea here&lt;/P&gt;
&lt;P&gt;&lt;A href="https://ideas.powerbi.com/ideas/idea/?ideaid=c0f672db-981d-45f2-982d-36bbf39b16f6" target="_blank"&gt;https://ideas.powerbi.com/ideas/idea/?ideaid=c0f672db-981d-45f2-982d-36bbf39b16f6&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jul 2020 11:36:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/SQL-Query-CTE-Power-BI-Optimized-version-for-Report-Server/m-p/1232436#M15106</guid>
      <dc:creator>az38</dc:creator>
      <dc:date>2020-07-18T11:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Query CTE – Power BI Optimized version for Report Server</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/SQL-Query-CTE-Power-BI-Optimized-version-for-Report-Server/m-p/1236298#M15132</link>
      <description>&lt;P&gt;Microsoft does not allow the SCCM DB to be edited,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2020 20:02:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/SQL-Query-CTE-Power-BI-Optimized-version-for-Report-Server/m-p/1236298#M15132</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-20T20:02:25Z</dc:date>
    </item>
  </channel>
</rss>

