<?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: DATEADD not working on certain date values in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DATEADD-not-working-on-certain-date-values/m-p/3712133#M144435</link>
    <description>&lt;P&gt;I had the same issue with DATEADD and adding multiple years to a certain column. EDATE works perfect in this case EDATE(&amp;lt;date-field, ,nr of months&amp;gt;)&lt;/P&gt;</description>
    <pubDate>Tue, 20 Feb 2024 19:38:15 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-02-20T19:38:15Z</dc:date>
    <item>
      <title>DATEADD not working on certain date values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DATEADD-not-working-on-certain-date-values/m-p/2668218#M79461</link>
      <description>&lt;P&gt;I have a calculated column in my data set (DataTable2019 Test) which is looking at a date column (History Date) subtracting one year from the date and then returning a custom formatted date. For full context here I'm trying to show the Jan 1st dates as the year end (YE) count for that given year.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the formula below:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Datetable2019 Test = &lt;/SPAN&gt;&lt;SPAN&gt;FORMAT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;DATEADD&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Employee History'[History Date]&lt;/SPAN&gt;&lt;SPAN&gt;, -&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;YEAR&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;"""YE"" yyyy"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The formula works perfectly for the 2021, 2022 and 2023 dates in the History Date column, but for the 2020 dates I am getting back blank.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Separately, I seem to have lost the ability for a matrix using this column to be sorted by date. Instead it's being sorted alphabetically.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Please help!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 28 Jul 2022 22:17:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DATEADD-not-working-on-certain-date-values/m-p/2668218#M79461</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-28T22:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: DATEADD not working on certain date values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DATEADD-not-working-on-certain-date-values/m-p/2668263#M79467</link>
      <description>&lt;P&gt;I'm guessing your date table doesn't have dates prior to 2020.&amp;nbsp; DATEADD doesn't work by adding or subtracting from a given date, it returns a result from your date table shifted by the interval you've specified.&amp;nbsp; If no dates exist prior to 2020, you won't get a result.&amp;nbsp; Take a look at the DATEADD documentation for more info.&lt;BR /&gt;&lt;A href="https://docs.microsoft.com/en-us/dax/dateadd-function-dax" target="_blank" rel="noopener"&gt;DATEADD function (DAX) - DAX | Microsoft Docs&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2022 22:48:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DATEADD-not-working-on-certain-date-values/m-p/2668263#M79467</guid>
      <dc:creator>AUaero</dc:creator>
      <dc:date>2022-07-28T22:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: DATEADD not working on certain date values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DATEADD-not-working-on-certain-date-values/m-p/2669581#M79546</link>
      <description>&lt;P&gt;That makes sense, thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is there another function that can just subtract 1 year from the date in the history table?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;so for the 2020 dates in my table, they would return a result of "YE 2019".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2022 13:12:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DATEADD-not-working-on-certain-date-values/m-p/2669581#M79546</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-29T13:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: DATEADD not working on certain date values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DATEADD-not-working-on-certain-date-values/m-p/2670143#M79588</link>
      <description>&lt;P&gt;Take a look at the EDATE function&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2022 19:24:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DATEADD-not-working-on-certain-date-values/m-p/2670143#M79588</guid>
      <dc:creator>AUaero</dc:creator>
      <dc:date>2022-07-29T19:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: DATEADD not working on certain date values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DATEADD-not-working-on-certain-date-values/m-p/3712133#M144435</link>
      <description>&lt;P&gt;I had the same issue with DATEADD and adding multiple years to a certain column. EDATE works perfect in this case EDATE(&amp;lt;date-field, ,nr of months&amp;gt;)&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 19:38:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DATEADD-not-working-on-certain-date-values/m-p/3712133#M144435</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-02-20T19:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: DATEADD not working on certain date values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DATEADD-not-working-on-certain-date-values/m-p/4000294#M155799</link>
      <description>&lt;P&gt;Hey,&lt;BR /&gt;&lt;BR /&gt;Try adding &lt;STRONG&gt;.&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;[Date]&lt;/STRONG&gt; to your date column name while using it to create a DAX.&amp;nbsp;&lt;BR /&gt;For example,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Created &lt;/SPAN&gt;&lt;SPAN&gt;Date&lt;/SPAN&gt;&lt;SPAN&gt; (Corrected) = &lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;YEAR&lt;/SPAN&gt;&lt;SPAN&gt;('Raw Dump'[Created Date])=&lt;/SPAN&gt;&lt;SPAN&gt;"2022"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;DATEADD&lt;/SPAN&gt;&lt;SPAN&gt;('Raw Dump'&lt;STRONG&gt;[Created Date]&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;[Date]&lt;/STRONG&gt;,-&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;,year),'Raw Dump'[Created Date])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 19 Jun 2024 14:02:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DATEADD-not-working-on-certain-date-values/m-p/4000294#M155799</guid>
      <dc:creator>NehaSingh_108</dc:creator>
      <dc:date>2024-06-19T14:02:04Z</dc:date>
    </item>
  </channel>
</rss>

