<?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: Running total like YTD, but begin and end on sept 1 in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-like-YTD-but-begin-and-end-on-sept-1/m-p/4115582#M163369</link>
    <description>&lt;P&gt;I want the end date to be dynamic, and not limited to one date like 31/08. I want the customer to choose th end date. Based on a parameter or selection.&lt;/P&gt;</description>
    <pubDate>Fri, 23 Aug 2024 11:10:01 GMT</pubDate>
    <dc:creator>Artefact</dc:creator>
    <dc:date>2024-08-23T11:10:01Z</dc:date>
    <item>
      <title>Running total like YTD, but begin and end on sept 1</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-like-YTD-but-begin-and-end-on-sept-1/m-p/4114062#M163284</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I think the title says it all! So a DAX command with time intelligence which starts not on jan 1st like YTD but another 1st of a month. And which calculates a running total on a daily basis. And starting again after a full year.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 18:29:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-like-YTD-but-begin-and-end-on-sept-1/m-p/4114062#M163284</guid>
      <dc:creator>Artefact</dc:creator>
      <dc:date>2024-08-22T18:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: Running total like YTD, but begin and end on sept 1</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-like-YTD-but-begin-and-end-on-sept-1/m-p/4114187#M163294</link>
      <description>&lt;P&gt;There is a DAX function DATESYTD which accepts an optional year end date parameter that you could likely use in this scenario.&lt;BR /&gt;Here is a link to the learn doc.&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/dax/datesytd-function-dax" target="_self"&gt;Learn - DATESYTD&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 20:35:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-like-YTD-but-begin-and-end-on-sept-1/m-p/4114187#M163294</guid>
      <dc:creator>jgeddes</dc:creator>
      <dc:date>2024-08-22T20:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: Running total like YTD, but begin and end on sept 1</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-like-YTD-but-begin-and-end-on-sept-1/m-p/4114351#M163307</link>
      <description>&lt;P&gt;Thanks, but I want the end date to be dynamic, with a slicer. And the parameter you mentioned must be static.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 23:18:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-like-YTD-but-begin-and-end-on-sept-1/m-p/4114351#M163307</guid>
      <dc:creator>Artefact</dc:creator>
      <dc:date>2024-08-22T23:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: Running total like YTD, but begin and end on sept 1</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-like-YTD-but-begin-and-end-on-sept-1/m-p/4115464#M163356</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="120776" data-lia-user-login="Artefact" class="lia-mention lia-mention-user"&gt;Artefact&lt;/a&gt;&amp;nbsp;- The solution provided by&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="430441" data-lia-user-login="jgeddes" class="lia-mention lia-mention-user"&gt;jgeddes&lt;/a&gt;&amp;nbsp;will be dynamic, because you will set the year end date to 31/08, which will mean your YTD calculation always begins at 01/09 and runs to current date.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;An example of how you will use this is below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;CALCULATE( [Total Sales], DATESYTD('Date'[Date]', "08-31") )&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;You will need to make sure you use the correct format for your Date Locale.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2024 09:46:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-like-YTD-but-begin-and-end-on-sept-1/m-p/4115464#M163356</guid>
      <dc:creator>mark_endicott</dc:creator>
      <dc:date>2024-08-23T09:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: Running total like YTD, but begin and end on sept 1</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-like-YTD-but-begin-and-end-on-sept-1/m-p/4115582#M163369</link>
      <description>&lt;P&gt;I want the end date to be dynamic, and not limited to one date like 31/08. I want the customer to choose th end date. Based on a parameter or selection.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2024 11:10:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-like-YTD-but-begin-and-end-on-sept-1/m-p/4115582#M163369</guid>
      <dc:creator>Artefact</dc:creator>
      <dc:date>2024-08-23T11:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: Running total like YTD, but begin and end on sept 1</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-like-YTD-but-begin-and-end-on-sept-1/m-p/4115588#M163370</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="120776" data-lia-user-login="Artefact" class="lia-mention lia-mention-user"&gt;Artefact&lt;/a&gt;&amp;nbsp;- You don't understand.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In DATESYTD( ) think of the end date that you set in the code as setting a static start date. You just give it the day before you want your YTD to start.&amp;nbsp;&lt;STRONG&gt;You are just setting a static end to the previous year.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The end date of your current year will then be dynamic when you use a slicer etc.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2024 11:14:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-like-YTD-but-begin-and-end-on-sept-1/m-p/4115588#M163370</guid>
      <dc:creator>mark_endicott</dc:creator>
      <dc:date>2024-08-23T11:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: Running total like YTD, but begin and end on sept 1</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-like-YTD-but-begin-and-end-on-sept-1/m-p/4115601#M163371</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="120776" data-lia-user-login="Artefact" class="lia-mention lia-mention-user"&gt;Artefact&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please try the following approach:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;RunningTotalSep1 =
CALCULATE(
    [Total Sales], 
    FILTER(
        ALL('Date'),
        'Date'[Date] &amp;gt;= DATE(YEAR(TODAY()) - IF(MONTH(TODAY()) &amp;lt; 9, 1, 0), 9, 1) &amp;amp;&amp;amp;
        'Date'[Date] &amp;lt;= MAX('Date'[Date])
    )
)
&lt;/LI-CODE&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2024 11:18:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-like-YTD-but-begin-and-end-on-sept-1/m-p/4115601#M163371</guid>
      <dc:creator>Sahir_Maharaj</dc:creator>
      <dc:date>2024-08-23T11:18:49Z</dc:date>
    </item>
  </channel>
</rss>

