<?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: Summarize Running Total or YTD in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarize-Running-Total-or-YTD/m-p/3969960#M153974</link>
    <description>&lt;P&gt;Thank you very much. Creating a new column using SUMX and Earlier did the magic. I then use SUMMARIZE that brings cumulative number into new table.&lt;/P&gt;&lt;P&gt;Relationship not required for my context as I need a totally independent new table.&lt;/P&gt;</description>
    <pubDate>Tue, 04 Jun 2024 02:25:08 GMT</pubDate>
    <dc:creator>fengwufangzhu</dc:creator>
    <dc:date>2024-06-04T02:25:08Z</dc:date>
    <item>
      <title>Summarize Running Total or YTD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarize-Running-Total-or-YTD/m-p/3966844#M153861</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am stuck for a while on this and also tried to google around.&lt;/P&gt;&lt;P&gt;I have a set of raw revenue data by site and by month. I need to get the cumulative running total and bring it to another table using summarize function (in order to union with other scorecard metrics for some other purpose).&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Site&lt;/TD&gt;&lt;TD&gt;Month&lt;/TD&gt;&lt;TD&gt;Revenue&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;Jan 24&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;Feb 24&lt;/TD&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;Jan 24&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;Feb 24&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Yes I can calculate cumulative running total using either quick measure or YTD function, it is working fine on original table. However once I summarize and bring to another table, the cumulative is not working and only showing monthly data.&lt;/P&gt;&lt;P&gt;What I need: A new summarised table with cumulative revenue&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Site&lt;/TD&gt;&lt;TD&gt;Month&lt;/TD&gt;&lt;TD&gt;YTD Revenue&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;Jan 24&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;Feb 24&lt;/TD&gt;&lt;TD&gt;40&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;Jan 24&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;Feb 24&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Sun, 02 Jun 2024 15:34:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarize-Running-Total-or-YTD/m-p/3966844#M153861</guid>
      <dc:creator>fengwufangzhu</dc:creator>
      <dc:date>2024-06-02T15:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: Summarize Running Total or YTD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarize-Running-Total-or-YTD/m-p/3967377#M153872</link>
      <description>&lt;P&gt;Hi,&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="254252" data-lia-user-login="fengwufangzhu" class="lia-mention lia-mention-user"&gt;fengwufangzhu&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regarding the issue you raised, my solution is as follows:&lt;/P&gt;
&lt;P&gt;1.First I have created the following table and the column names and data are the data you have given:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;2. Below are the Calculated Columns I've created for your needs:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;YTD Revenue = SUMX(FILTER(ALLSELECTED('Table'),'Table'[Site]=EARLIER('Table'[Site])&amp;amp;&amp;amp;'Table'[Month]&amp;lt;=EARLIER('Table'[Month])),'Table'[Revenue])&lt;/LI-CODE&gt;
&lt;P&gt;3.If you want the visualization objects in the other table to display correctly as well, I hope you can check that the relationship between your two tables meets your requirements, in my example I have created an index column and related the two tables with this.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;4.Here's my final result, which I hope meets your requirements.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Can you share sample data and sample output in tabular format if I am misunderstanding? Or a sample pbix after removing sensitive data. We can better understand the problem and help you.&lt;BR /&gt;Please find the attached pbix relevant to the case.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Leroy Lu&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider Accept it &lt;STRONG&gt;&lt;EM&gt;as the solution &lt;/EM&gt;&lt;/STRONG&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2024 03:14:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarize-Running-Total-or-YTD/m-p/3967377#M153872</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-03T03:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: Summarize Running Total or YTD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarize-Running-Total-or-YTD/m-p/3969960#M153974</link>
      <description>&lt;P&gt;Thank you very much. Creating a new column using SUMX and Earlier did the magic. I then use SUMMARIZE that brings cumulative number into new table.&lt;/P&gt;&lt;P&gt;Relationship not required for my context as I need a totally independent new table.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2024 02:25:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarize-Running-Total-or-YTD/m-p/3969960#M153974</guid>
      <dc:creator>fengwufangzhu</dc:creator>
      <dc:date>2024-06-04T02:25:08Z</dc:date>
    </item>
  </channel>
</rss>

