<?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: Does ALL function accept table variable? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Does-ALL-function-accept-table-variable/m-p/1239314#M20306</link>
    <description>&lt;P&gt;I found the solution in the DAX documentation - '&lt;SPAN&gt;The argument to the ALL function must be either a reference to a base table or a reference to a base column. You cannot use table expressions or column expressions with the ALL function.' So that the column has to be physically present in the model.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Jul 2020 18:19:32 GMT</pubDate>
    <dc:creator>sandeepsingh</dc:creator>
    <dc:date>2020-07-21T18:19:32Z</dc:date>
    <item>
      <title>Does ALL function accept table variable?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Does-ALL-function-accept-table-variable/m-p/1239237#M20299</link>
      <description>&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to create a table in dax using the below code, I am getting a error message : 'The ALL function expects a table reference for argument '1', but a table expression was used.' Am I missing something here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Table&amp;nbsp; = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Var MyTable = ALL(Sales)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Return&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ALL(mytable)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2020 17:39:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Does-ALL-function-accept-table-variable/m-p/1239237#M20299</guid>
      <dc:creator>sandeepsingh</dc:creator>
      <dc:date>2020-07-21T17:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: Does ALL function accept table variable?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Does-ALL-function-accept-table-variable/m-p/1239265#M20300</link>
      <description>&lt;P&gt;Nope, you are not allowed to use table expressions. but since you have assigned the table to the variable you don't need to use ALL again.&lt;/P&gt;&lt;LI-CODE lang="php"&gt;Table  =
Var MyTable = ALL(Sales)
Return
   MyTable&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2020 17:51:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Does-ALL-function-accept-table-variable/m-p/1239265#M20300</guid>
      <dc:creator>AntrikshSharma</dc:creator>
      <dc:date>2020-07-21T17:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: Does ALL function accept table variable?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Does-ALL-function-accept-table-variable/m-p/1239274#M20301</link>
      <description>&lt;P&gt;Technically, there is no context that would filter the table so all you need is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Table = 'Sales'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's automatically "all" because there is no filter or row context.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2020 17:53:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Does-ALL-function-accept-table-variable/m-p/1239274#M20301</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-07-21T17:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: Does ALL function accept table variable?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Does-ALL-function-accept-table-variable/m-p/1239291#M20303</link>
      <description>&lt;P&gt;Honestly, I am building a complex dax query, wherein I am creating a table using summarize and add columns, I have stored the resultant table in a variable. But when I using the stored table variable again, I m getting the table expression error. ALL does not accept table variable, and what does actually is difference between table expression and a table reference.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2020 18:00:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Does-ALL-function-accept-table-variable/m-p/1239291#M20303</guid>
      <dc:creator>sandeepsingh</dc:creator>
      <dc:date>2020-07-21T18:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: Does ALL function accept table variable?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Does-ALL-function-accept-table-variable/m-p/1239309#M20304</link>
      <description>I think that is because variables are static and when you store a value/table in a variable it is stored once it is evaluated and post that you can not change its contents,</description>
      <pubDate>Tue, 21 Jul 2020 18:07:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Does-ALL-function-accept-table-variable/m-p/1239309#M20304</guid>
      <dc:creator>AntrikshSharma</dc:creator>
      <dc:date>2020-07-21T18:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: Does ALL function accept table variable?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Does-ALL-function-accept-table-variable/m-p/1239314#M20306</link>
      <description>&lt;P&gt;I found the solution in the DAX documentation - '&lt;SPAN&gt;The argument to the ALL function must be either a reference to a base table or a reference to a base column. You cannot use table expressions or column expressions with the ALL function.' So that the column has to be physically present in the model.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2020 18:19:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Does-ALL-function-accept-table-variable/m-p/1239314#M20306</guid>
      <dc:creator>sandeepsingh</dc:creator>
      <dc:date>2020-07-21T18:19:32Z</dc:date>
    </item>
  </channel>
</rss>

