<?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: Date calculations in dax without using time intelligence in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-calculations-in-dax-without-using-time-intelligence/m-p/3140727#M112135</link>
    <description>&lt;P&gt;I'm suprised you don't get an error. EOMONTH needs a scalar function as input. You should expect an error message like:&amp;nbsp;&lt;EM&gt;A single value for column 'Date' in table 'Date' cannot be determined. This can happen when a measure formula refers to a column that contains many values without specifying an aggregation such as min, max, count, or sum to get a single result.&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 19 Mar 2023 12:55:18 GMT</pubDate>
    <dc:creator>JW_van_Holst</dc:creator>
    <dc:date>2023-03-19T12:55:18Z</dc:date>
    <item>
      <title>Date calculations in dax without using time intelligence</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-calculations-in-dax-without-using-time-intelligence/m-p/3140592#M112123</link>
      <description>&lt;P&gt;hello powerbi/power pivot community&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am practicing custom date functions like writing my own date functions rather than builtin, so i have a question regarding previous month calculations, I wrote the below formula for previous month, so below formula worked&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;!--  StartFragment   --&gt;&lt;SPAN class=""&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN class=""&gt;([Total sales],&lt;/SPAN&gt;&lt;SPAN class=""&gt;FILTER&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;ALL&lt;/SPAN&gt;&lt;SPAN class=""&gt;('Calendar'),'Calendar'[Date]&amp;gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt;EOMONTH&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;MAX&lt;/SPAN&gt;&lt;SPAN class=""&gt;('Calendar'[Date]),-2)+1 &amp;amp;&amp;amp; 'Calendar'[Date]&amp;lt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt;EOMONTH&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;MAX&lt;/SPAN&gt;&lt;SPAN class=""&gt;('Calendar'[Date]),-1)))&lt;/SPAN&gt;&lt;!--  EndFragment   --&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;my question why when i write below without MAX function, i get blank , as i understand Calendar[Date] should take filter context which i have in my table (for example year 2003 and january),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;!--  StartFragment   --&gt;&lt;SPAN class=""&gt;CALCULATE&lt;/SPAN&gt;([Total sales],&lt;SPAN class=""&gt;FILTER&lt;/SPAN&gt;(&lt;SPAN class=""&gt;ALL&lt;/SPAN&gt;('Calendar'),'Calendar'[Date]&amp;gt;=&lt;SPAN class=""&gt;EOMONTH&lt;/SPAN&gt;('Calendar'[Date],-2)+1 &amp;amp;&amp;amp; 'Calendar'[Date]&amp;lt;=&lt;SPAN class=""&gt;EOMONTH&lt;/SPAN&gt;('Calendar'[Date],-1)))&lt;!--  EndFragment   --&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;am i missing something/misunderstanding? Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;below is a snapshot for easy reference&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Mar 2023 06:28:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-calculations-in-dax-without-using-time-intelligence/m-p/3140592#M112123</guid>
      <dc:creator>chahineatallah</dc:creator>
      <dc:date>2023-03-19T06:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: Date calculations in dax without using time intelligence</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-calculations-in-dax-without-using-time-intelligence/m-p/3140727#M112135</link>
      <description>&lt;P&gt;I'm suprised you don't get an error. EOMONTH needs a scalar function as input. You should expect an error message like:&amp;nbsp;&lt;EM&gt;A single value for column 'Date' in table 'Date' cannot be determined. This can happen when a measure formula refers to a column that contains many values without specifying an aggregation such as min, max, count, or sum to get a single result.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Mar 2023 12:55:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-calculations-in-dax-without-using-time-intelligence/m-p/3140727#M112135</guid>
      <dc:creator>JW_van_Holst</dc:creator>
      <dc:date>2023-03-19T12:55:18Z</dc:date>
    </item>
  </channel>
</rss>

