<?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: The expression specified in the query is not a valid table expression in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-expression-specified-in-the-query-is-not-a-valid-table/m-p/2316681#M57732</link>
    <description>&lt;P&gt;Thanks - this solution definitely worked!&lt;/P&gt;</description>
    <pubDate>Thu, 03 Feb 2022 02:34:59 GMT</pubDate>
    <dc:creator>mbbozzuto</dc:creator>
    <dc:date>2022-02-03T02:34:59Z</dc:date>
    <item>
      <title>The expression specified in the query is not a valid table expression</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-expression-specified-in-the-query-is-not-a-valid-table/m-p/889458#M7803</link>
      <description>&lt;P&gt;Hi, please I am using table variable and when i call the table name "evaluate tbl "with evaluate it works but when I use it in the context of countrows it returns the error above&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;DEFINE&lt;BR /&gt;VAR fsumX =&lt;BR /&gt;SUMMARIZE(CHA,[Employee],[YearNo],[Organisation],[MonthNamed],&lt;BR /&gt;"CallTimeDuration",SUM(CHA[CallTimeDuration])&lt;BR /&gt;)&lt;BR /&gt;VAR tbl =&lt;BR /&gt;FILTER(&lt;BR /&gt;fsumX,&amp;nbsp;&lt;BR /&gt;[AvgDBanding] = "Less Than 60 Min(s)" &amp;amp;&amp;amp; CHA,[Organisation] = "b" &amp;amp;&amp;amp; CHA,[MonthNamed] ="November"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;/P&gt;&lt;P&gt;EVALUATE&lt;/P&gt;&lt;P&gt;COUNTROWS(tbl)&lt;BR /&gt;//tbl&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;I saw a similar solution that works with countrows (&lt;A href="https://social.msdn.microsoft.com/Forums/sqlserver/en-US/42325576-064d-4fbf-bc1c-12fbd6c89728/dax-columns-in-table-variables-cannot-be-referenced-via-tablenamecolumnname-syntax?forum=sqlanalysisservices" target="_blank" rel="noopener"&gt;https://social.msdn.microsoft.com/Forums/sqlserver/en-US/42325576-064d-4fbf-bc1c-12fbd6c89728/dax-columns-in-table-variables-cannot-be-referenced-via-tablenamecolumnname-syntax?forum=sqlanalysisservices&lt;/A&gt;) but i could not get the quey for mine.&lt;/P&gt;&lt;P&gt;I will appreciate a guide on this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 04 Jan 2020 08:30:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-expression-specified-in-the-query-is-not-a-valid-table/m-p/889458#M7803</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-04T08:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: The expression specified in the query is not a valid table expression</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-expression-specified-in-the-query-is-not-a-valid-table/m-p/889565#M7809</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I try to run the code I get an error on&amp;nbsp;[AvgDBanding] does not exist.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When you add [AvgDBanding] to the FsumX / Summarize function then it will probably work.&lt;/P&gt;&lt;P&gt;It does work for me either as a calculated table or as a measure (with countrows, of course), but I tested it with a very simple test set.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Jan 2020 10:41:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-expression-specified-in-the-query-is-not-a-valid-table/m-p/889565#M7809</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-04T10:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: The expression specified in the query is not a valid table expression</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-expression-specified-in-the-query-is-not-a-valid-table/m-p/889582#M7810</link>
      <description>&lt;P&gt;Thanks for the response, the&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;return works well for me as well, but the "countrows" function on the tbl does not work&lt;/SPAN&gt;&lt;SPAN&gt;, I was using the code in dax studio and it was throwing the error, but when I executed the code (countrows)in on power bi it worked, so I am guessing am missing something&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Jan 2020 12:27:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-expression-specified-in-the-query-is-not-a-valid-table/m-p/889582#M7810</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-04T12:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: The expression specified in the query is not a valid table expression</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-expression-specified-in-the-query-is-not-a-valid-table/m-p/889744#M7817</link>
      <description>&lt;P&gt;Sorry, I thought your problem was in PBI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Dax Studio you need to use the following to check the result of a measure:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ROW&lt;/SPAN&gt;(&lt;SPAN&gt;"Result:"&lt;/SPAN&gt;, &lt;SPAN&gt;COUNTROWS&lt;/SPAN&gt;(tbl))&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Jan 2020 08:51:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-expression-specified-in-the-query-is-not-a-valid-table/m-p/889744#M7817</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-05T08:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: The expression specified in the query is not a valid table expression</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-expression-specified-in-the-query-is-not-a-valid-table/m-p/889753#M7818</link>
      <description>&lt;P&gt;&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp; Thanks for the solution, I had a look at the help of dax studio for "row" context but could not find it , can you send me on a link where i can see more on it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Jan 2020 09:39:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-expression-specified-in-the-query-is-not-a-valid-table/m-p/889753#M7818</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-05T09:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: The expression specified in the query is not a valid table expression</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-expression-specified-in-the-query-is-not-a-valid-table/m-p/889759#M7819</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is not too much explanation in the documentation, but it is a starting point:&amp;nbsp; &lt;A href="https://docs.microsoft.com/en-us/dax/row-function-dax" target="_blank"&gt;https://docs.microsoft.com/en-us/dax/row-function-dax&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Jan 2020 10:05:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-expression-specified-in-the-query-is-not-a-valid-table/m-p/889759#M7819</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-05T10:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: The expression specified in the query is not a valid table expression</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-expression-specified-in-the-query-is-not-a-valid-table/m-p/889768#M7820</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp; Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 05 Jan 2020 10:27:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-expression-specified-in-the-query-is-not-a-valid-table/m-p/889768#M7820</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-05T10:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: The expression specified in the query is not a valid table expression</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-expression-specified-in-the-query-is-not-a-valid-table/m-p/2316681#M57732</link>
      <description>&lt;P&gt;Thanks - this solution definitely worked!&lt;/P&gt;</description>
      <pubDate>Thu, 03 Feb 2022 02:34:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-expression-specified-in-the-query-is-not-a-valid-table/m-p/2316681#M57732</guid>
      <dc:creator>mbbozzuto</dc:creator>
      <dc:date>2022-02-03T02:34:59Z</dc:date>
    </item>
  </channel>
</rss>

