<?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: DAX error : A single value for column 'Date' in table 'Date' cannot be determined. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-error-A-single-value-for-column-Date-in-table-Date-cannot-be/m-p/2544452#M71771</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="96442" data-lia-user-login="tvaishnav" class="lia-mention lia-mention-user"&gt;tvaishnav&lt;/a&gt;&amp;nbsp;Because you have an errant paren ). The second formula should be:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;AverageX = Averagex(
                  'Date'[Date]
                   ,Fact_Hours[SUM Hours]
                    )&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 27 May 2022 18:05:17 GMT</pubDate>
    <dc:creator>Greg_Deckler</dc:creator>
    <dc:date>2022-05-27T18:05:17Z</dc:date>
    <item>
      <title>DAX error : A single value for column 'Date' in table 'Date' cannot be determined.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-error-A-single-value-for-column-Date-in-table-Date-cannot-be/m-p/2544409#M71767</link>
      <description>&lt;P&gt;I am new to DAX and trying learn it. So I am essentially looking for an explanation as to what is causing the error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Following formula works fine&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;&lt;LI-CODE lang="python"&gt;AverageX = Averagex(
                   VALUES('Date'[Date]
                    )
                   ,Fact_Hours[SUM Hours]
                    )&lt;/LI-CODE&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;&lt;P&gt;However, if I remove the VALUES function, I end up with an error I mentioned in the title of this question&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;&lt;LI-CODE lang="python"&gt;AverageX = Averagex(
                  'Date'[Date]
                    )
                   ,Fact_Hours[SUM Hours]
                    )&lt;/LI-CODE&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;&lt;P&gt;Date column in Date table has unique values already. Why is VALUES function needed?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Also, for second argument to AVERAGEX, Measure works. But if I try to put a column that is already a part of model, it would not. Why would that be?&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2022 17:39:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-error-A-single-value-for-column-Date-in-table-Date-cannot-be/m-p/2544409#M71767</guid>
      <dc:creator>tvaishnav</dc:creator>
      <dc:date>2022-05-27T17:39:10Z</dc:date>
    </item>
    <item>
      <title>Re: DAX error : A single value for column 'Date' in table 'Date' cannot be determined.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-error-A-single-value-for-column-Date-in-table-Date-cannot-be/m-p/2544452#M71771</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="96442" data-lia-user-login="tvaishnav" class="lia-mention lia-mention-user"&gt;tvaishnav&lt;/a&gt;&amp;nbsp;Because you have an errant paren ). The second formula should be:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;AverageX = Averagex(
                  'Date'[Date]
                   ,Fact_Hours[SUM Hours]
                    )&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 27 May 2022 18:05:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-error-A-single-value-for-column-Date-in-table-Date-cannot-be/m-p/2544452#M71771</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2022-05-27T18:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: DAX error : A single value for column 'Date' in table 'Date' cannot be determined.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-error-A-single-value-for-column-Date-in-table-Date-cannot-be/m-p/2544489#M71776</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="96442" data-lia-user-login="tvaishnav" class="lia-mention lia-mention-user"&gt;tvaishnav&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Iteration functions requires a table as first argument. VALUES is a function that creats a table contains the unique values in a column. You cannot refer the column directly.&amp;nbsp;&lt;BR /&gt;Iteration functions creat a filter context over the tablw under iteration. Only the columns that belongs to this table can be refrenced directly. Columns from related tables in the "one" side of the relationship can be referenced using RELATED function. The "many" side related table can be referenced using RELATEDTABLE functions which bring a set of rows from the "many" side table which are realted to the current row on the iteration. In this case an aggregation must be provided in order to evaluate any column from this related table.&amp;nbsp;&lt;BR /&gt;on the other hand CALCULATE function can be used to perform context transition in irder to evaluate columns from rekated tables. In this case aggregation shall be provided. Remember that any refrenced measure is automatically wrapped with CALCULATE.&amp;nbsp;&lt;BR /&gt;please let if you still have any doubts&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2022 18:22:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-error-A-single-value-for-column-Date-in-table-Date-cannot-be/m-p/2544489#M71776</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-05-27T18:22:34Z</dc:date>
    </item>
  </channel>
</rss>

