<?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 Running Total by Date and Category in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-by-Date-and-Category/m-p/2602014#M75229</link>
    <description>&lt;P&gt;&amp;nbsp;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After several hours studying running total by category/cumultative totals by category/accumulation patterns on this forum and others, I'm unable to find a solution to my problem &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My current measure is:&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Howver, when I add column "REFERENCE" which is a transaction type, the pattern breaks as below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 26 Jun 2022 08:55:06 GMT</pubDate>
    <dc:creator>majans</dc:creator>
    <dc:date>2022-06-26T08:55:06Z</dc:date>
    <item>
      <title>Running Total by Date and Category</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-by-Date-and-Category/m-p/2602014#M75229</link>
      <description>&lt;P&gt;&amp;nbsp;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After several hours studying running total by category/cumultative totals by category/accumulation patterns on this forum and others, I'm unable to find a solution to my problem &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My current measure is:&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Howver, when I add column "REFERENCE" which is a transaction type, the pattern breaks as below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Jun 2022 08:55:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-by-Date-and-Category/m-p/2602014#M75229</guid>
      <dc:creator>majans</dc:creator>
      <dc:date>2022-06-26T08:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: Running Total by Date and Category</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-by-Date-and-Category/m-p/2602056#M75239</link>
      <description>&lt;P&gt;H&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="181150" data-lia-user-login="majans" class="lia-mention lia-mention-user"&gt;majans&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please try&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;VAR CLosingBalance =
CALCULATE (
    SUM ( DAILY[QTY] ),
    REMOVEFILTERS ( 'DAILY' ),
    VALUES ( 'DAILY'[ITEMID] ),
    'DAILY'[DATE] &amp;lt;= MAX ( 'DAILY'[DATE] )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 26 Jun 2022 09:37:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-by-Date-and-Category/m-p/2602056#M75239</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-06-26T09:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: Running Total by Date and Category</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-by-Date-and-Category/m-p/2602360#M75273</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tried your solution however I'm not getting desired result.&amp;nbsp; See below CBTEST is current measure and CBTEST2 is your suggested solution..&amp;nbsp; Note that CBTEST gives correct result in first table however is not able to handle the additional Dimension "REFERENCE".&amp;nbsp; Any ideas?&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;&lt;P&gt;With REFERENCE DIMENSION&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>Sun, 26 Jun 2022 22:48:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-by-Date-and-Category/m-p/2602360#M75273</guid>
      <dc:creator>majans</dc:creator>
      <dc:date>2022-06-26T22:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: Running Total by Date and Category</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-by-Date-and-Category/m-p/2602679#M75292</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="181150" data-lia-user-login="majans" class="lia-mention lia-mention-user"&gt;majans&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please try&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;=
SUMX (
    FILTER (
        CROSSJOIN ( ALL ( Dim[Reference] ), ALL ( 'DAILY'[DATED] ) ),
        Dim[Reference] = MAX ( Dim[Reference] )
            &amp;amp;&amp;amp; DAILY[DATE] &amp;lt;= MAX ( DAILY[DATE] )
    ),
    CALCULATE ( SUM ( DAILY[QTY] ) )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 27 Jun 2022 03:32:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-by-Date-and-Category/m-p/2602679#M75292</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-06-27T03:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: Running Total by Date and Category</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-by-Date-and-Category/m-p/2603774#M75342</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;I have tried your suggested measure as below:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SUMX (
    FILTER (
        CROSSJOIN ( ALL ( REFERENCE[REFERENCE] ), ALL ( 'DAILY'[DATE] )),
        REFERENCE[REFERENCE] = MAX ( REFERENCE[REFERENCE] ) &amp;amp;&amp;amp;
  

             DAILY[DATE] &amp;lt;= MAX ( DAILY[DATE] )
    ),
    CALCULATE ( SUM ( DAILY[QTY] ) )
)&lt;/LI-CODE&gt;&lt;P&gt;Resulting in below:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Should it make a difference that there are other Dimensions in this table like ITEMID, PLANVERSION, WAREHOUSEID etc?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2022 09:54:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-by-Date-and-Category/m-p/2603774#M75342</guid>
      <dc:creator>majans</dc:creator>
      <dc:date>2022-06-27T09:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: Running Total by Date and Category</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-by-Date-and-Category/m-p/2603872#M75348</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="181150" data-lia-user-login="majans" class="lia-mention lia-mention-user"&gt;majans&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Could be but before investigating further please try&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;=
SUMX (
    FILTER (
        CROSSJOIN ( ALL ( REFERENCE[REFERENCE] ), ALL ( 'DAILY'[DATE] ) ),
        DAILY[DATE] &amp;lt;= MAX ( DAILY[DATE] )
    ),
    CALCULATE ( SUM ( DAILY[QTY] ) )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 27 Jun 2022 10:40:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-by-Date-and-Category/m-p/2603872#M75348</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-06-27T10:40:35Z</dc:date>
    </item>
  </channel>
</rss>

