<?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: Help with Dax query to find cumulative total for every 3 months in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-Dax-query-to-find-cumulative-total-for-every-3-months/m-p/3749748#M146255</link>
    <description>&lt;P&gt;Ok I think I figured out the syntax. Turns out I just needed to partition by quarter.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;cumulative sum = CALCULATE([expected revenue sum],
                                WINDOW(
                                    1,ABS,
                                    0,REL,
                                    SUMMARIZE(
                                        ALLSELECTED(BDX_NEW_BUSINESS_TARGETS), 
                                                    BDX_NEW_BUSINESS_TARGETS[rolling_date_test],
                                                    BDX_NEW_BUSINESS_TARGETS[rolling_date_test].[Quarter]),
                                    ORDERBY(BDX_NEW_BUSINESS_TARGETS[rolling_date_test]),,PARTITIONBY(BDX_NEW_BUSINESS_TARGETS[rolling_date_test].[Quarter])))&lt;/LI-CODE&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 07 Mar 2024 22:13:37 GMT</pubDate>
    <dc:creator>michael_ma</dc:creator>
    <dc:date>2024-03-07T22:13:37Z</dc:date>
    <item>
      <title>Help with Dax query to find cumulative total for every 3 months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-Dax-query-to-find-cumulative-total-for-every-3-months/m-p/3749611#M146250</link>
      <description>&lt;P&gt;Hi guys,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have this dax function that takes the cumulative sum of a measure. I want to keep the cumulative sum, but have it reset every 3 months. Does anyone have an idea on how to modify what I currently have to rest cumulative sum for every 3 months?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2024 20:19:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-Dax-query-to-find-cumulative-total-for-every-3-months/m-p/3749611#M146250</guid>
      <dc:creator>michael_ma</dc:creator>
      <dc:date>2024-03-07T20:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Dax query to find cumulative total for every 3 months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-Dax-query-to-find-cumulative-total-for-every-3-months/m-p/3749748#M146255</link>
      <description>&lt;P&gt;Ok I think I figured out the syntax. Turns out I just needed to partition by quarter.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;cumulative sum = CALCULATE([expected revenue sum],
                                WINDOW(
                                    1,ABS,
                                    0,REL,
                                    SUMMARIZE(
                                        ALLSELECTED(BDX_NEW_BUSINESS_TARGETS), 
                                                    BDX_NEW_BUSINESS_TARGETS[rolling_date_test],
                                                    BDX_NEW_BUSINESS_TARGETS[rolling_date_test].[Quarter]),
                                    ORDERBY(BDX_NEW_BUSINESS_TARGETS[rolling_date_test]),,PARTITIONBY(BDX_NEW_BUSINESS_TARGETS[rolling_date_test].[Quarter])))&lt;/LI-CODE&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2024 22:13:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-Dax-query-to-find-cumulative-total-for-every-3-months/m-p/3749748#M146255</guid>
      <dc:creator>michael_ma</dc:creator>
      <dc:date>2024-03-07T22:13:37Z</dc:date>
    </item>
  </channel>
</rss>

