<?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: Custom Year End Date on DATESYTD in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Custom-Year-End-Date-on-DATESYTD/m-p/2354040#M59865</link>
    <description>&lt;P&gt;Thanks &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="292943" data-lia-user-login="v-angzheng-msft" class="lia-mention lia-mention-user"&gt;v-angzheng-msft&lt;/a&gt; but since our end date is not standard each year, is it possible to get the first Sunday of May from a powerbi function?&lt;/P&gt;</description>
    <pubDate>Tue, 22 Feb 2022 17:19:48 GMT</pubDate>
    <dc:creator>andreas789</dc:creator>
    <dc:date>2022-02-22T17:19:48Z</dc:date>
    <item>
      <title>Custom Year End Date on DATESYTD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Custom-Year-End-Date-on-DATESYTD/m-p/2347890#M59432</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Our fiscal year begins on the first Sunday of May.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Is it possible to have a custom year-end date (First Sunday of May - 1 Day) on DATES YTD function?&lt;/SPAN&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Fiscal YTD Net Sales = 

CALCULATE(SUM(sales[NET_SALES]), DATESYTD(periodsfulldata[Date]))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Feb 2022 14:44:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Custom-Year-End-Date-on-DATESYTD/m-p/2347890#M59432</guid>
      <dc:creator>andreas789</dc:creator>
      <dc:date>2022-02-18T14:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Year End Date on DATESYTD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Custom-Year-End-Date-on-DATESYTD/m-p/2348025#M59447</link>
      <description>&lt;P&gt;use (endofyear) function to createyear end date&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Feb 2022 16:07:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Custom-Year-End-Date-on-DATESYTD/m-p/2348025#M59447</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-18T16:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Year End Date on DATESYTD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Custom-Year-End-Date-on-DATESYTD/m-p/2352342#M59769</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="350480" data-lia-user-login="andreas789" class="lia-mention lia-mention-user"&gt;andreas789&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Yes, use&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/dax/totalytd-function-dax" target="_blank"&gt;TOTALYTD&lt;/A&gt; fuction.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Community Support Team _ Zeon Zheng&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&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;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 04:56:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Custom-Year-End-Date-on-DATESYTD/m-p/2352342#M59769</guid>
      <dc:creator>v-angzheng-msft</dc:creator>
      <dc:date>2022-02-22T04:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Year End Date on DATESYTD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Custom-Year-End-Date-on-DATESYTD/m-p/2354040#M59865</link>
      <description>&lt;P&gt;Thanks &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="292943" data-lia-user-login="v-angzheng-msft" class="lia-mention lia-mention-user"&gt;v-angzheng-msft&lt;/a&gt; but since our end date is not standard each year, is it possible to get the first Sunday of May from a powerbi function?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 17:19:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Custom-Year-End-Date-on-DATESYTD/m-p/2354040#M59865</guid>
      <dc:creator>andreas789</dc:creator>
      <dc:date>2022-02-22T17:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Year End Date on DATESYTD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Custom-Year-End-Date-on-DATESYTD/m-p/2354647#M59906</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="350480" data-lia-user-login="andreas789" class="lia-mention lia-mention-user"&gt;andreas789&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Yes, try this:&lt;/P&gt;
&lt;LI-CODE lang="ruby"&gt;Measure = 
var _currentYear=MAX('Table'[Year])
return 
CALCULATE(MIN('Table'[Date]),FILTER(ALL('Table'),'Table'[Year]=_currentYear&amp;amp;&amp;amp;MONTH('Table'[Date])=5&amp;amp;&amp;amp;WEEKDAY([Date],2)=7))&lt;/LI-CODE&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Please refer to the attachment below for details.&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Community Support Team _ Zeon Zheng&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&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;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 02:03:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Custom-Year-End-Date-on-DATESYTD/m-p/2354647#M59906</guid>
      <dc:creator>v-angzheng-msft</dc:creator>
      <dc:date>2022-02-23T02:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Year End Date on DATESYTD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Custom-Year-End-Date-on-DATESYTD/m-p/2360939#M60335</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="292943" data-lia-user-login="v-angzheng-msft" class="lia-mention lia-mention-user"&gt;v-angzheng-msft&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to use that measure on DATESYTD, or TOTALYTD functions?&lt;BR /&gt;&lt;BR /&gt;I tried that but it seems that it only accepts constant text values.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 10:33:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Custom-Year-End-Date-on-DATESYTD/m-p/2360939#M60335</guid>
      <dc:creator>andreas789</dc:creator>
      <dc:date>2022-02-25T10:33:19Z</dc:date>
    </item>
  </channel>
</rss>

