<?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: Formula Date doesn't work in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formula-Date-doesn-t-work/m-p/3064542#M106052</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="510423" data-lia-user-login="JEJP" class="lia-mention lia-mention-user"&gt;JEJP&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;try by using MONTH ( ) and DAY ( ) functions&lt;/P&gt;</description>
    <pubDate>Mon, 06 Feb 2023 18:46:57 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2023-02-06T18:46:57Z</dc:date>
    <item>
      <title>Formula Date doesn't work</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formula-Date-doesn-t-work/m-p/3064485#M106045</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have made my Dax formula, but it still gives an error. It says that the&amp;nbsp;&lt;SPAN&gt;An&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;argument&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;of function '&lt;/SPAN&gt;&lt;EM&gt;DATE&lt;/EM&gt;&lt;SPAN&gt;'&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;has&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;the&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;wrong&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;data type or the result&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;is&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;too large or too small. What is wrong with my formula? Field GeboorteDatum (Birthdate) is a Date type.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 18:00:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formula-Date-doesn-t-work/m-p/3064485#M106045</guid>
      <dc:creator>JEJP</dc:creator>
      <dc:date>2023-02-06T18:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: Formula Date doesn't work</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formula-Date-doesn-t-work/m-p/3064542#M106052</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="510423" data-lia-user-login="JEJP" class="lia-mention lia-mention-user"&gt;JEJP&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;try by using MONTH ( ) and DAY ( ) functions&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 18:46:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formula-Date-doesn-t-work/m-p/3064542#M106052</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-06T18:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: Formula Date doesn't work</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formula-Date-doesn-t-work/m-p/3064557#M106054</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I still get the same error:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 18:57:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formula-Date-doesn-t-work/m-p/3064557#M106054</guid>
      <dc:creator>JEJP</dc:creator>
      <dc:date>2023-02-06T18:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: Formula Date doesn't work</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formula-Date-doesn-t-work/m-p/3064566#M106055</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="510423" data-lia-user-login="JEJP" class="lia-mention lia-mention-user"&gt;JEJP&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try&lt;/P&gt;
&lt;P&gt;Birthdaynext =&lt;BR /&gt;VAR Items =&lt;BR /&gt;SUBSTITUTE ( Medewerker[GebrooteDatum], "-", "|" )&lt;BR /&gt;VAR TheYear =&lt;BR /&gt;YEAR ( TODAY () )&lt;BR /&gt;VAR TheMonth =&lt;BR /&gt;PATHITEM ( Items, 2 )&lt;BR /&gt;VAR TheDay =&lt;BR /&gt;PATHITEM ( Items, 1 )&lt;BR /&gt;VAR ThisYearX =&lt;BR /&gt;IFERROR ( DATE ( TheYear, TheMonth, TheDay ), BLANK () )&lt;BR /&gt;VAR NextYearX =&lt;BR /&gt;IFERROR ( DATE ( TheYear + 1, TheMonth, TheDay ), BLANK () )&lt;BR /&gt;RETURN&lt;BR /&gt;IF ( TODAY () &amp;gt; ThisYearX, NextYearX, ThisYearX )&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 19:07:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formula-Date-doesn-t-work/m-p/3064566#M106055</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-06T19:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: Formula Date doesn't work</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formula-Date-doesn-t-work/m-p/3064582#M106059</link>
      <description>&lt;P&gt;Unfortunately, it still doesn't work.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 19:16:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formula-Date-doesn-t-work/m-p/3064582#M106059</guid>
      <dc:creator>JEJP</dc:creator>
      <dc:date>2023-02-06T19:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: Formula Date doesn't work</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formula-Date-doesn-t-work/m-p/3077088#M107025</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="510423" data-lia-user-login="JEJP" class="lia-mention lia-mention-user"&gt;JEJP&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I create a table to test, it works well, could you provide the desensitized example data for me to test.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column =
VAR _a =
    DATE ( YEAR ( TODAY () ), MONTH ( 'Table'[Column1] ), DAY ( 'Table'[Column1] ) )
VAR _b =
    DATE ( YEAR ( TODAY () ) + 1, MONTH ( 'Table'[Column1] ), DAY ( 'Table'[Column1] ) )
RETURN
    IF ( TODAY () &amp;gt; _a, _b, _a )
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Community Support Team_Binbin Yu&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If this post&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;, then please consider&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2023 06:39:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formula-Date-doesn-t-work/m-p/3077088#M107025</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-13T06:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: Formula Date doesn't work</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formula-Date-doesn-t-work/m-p/3077216#M107036</link>
      <description>&lt;P&gt;Thank you! I have tried to fill out the blank fields (not every birthday was filled out in the system). Now it works!&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2023 08:17:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formula-Date-doesn-t-work/m-p/3077216#M107036</guid>
      <dc:creator>JEJP</dc:creator>
      <dc:date>2023-02-13T08:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: Formula Date doesn't work</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formula-Date-doesn-t-work/m-p/3077229#M107037</link>
      <description>&lt;P&gt;Thank you very much. I already found the solution, but this formula also works!&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2023 08:25:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formula-Date-doesn-t-work/m-p/3077229#M107037</guid>
      <dc:creator>JEJP</dc:creator>
      <dc:date>2023-02-13T08:25:11Z</dc:date>
    </item>
  </channel>
</rss>

