<?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: Common Table Expressions using WITH in Desktop</title>
    <link>https://community.fabric.microsoft.com/t5/Desktop/Common-Table-Expressions-using-WITH/m-p/683030#M329053</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="101716" data-lia-user-login="hp2328" class="lia-mention lia-mention-user"&gt;hp2328&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;I was able to fix it.&amp;nbsp; PBI did not like the query without a fully qualified reference to the table with schema.table reference.&amp;nbsp; I did not know that limitation.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;It might depend on what your default schema is or what connection options Power BI is using. I'm glad your found a solution.&lt;/P&gt;</description>
    <pubDate>Fri, 03 May 2019 03:54:18 GMT</pubDate>
    <dc:creator>d_gosbell</dc:creator>
    <dc:date>2019-05-03T03:54:18Z</dc:date>
    <item>
      <title>Common Table Expressions using WITH</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Common-Table-Expressions-using-WITH/m-p/681909#M328472</link>
      <description>&lt;P&gt;hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am attempting to use a Common Table Expression to query multiple tables in one query and output one table combining them.&amp;nbsp; I can run this query using other SQL programs to query the database, but the query will not run in Power BI.&amp;nbsp; The query looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;WITH&lt;BR /&gt;a AS (SELECT * FROM ELEMENTS EL WHERE EL.LOCAL_ID LIKE 'F%'),&amp;nbsp;&lt;BR /&gt;b AS (SELECT * FROM ENTITIES EN),&lt;BR /&gt;c AS (SELECT * FROM a JOIN b ON a.ent_key = b.ent_key),&lt;BR /&gt;pdc AS (SELECT fone.*,(PMPDCCHCCEUTIL_0 + PMPDCCHCCEUTIL_1 + PMPDCCHCCEUTIL_2 + PMPDCCHCCEUTIL_3 + PMPDCCHCCEUTIL_4 + PMPDCCHCCEUTIL_5 + PMPDCCHCCEUTIL_6 + PMPDCCHCCEUTIL_7 + PMPDCCHCCEUTIL_8 + PMPDCCHCCEUTIL_9 + PMPDCCHCCEUTIL_10 + PMPDCCHCCEUTIL_11 + PMPDCCHCCEUTIL_12 + PMPDCCHCCEUTIL_13 + PMPDCCHCCEUTIL_14 + PMPDCCHCCEUTIL_15 + PMPDCCHCCEUTIL_16 + PMPDCCHCCEUTIL_17 + PMPDCCHCCEUTIL_18 + PMPDCCHCCEUTIL_19) PMPDCCHCCEUTIL80_DEN, (PMPDCCHCCEUTIL_16 + PMPDCCHCCEUTIL_17 + PMPDCCHCCEUTIL_18 + PMPDCCHCCEUTIL_19) PMPDCCHCCEUTIL80_NUM FROM NRS.ERIL_EUCELLFDD1_DY fone WHERE TSTAMP &amp;gt;= SYSDATE-2),&lt;BR /&gt;pdu AS (SELECT pdc.*, ROUND(COALESCE(pdc.PMPDCCHCCEUTIL80_NUM/NULLIF(pdc.PMPDCCHCCEUTIL80_DEN,0),0),2) as PMPDCCHCCEUTIL80 FROM pdc pdc)&lt;BR /&gt;SELECT c.NW_LABEL, pdu.TSTAMP, pdu.BW_DL_MHZ, pdu.PMPDCCHCCEUTIL80_NUM, pdu.PMPDCCHCCEUTIL80_DEN, pdu.PMPDCCHCCEUTIL80 FROM c, pdu WHERE c.ELE_KEY = pdu.ELE_KEY AND c.ENT_ID = 'EUTRANCELL'&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2019 20:47:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Common-Table-Expressions-using-WITH/m-p/681909#M328472</guid>
      <dc:creator>hp2328</dc:creator>
      <dc:date>2019-05-01T20:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: Common Table Expressions using WITH</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Common-Table-Expressions-using-WITH/m-p/682898#M328978</link>
      <description>&lt;P&gt;What error message are you getting?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you put this CTE expression in a view and then just reference that view from PowerBI?&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2019 22:48:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Common-Table-Expressions-using-WITH/m-p/682898#M328978</guid>
      <dc:creator>d_gosbell</dc:creator>
      <dc:date>2019-05-02T22:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: Common Table Expressions using WITH</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Common-Table-Expressions-using-WITH/m-p/683018#M329049</link>
      <description>&lt;P&gt;I was able to fix it.&amp;nbsp; PBI did not like the query without a fully qualified reference to the table with schema.table reference.&amp;nbsp; I did not know that limitation.&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2019 03:31:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Common-Table-Expressions-using-WITH/m-p/683018#M329049</guid>
      <dc:creator>hp2328</dc:creator>
      <dc:date>2019-05-03T03:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: Common Table Expressions using WITH</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Common-Table-Expressions-using-WITH/m-p/683030#M329053</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="101716" data-lia-user-login="hp2328" class="lia-mention lia-mention-user"&gt;hp2328&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;I was able to fix it.&amp;nbsp; PBI did not like the query without a fully qualified reference to the table with schema.table reference.&amp;nbsp; I did not know that limitation.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;It might depend on what your default schema is or what connection options Power BI is using. I'm glad your found a solution.&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2019 03:54:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Common-Table-Expressions-using-WITH/m-p/683030#M329053</guid>
      <dc:creator>d_gosbell</dc:creator>
      <dc:date>2019-05-03T03:54:18Z</dc:date>
    </item>
  </channel>
</rss>

