<?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: YTD, MTD, QTD dax for fiscal year in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YTD-MTD-QTD-dax-for-fiscal-year/m-p/3522425#M135312</link>
    <description>&lt;P&gt;Use "FY Date" or "FY Yr-Mth" in viz.&lt;/P&gt;</description>
    <pubDate>Wed, 08 Nov 2023 12:47:11 GMT</pubDate>
    <dc:creator>ThxAlot</dc:creator>
    <dc:date>2023-11-08T12:47:11Z</dc:date>
    <item>
      <title>YTD, MTD, QTD dax for fiscal year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YTD-MTD-QTD-dax-for-fiscal-year/m-p/3521696#M135281</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have a slicer which will change between&amp;nbsp;&amp;nbsp;YTD, MTD, QTD using selectedvalue dax we will populate the table. Our fiscal year starts on March&lt;BR /&gt;&lt;BR /&gt;Currently, we are using these dax for YTD and QTD,&lt;BR /&gt;i)&amp;nbsp;&lt;SPAN&gt;totalYTD =&lt;/SPAN&gt; &lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[total_amount]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;DATESYTD&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'dim_date (2)'&lt;/SPAN&gt;&lt;SPAN&gt;[date_column]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"28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N&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;amp;&amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;'dim_date (2)'&lt;/SPAN&gt;&lt;SPAN&gt;[date_column]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;lt;= &lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'dim_date (2)'&lt;/SPAN&gt;&lt;SPAN&gt;[date_column]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; )&lt;BR /&gt;iii) totalMTD = SUM(amount) since the granuality of data is at a level of months&lt;BR /&gt;We are facing issues in YTD since febraury might be a leap year we are unable to give correct Year end date.&lt;BR /&gt;In QTD we are facing issue in which the QTD sums quarter based on calendar quarter.&lt;BR /&gt;Thank you&lt;BR /&gt;Yogesh&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 08 Nov 2023 07:54:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YTD-MTD-QTD-dax-for-fiscal-year/m-p/3521696#M135281</guid>
      <dc:creator>YogeshWaran2010</dc:creator>
      <dc:date>2023-11-08T07:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: YTD, MTD, QTD dax for fiscal year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YTD-MTD-QTD-dax-for-fiscal-year/m-p/3521939#M135286</link>
      <description>&lt;P&gt;My unique way to tackle any fiscal year questions, no matter a fiscal year ends in Feb or any month of the year.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;DATES = 
ADDCOLUMNS(
    CALENDAR(
        EOMONTH( MIN( SALES[Date] ), -1 ) + 1,
        EOMONTH( MAX( SALES[Date] ), 0 )
    ),
    "FY Date", EDATE( [Date], -2 ),
    "FY Yr-Mth", FORMAT( EDATE( [Date], -2 ), "yyyy-MM" )
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 09:10:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YTD-MTD-QTD-dax-for-fiscal-year/m-p/3521939#M135286</guid>
      <dc:creator>ThxAlot</dc:creator>
      <dc:date>2023-11-08T09:10:20Z</dc:date>
    </item>
    <item>
      <title>Re: YTD, MTD, QTD dax for fiscal year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YTD-MTD-QTD-dax-for-fiscal-year/m-p/3522178#M135295</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="474658" data-lia-user-login="ThxAlot" class="lia-mention lia-mention-user"&gt;ThxAlot&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;BR /&gt;Thank you for your fast replay. I have tried out the calendar table that you used but I am still getting the rolling total till Dec and not for Jan and feb. I have attached the sample pbi file&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;BR /&gt;&lt;A href="https://gjapan-my.sharepoint.com/:u:/g/personal/ds_yogesh_g-japan_com/EbeyUtXm4VdEmCtnO4ZVNiYB6MPNjzCbEGC88EblrJTenQ?e=lxIN5f" target="_self"&gt;PBI File&lt;/A&gt;&amp;nbsp;- &lt;A href="https://gjapan-my.sharepoint.com/:u:/g/personal/ds_yogesh_g-japan_com/EbeyUtXm4VdEmCtnO4ZVNiYB6MPNjzCbEGC88EblrJTenQ?e=lxIN5f" target="_self"&gt;click here&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 10:32:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YTD-MTD-QTD-dax-for-fiscal-year/m-p/3522178#M135295</guid>
      <dc:creator>YogeshWaran2010</dc:creator>
      <dc:date>2023-11-08T10:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: YTD, MTD, QTD dax for fiscal year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YTD-MTD-QTD-dax-for-fiscal-year/m-p/3522425#M135312</link>
      <description>&lt;P&gt;Use "FY Date" or "FY Yr-Mth" in viz.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 12:47:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YTD-MTD-QTD-dax-for-fiscal-year/m-p/3522425#M135312</guid>
      <dc:creator>ThxAlot</dc:creator>
      <dc:date>2023-11-08T12:47:11Z</dc:date>
    </item>
  </channel>
</rss>

