<?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: A table of multiple values was supplied where a single value was expected. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-table-of-multiple-values-was-supplied-where-a-single-value-was/m-p/2626154#M76654</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp; You are super Fast!&lt;BR /&gt;&lt;BR /&gt;however, I am getting the same error:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 07 Jul 2022 19:58:45 GMT</pubDate>
    <dc:creator>H_insight</dc:creator>
    <dc:date>2022-07-07T19:58:45Z</dc:date>
    <item>
      <title>A table of multiple values was supplied where a single value was expected.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-table-of-multiple-values-was-supplied-where-a-single-value-was/m-p/2626134#M76652</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I have a small model of two tables, connected by the "Date" Column. Sample Table1&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I add a "Date" filter to the page (i.e. to show last week), the rows with no "Total Sales" data disappear (which is normal). But I am trying to see what each individual has done, even if it was nothing/null/0/blank.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thought of removing the filter on the calendar table, but still, no data is showing and got the error of "A table of multiple values was supplied where a single value was expected."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Total Sales 2 = CALCULATE([Total Sales], FILTER('Calendar', ALL('Calendar'[Date])))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expected outcome:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;any idea?&lt;/P&gt;&lt;P&gt;&lt;A href="https://easyupload.io/sfcdio" target="_self"&gt;Sample File.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2022 19:52:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-table-of-multiple-values-was-supplied-where-a-single-value-was/m-p/2626134#M76652</guid>
      <dc:creator>H_insight</dc:creator>
      <dc:date>2022-07-07T19:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: A table of multiple values was supplied where a single value was expected.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-table-of-multiple-values-was-supplied-where-a-single-value-was/m-p/2626144#M76653</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="205599" data-lia-user-login="H_insight" class="lia-mention lia-mention-user"&gt;H_insight&lt;/a&gt;&amp;nbsp;Try:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Total Sales 2 = 
VAR __Total = CALCULATE([Total Sales], FILTER('Calendar', ALL('Calendar'[Date])))
RETURN
IF(__Total &amp;lt;&amp;gt; BLANK(), __Total, 0)&lt;/LI-CODE&gt;
&lt;P&gt;Or, more succinctly:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Total Sales 2 = CALCULATE([Total Sales], FILTER('Calendar', ALL('Calendar'[Date]))) + 0&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2022 19:56:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-table-of-multiple-values-was-supplied-where-a-single-value-was/m-p/2626144#M76653</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2022-07-07T19:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: A table of multiple values was supplied where a single value was expected.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-table-of-multiple-values-was-supplied-where-a-single-value-was/m-p/2626154#M76654</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp; You are super Fast!&lt;BR /&gt;&lt;BR /&gt;however, I am getting the same error:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2022 19:58:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-table-of-multiple-values-was-supplied-where-a-single-value-was/m-p/2626154#M76654</guid>
      <dc:creator>H_insight</dc:creator>
      <dc:date>2022-07-07T19:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: A table of multiple values was supplied where a single value was expected.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-table-of-multiple-values-was-supplied-where-a-single-value-was/m-p/2632994#M77087</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="205599" data-lia-user-login="H_insight" class="lia-mention lia-mention-user"&gt;H_insight&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to the syntax of Filter function, the second parameter should be a Boolean expression that is to be evaluated for each row of the table but not a table. For All function, it will return all the rows of the table and it couldn’t be used as the second parameter of Filter.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/dax/filter-function-dax" target="_blank"&gt;FILTER function (DAX) - DAX | Microsoft Docs&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/dax/all-function-dax" target="_blank"&gt;ALL function (DAX) - DAX | Microsoft Docs&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may try this Measure.&lt;/P&gt;
&lt;P&gt;Total Sales 2 = CALCULATE([Total Sales],ALL('Calendar'[Date]))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If there is any post helps, then please consider&lt;STRONG&gt; Accept it as the solution&lt;/STRONG&gt; to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please provide a new download lind of your sample pbix file for we couldn’t download it with the existing link. Thanks a lot!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _ Caiyun&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2022 08:25:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-table-of-multiple-values-was-supplied-where-a-single-value-was/m-p/2632994#M77087</guid>
      <dc:creator>v-cazheng-msft</dc:creator>
      <dc:date>2022-07-12T08:25:25Z</dc:date>
    </item>
  </channel>
</rss>

