<?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: Handle blank date in fiscal year calculation in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Handle-blank-date-in-fiscal-year-calculation/m-p/3722484#M144975</link>
    <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="696080" data-lia-user-login="PAPalmer" class="lia-mention lia-mention-user"&gt;PAPalmer&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Based on your description, it seems you are encountering an issue where blank dates in your column are resulting in fiscal dates with the year 1900.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a revised version of your DAX formula:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Fiscal Date =&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;VAR IsDateBlank = ISBLANK(Table[Class_Dt])&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;RETURN&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;IF(&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IsDateBlank,&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BLANK(),&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MONTH(Table[Class_Dt]) &amp;gt; 10,&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATE(YEAR(Table[Class_Dt]) + 1, 10, 1),&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATE(YEAR(Table[Class_Dt]), 10, 1)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have any further questions please feel free to contact me, I would be grateful if you could provide sample data in your reply to me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Yang&lt;BR /&gt;Community Support Team&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If there is any post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;to help the other members find it more quickly.&lt;BR /&gt;If I misunderstand your needs or you still have problems on it, please feel free to let us know.&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Thanks a lot!&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Feb 2024 02:05:12 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-02-26T02:05:12Z</dc:date>
    <item>
      <title>Handle blank date in fiscal year calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Handle-blank-date-in-fiscal-year-calculation/m-p/3722230#M144964</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am a newbie to Power Bi and seeking help from the experts.&lt;BR /&gt;I have a Class Dt which is converted to Fiscal date (which starts from Oct).&amp;nbsp;&lt;/P&gt;&lt;P&gt;using&amp;nbsp;&lt;/P&gt;&lt;P&gt;Fiscal date=If(MONTH(Table[Class_Dt])&amp;gt;10, YEAR(Table[Class_Dt])+1,Year(Table[Class_Dt]))&lt;/P&gt;&lt;P&gt;return&lt;/P&gt;&lt;P&gt;date(eoy,10,1)&amp;nbsp;&lt;/P&gt;&lt;P&gt;which is a date data type.&lt;/P&gt;&lt;P&gt;The Class_Dt has blank dates i&lt;/P&gt;&lt;P&gt;and hence it is inserting dates with year 1900 in the Fiscal date. I would like to modify this calculation to to include If ( ISBLANK(Table[Class_Dt], BLANK())&lt;/P&gt;&lt;P&gt;Can some please help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Pam&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&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;</description>
      <pubDate>Sun, 25 Feb 2024 20:17:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Handle-blank-date-in-fiscal-year-calculation/m-p/3722230#M144964</guid>
      <dc:creator>PAPalmer</dc:creator>
      <dc:date>2024-02-25T20:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: Handle blank date in fiscal year calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Handle-blank-date-in-fiscal-year-calculation/m-p/3722395#M144970</link>
      <description>&lt;P&gt;You will find that the easiest solution is to use a proper calendar table including all your fiscal columns, prepared and stored externally (for example an Excel file on a SharePoint).&amp;nbsp; This data is immutable and there is no good reason to try to create it in either Power Query or in DAX.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 01:01:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Handle-blank-date-in-fiscal-year-calculation/m-p/3722395#M144970</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-02-26T01:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: Handle blank date in fiscal year calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Handle-blank-date-in-fiscal-year-calculation/m-p/3722484#M144975</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="696080" data-lia-user-login="PAPalmer" class="lia-mention lia-mention-user"&gt;PAPalmer&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Based on your description, it seems you are encountering an issue where blank dates in your column are resulting in fiscal dates with the year 1900.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a revised version of your DAX formula:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Fiscal Date =&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;VAR IsDateBlank = ISBLANK(Table[Class_Dt])&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;RETURN&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;IF(&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IsDateBlank,&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BLANK(),&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MONTH(Table[Class_Dt]) &amp;gt; 10,&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATE(YEAR(Table[Class_Dt]) + 1, 10, 1),&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATE(YEAR(Table[Class_Dt]), 10, 1)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have any further questions please feel free to contact me, I would be grateful if you could provide sample data in your reply to me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Yang&lt;BR /&gt;Community Support Team&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If there is any post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;to help the other members find it more quickly.&lt;BR /&gt;If I misunderstand your needs or you still have problems on it, please feel free to let us know.&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Thanks a lot!&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 02:05:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Handle-blank-date-in-fiscal-year-calculation/m-p/3722484#M144975</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-02-26T02:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: Handle blank date in fiscal year calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Handle-blank-date-in-fiscal-year-calculation/m-p/3737362#M145694</link>
      <description>&lt;P&gt;Thank you Yang, it worked well&lt;/P&gt;</description>
      <pubDate>Sat, 02 Mar 2024 04:20:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Handle-blank-date-in-fiscal-year-calculation/m-p/3737362#M145694</guid>
      <dc:creator>PAPalmer</dc:creator>
      <dc:date>2024-03-02T04:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: Handle blank date in fiscal year calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Handle-blank-date-in-fiscal-year-calculation/m-p/3737366#M145695</link>
      <description>&lt;P&gt;Thank you lbendlin. I will be utilizing your approach on a different dashboard for time series analysis which will have multiple fiscal year.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Mar 2024 04:23:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Handle-blank-date-in-fiscal-year-calculation/m-p/3737366#M145695</guid>
      <dc:creator>PAPalmer</dc:creator>
      <dc:date>2024-03-02T04:23:28Z</dc:date>
    </item>
  </channel>
</rss>

