<?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: Creating a new column that returns the date 1st of march the year after operation date in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-new-column-that-returns-the-date-1st-of-march-the/m-p/1197925#M19072</link>
    <description>&lt;P&gt;Here you go Anonymous&lt;/LI-USER&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want the new column to be returned in the same way as "Operation date seasonality" based on the data in "Operation date".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So for every date in "Operation date" after 1st of March in a specific year, "Operation date seasonality" should return 1st of March the next year and if the date in "Operation date" is on or before 1st of March in a year "Operation date seasonality" should return 1st of March the same year.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Operation date&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Operation date seasonality&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;03.04.17&lt;/TD&gt;&lt;TD&gt;01.03.18&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;12.01.20&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;01.03.20&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;15.10.16&lt;/TD&gt;&lt;TD&gt;01.03.17&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;16.09.18&lt;/TD&gt;&lt;TD&gt;01.03.19&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;18.02.16&lt;/TD&gt;&lt;TD&gt;01.03.16&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;01.03.19&lt;/TD&gt;&lt;TD&gt;01.03.19&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;02.03.17&lt;/TD&gt;&lt;TD&gt;01.03.18&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;17.01.17&lt;/TD&gt;&lt;TD&gt;01.03.17&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;29.12.15&lt;/TD&gt;&lt;TD&gt;01.03.16&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
    <pubDate>Thu, 02 Jul 2020 12:24:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-07-02T12:24:04Z</dc:date>
    <item>
      <title>Creating a new column that returns the date 1st of march the year after operation date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-new-column-that-returns-the-date-1st-of-march-the/m-p/1197883#M19069</link>
      <description>&lt;P&gt;I have a table-column that includes the operation date (first day of operation) per machine. I am doing analysis on the transactions on these machines and they are affected by seasonality. Therefore I would like to add a column to my data that returns the first date of the "high-season" where the machine is fully operational.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like the column to return the 1st of March the year after the first operation date for every machine if the operation date is after the 1st of March. If the operation date is before the first of March in its respective year it should return the first of March the same year as operation date. See example below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Operation date = 04.05.17 --&amp;gt; 01.03.18&lt;/P&gt;&lt;P&gt;Operation date = 14.02.19 --&amp;gt; 01.03.19&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2020 11:58:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-new-column-that-returns-the-date-1st-of-march-the/m-p/1197883#M19069</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-02T11:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a new column that returns the date 1st of march the year after operation date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-new-column-that-returns-the-date-1st-of-march-the/m-p/1197915#M19071</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please share some sample data and the expected output to help you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Harsh Nathani&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2020 12:14:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-new-column-that-returns-the-date-1st-of-march-the/m-p/1197915#M19071</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-02T12:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a new column that returns the date 1st of march the year after operation date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-new-column-that-returns-the-date-1st-of-march-the/m-p/1197925#M19072</link>
      <description>&lt;P&gt;Here you go Anonymous&lt;/LI-USER&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want the new column to be returned in the same way as "Operation date seasonality" based on the data in "Operation date".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So for every date in "Operation date" after 1st of March in a specific year, "Operation date seasonality" should return 1st of March the next year and if the date in "Operation date" is on or before 1st of March in a year "Operation date seasonality" should return 1st of March the same year.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Operation date&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Operation date seasonality&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;03.04.17&lt;/TD&gt;&lt;TD&gt;01.03.18&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;12.01.20&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;01.03.20&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;15.10.16&lt;/TD&gt;&lt;TD&gt;01.03.17&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;16.09.18&lt;/TD&gt;&lt;TD&gt;01.03.19&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;18.02.16&lt;/TD&gt;&lt;TD&gt;01.03.16&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;01.03.19&lt;/TD&gt;&lt;TD&gt;01.03.19&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;02.03.17&lt;/TD&gt;&lt;TD&gt;01.03.18&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;17.01.17&lt;/TD&gt;&lt;TD&gt;01.03.17&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;29.12.15&lt;/TD&gt;&lt;TD&gt;01.03.16&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Thu, 02 Jul 2020 12:24:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-new-column-that-returns-the-date-1st-of-march-the/m-p/1197925#M19072</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-02T12:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a new column that returns the date 1st of march the year after operation date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-new-column-that-returns-the-date-1st-of-march-the/m-p/1198112#M19079</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&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;Create a Calculated Column&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Ops Day Seasonality = 

var _year = Year('Table'[Operation date])
var _month = Month ('Table'[Operation date])
var _day = Day('Table'[Operation date])

RETURN

SWITCH(
    TRUE(),
    _month = 3 &amp;amp;&amp;amp; _day = 1,'Table'[Operation date],
    _month = 1 || _month = 2   ,Date (_year, 3,1),
    Date (_year+1, 3,1)
    )
    &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;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Harsh Nathani&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Appreciate with a Kudos!! (Click the Thumbs Up Button)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution!&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2020 13:41:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-new-column-that-returns-the-date-1st-of-march-the/m-p/1198112#M19079</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-02T13:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a new column that returns the date 1st of march the year after operation date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-new-column-that-returns-the-date-1st-of-march-the/m-p/1198169#M19083</link>
      <description>&lt;P&gt;Thank you very much&amp;nbsp;Anonymous&lt;/LI-USER&gt;!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2020 14:00:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-new-column-that-returns-the-date-1st-of-march-the/m-p/1198169#M19083</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-02T14:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a new column that returns the date 1st of march the year after operation date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-new-column-that-returns-the-date-1st-of-march-the/m-p/1198232#M19093</link>
      <description>&lt;P&gt;HI&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the solution works , pls mark it as Solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This will help others in the community.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Harsh Nathani&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Appreciate with a Kudos!! (Click the Thumbs Up Button)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution!&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2020 14:24:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-new-column-that-returns-the-date-1st-of-march-the/m-p/1198232#M19093</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-02T14:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a new column that returns the date 1st of march the year after operation date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-new-column-that-returns-the-date-1st-of-march-the/m-p/1199416#M19127</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;A much simpler solution would be to use the below DAX with concatenate function&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Column = CONCATENATE("01",CONCATENATE(".03.",IF(MONTH('Table'[Date]) &amp;lt;= 3, YEAR('Table'[Date]), YEAR('Table'[Date])+1)))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Thejeswar&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jul 2020 05:09:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-new-column-that-returns-the-date-1st-of-march-the/m-p/1199416#M19127</guid>
      <dc:creator>Thejeswar</dc:creator>
      <dc:date>2020-07-03T05:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a new column that returns the date 1st of march the year after operation date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-new-column-that-returns-the-date-1st-of-march-the/m-p/1199714#M19148</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;One more question. I would like to add something to the existing code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like the column to return the year we are currently in (2020) if the operation date is after 01.03.20. By this I mean if the operation date of new machines this year is 02.02.20 it should return 01.03.20, but if the operation date of a new machine is 16.03.20 it should return 16.03.20 and not 01.03.21 like it does now (otherwise transactions on all machines with an operation date after 01.03.20 is left out).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In example like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Operation date&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Operation date seasonality&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;02.02.20&lt;/TD&gt;&lt;TD&gt;01.03.20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;15.05.20&lt;/TD&gt;&lt;TD&gt;15.05.20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;12.03.20&lt;/TD&gt;&lt;TD&gt;12.03.20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;17.01.20&lt;/TD&gt;&lt;TD&gt;01.03.20&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Fri, 03 Jul 2020 07:00:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-new-column-that-returns-the-date-1st-of-march-the/m-p/1199714#M19148</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-03T07:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a new column that returns the date 1st of march the year after operation date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-new-column-that-returns-the-date-1st-of-march-the/m-p/1199781#M19154</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Modify the Calculated Column you created as follows&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Just modify as _day &amp;gt;= 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Ops Day Seasonality = 

var _year = Year('Table'[Operation date])
var _month = Month ('Table'[Operation date])
var _day = Day('Table'[Operation date])

RETURN

SWITCH(
    TRUE(),
    _month = 3 &amp;amp;&amp;amp; _day &amp;gt;= 1,'Table'[Operation date],
    _month = 1 || _month = 2   ,Date (_year, 3,1),
    Date (_year+1, 3,1)
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jul 2020 07:27:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-new-column-that-returns-the-date-1st-of-march-the/m-p/1199781#M19154</guid>
      <dc:creator>Thejeswar</dc:creator>
      <dc:date>2020-07-03T07:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a new column that returns the date 1st of march the year after operation date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-new-column-that-returns-the-date-1st-of-march-the/m-p/1199794#M19155</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The solution provided by&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="48702" data-lia-user-login="Thejeswar" class="lia-mention lia-mention-user"&gt;Thejeswar&lt;/a&gt;&amp;nbsp; will work in this case then.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regrads&lt;/P&gt;&lt;P&gt;HN&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jul 2020 07:32:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-new-column-that-returns-the-date-1st-of-march-the/m-p/1199794#M19155</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-03T07:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a new column that returns the date 1st of march the year after operation date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-new-column-that-returns-the-date-1st-of-march-the/m-p/1199976#M19157</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="48702" data-lia-user-login="Thejeswar" class="lia-mention lia-mention-user"&gt;Thejeswar&lt;/a&gt;&amp;nbsp;&amp;nbsp;I have tried to do this and it still does not work. For example I have an operation date of 29.05.20 in my dataset and this returns 01.03.20 in the new column and not 29.05.20.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have an idea of where the problem is?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My coding looks like this (exactly like yours):&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jul 2020 08:38:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-new-column-that-returns-the-date-1st-of-march-the/m-p/1199976#M19157</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-03T08:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a new column that returns the date 1st of march the year after operation date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-new-column-that-returns-the-date-1st-of-march-the/m-p/1200151#M19158</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;This thing not working for 29.05.20 is an expected scenario.&lt;/P&gt;&lt;P&gt;The Script is written such that if the data is of month 3 and an data, it will show the same data,&lt;/P&gt;&lt;P&gt;if the data is from months 1 and 2, it will show 1.3.(that year)&lt;/P&gt;&lt;P&gt;for other dates it will show 1.3.nextyear&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So for 29.05.20 it is showing 01.3.21&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Use the below modified script. The Below script returns the data as it is if it is greater that 1-Mar of the current year and for all prior dates as you wanted. The Output also given below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Ops Day Seasonality = 
var _curryear = YEAR(TODAY())
var _year = Year('Table'[Operation date])
var _month = Month ('Table'[Operation date])
var _day = Day('Table'[Operation date])

RETURN
IF('Table'[Operation Date] &amp;gt;= DATE(YEAR(TODAY()),  03, 01), 'Table'[Operation Date],
SWITCH(
    TRUE(),
    _month = 1 || _month = 2   ,Date (_year, 3,1),
    Date (_year+1, 3,1)
    )
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this answers your quetion, accept as soluion and give a kudos!!!&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jul 2020 09:54:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-new-column-that-returns-the-date-1st-of-march-the/m-p/1200151#M19158</guid>
      <dc:creator>Thejeswar</dc:creator>
      <dc:date>2020-07-03T09:54:13Z</dc:date>
    </item>
  </channel>
</rss>

