<?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 Total from a Summarised Table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-from-a-Summarised-Table/m-p/3972955#M154056</link>
    <description>&lt;P&gt;Wow thank you! Not sure how, but this this works well! I'm not familiar with the Window function.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 05 Jun 2024 05:06:35 GMT</pubDate>
    <dc:creator>2NV_DB</dc:creator>
    <dc:date>2024-06-05T05:06:35Z</dc:date>
    <item>
      <title>Cumulative Total from a Summarised Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-from-a-Summarised-Table/m-p/3972839#M154054</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the followed the information provided in this thread to create a summary table with a cumulative total here:&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/Desktop/Cumulative-Using-Summarized-Table/td-p/1355321" target="_self"&gt;https://community.fabric.microsoft.com/t5/Desktop/Cumulative-Using-Summarized-Table/td-p/1355321&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;However my cumulative value will not result and I don't understand why. It should be the cumulative of the Incremental Sales column.&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;I expect the cumulative to be 80764+208746 etc. The Incremental Sales is simply 2024-2023 month.&lt;BR /&gt;&lt;BR /&gt;What am I doing wrong?&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2024 03:45:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-from-a-Summarised-Table/m-p/3972839#M154054</guid>
      <dc:creator>2NV_DB</dc:creator>
      <dc:date>2024-06-05T03:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Total from a Summarised Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-from-a-Summarised-Table/m-p/3972864#M154055</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not sure how your semantic model looks like, but I tried to create a sample pbix file like below.&lt;BR /&gt;Please check the below picture and the attached pbix file.&lt;/P&gt;
&lt;P&gt;I suggest having a [month number] column as well.&lt;BR /&gt;&lt;BR /&gt;&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;&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;&lt;A href="https://learn.microsoft.com/en-us/dax/window-function-dax?wt.mc_id=DP-MVP-5004989" target="_blank"&gt;WINDOW function (DAX) - DAX | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;expected result table =
VAR _t =
    ADDCOLUMNS (
        SUMMARIZE (
            consolidated_sales_actual,
            fianacial_calendar[Month],
            fianacial_calendar[Month Number]
        ),
        "2023sales",
            CALCULATE (
                SUM ( consolidated_sales_actual[sales_net] ),
                fianacial_calendar[Year] = 2023
            ),
        "2024sales",
            CALCULATE (
                SUM ( consolidated_sales_actual[sales_net] ),
                fianacial_calendar[Year] = 2024
            )
    )
VAR _diff =
    ADDCOLUMNS ( _t, "diff", [2024sales] - [2023sales] )
VAR _cumulatediff =
    ADDCOLUMNS (
        _diff,
        "cumulatedifference",
            SUMX (
                WINDOW (
                    1,
                    ABS,
                    0,
                    REL,
                    _diff,
                    ORDERBY ( fianacial_calendar[Month Number], ASC )
                ),
                [diff]
            )
    )
RETURN
    _cumulatediff
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2024 04:08:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-from-a-Summarised-Table/m-p/3972864#M154055</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2024-06-05T04:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Total from a Summarised Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-from-a-Summarised-Table/m-p/3972955#M154056</link>
      <description>&lt;P&gt;Wow thank you! Not sure how, but this this works well! I'm not familiar with the Window function.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2024 05:06:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-from-a-Summarised-Table/m-p/3972955#M154056</guid>
      <dc:creator>2NV_DB</dc:creator>
      <dc:date>2024-06-05T05:06:35Z</dc:date>
    </item>
  </channel>
</rss>

