<?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: Cumulative sum for QTD (Custom Quarter) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-sum-for-QTD-Custom-Quarter/m-p/3348340#M125727</link>
    <description>&lt;P&gt;Hi try it :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;QTD = 
Var QuarterNumber = INT( (MOD('Table'[Date].[NbMonth] + 3, 12)) / 3)
RETURN
SUMX(FILTER('Table', INT( (MOD('Table'[Date].[NbMonth] + 3, 12)) / 3) == QuarterNumber &amp;amp;&amp;amp; 'Table'[Date] &amp;lt; EARLIER('Table'[Date]) + 1 &amp;amp;&amp;amp; 'Table'[Date].[Year] == EARLIER('Table'[Date].[Year])), 'Table'[ProductCount])&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 25 Jul 2023 08:55:00 GMT</pubDate>
    <dc:creator>Kev74</dc:creator>
    <dc:date>2023-07-25T08:55:00Z</dc:date>
    <item>
      <title>Cumulative sum for QTD (Custom Quarter)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-sum-for-QTD-Custom-Quarter/m-p/3346317#M125649</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;We have fortnightly data and ask is to show cumulative sum of &lt;STRONG&gt;ProductCount&lt;/STRONG&gt; on MTD, YTD and QTD level.&lt;/P&gt;&lt;P&gt;In this requirement, FY starts from Sep and Q1=Sep-Nov and so on&lt;/P&gt;&lt;P&gt;MTD and YTD is working as expected, but since for QTD we do not have any option to define quarter start.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TestQTD&lt;/STRONG&gt; is the expected output in screenshot&lt;/P&gt;&lt;P&gt;Kindly suggest possible solution.&lt;/P&gt;&lt;P&gt;Appreciate your inputs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2023 10:23:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-sum-for-QTD-Custom-Quarter/m-p/3346317#M125649</guid>
      <dc:creator>SQuazi</dc:creator>
      <dc:date>2023-07-24T10:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative sum for QTD (Custom Quarter)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-sum-for-QTD-Custom-Quarter/m-p/3347090#M125676</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="593221" data-lia-user-login="SQuazi" class="lia-mention lia-mention-user"&gt;SQuazi&lt;/a&gt;- Check this out, let me know if this work for you.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ProductValue QTD =
CALCULATE(
    SUM('Table'[ProductValue]),
    FILTER(
        ALL('Table'),
        'Table'[Date] &amp;lt;= MAX('Table'[Date])
            &amp;amp;&amp;amp; YEAR('Table'[Date]) = YEAR(MAX('Table'[Date]))
            &amp;amp;&amp;amp; STARTOFQUARTER('Table'[Date], 3) = STARTOFQUARTER(MAX('Table'[Date]), 3)
    )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 24 Jul 2023 17:27:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-sum-for-QTD-Custom-Quarter/m-p/3347090#M125676</guid>
      <dc:creator>Manoj_Nair</dc:creator>
      <dc:date>2023-07-24T17:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative sum for QTD (Custom Quarter)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-sum-for-QTD-Custom-Quarter/m-p/3347862#M125711</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="477147" data-lia-user-login="Manoj_Nair" class="lia-mention lia-mention-user"&gt;Manoj_Nair&lt;/a&gt;&amp;nbsp;STARTOFQUARTER does not take 2 arguments&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2023 04:56:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-sum-for-QTD-Custom-Quarter/m-p/3347862#M125711</guid>
      <dc:creator>SQuazi</dc:creator>
      <dc:date>2023-07-25T04:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative sum for QTD (Custom Quarter)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-sum-for-QTD-Custom-Quarter/m-p/3348340#M125727</link>
      <description>&lt;P&gt;Hi try it :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;QTD = 
Var QuarterNumber = INT( (MOD('Table'[Date].[NbMonth] + 3, 12)) / 3)
RETURN
SUMX(FILTER('Table', INT( (MOD('Table'[Date].[NbMonth] + 3, 12)) / 3) == QuarterNumber &amp;amp;&amp;amp; 'Table'[Date] &amp;lt; EARLIER('Table'[Date]) + 1 &amp;amp;&amp;amp; 'Table'[Date].[Year] == EARLIER('Table'[Date].[Year])), 'Table'[ProductCount])&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 25 Jul 2023 08:55:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-sum-for-QTD-Custom-Quarter/m-p/3348340#M125727</guid>
      <dc:creator>Kev74</dc:creator>
      <dc:date>2023-07-25T08:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative sum for QTD (Custom Quarter)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-sum-for-QTD-Custom-Quarter/m-p/3352662#M125909</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="593221" data-lia-user-login="SQuazi" class="lia-mention lia-mention-user"&gt;SQuazi&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can try the following methods&lt;/SPAN&gt;&lt;SPAN&gt;.&amp;nbsp;The fiscal year calendar is shown.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Measure:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;TestQTD = 
CALCULATE ( SUM ( 'Table'[ProductCount] ),
    FILTER ( ALL ( 'Date' ),
        [Date] &amp;lt;= SELECTEDVALUE ( 'Table'[ReportingDate] )
            &amp;amp;&amp;amp; [FYQ] = SELECTEDVALUE ( 'Date'[FYQ] )
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Is this the result you expect?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _Charlotte&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;STRONG&gt;helps, then please consider&amp;nbsp;&lt;EM&gt;Accept it as the solution&amp;nbsp;to help the other members find it more quickly.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2023 07:44:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-sum-for-QTD-Custom-Quarter/m-p/3352662#M125909</guid>
      <dc:creator>v-zhangti</dc:creator>
      <dc:date>2023-07-27T07:44:21Z</dc:date>
    </item>
  </channel>
</rss>

