<?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 doing a cumulative total in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-doing-a-cumulative-total/m-p/4319787#M171491</link>
    <description>&lt;P&gt;I am unsure whether I need or how to go about inputting a date column, every piece of data is tied to an ID value, and there are several dates tied to each ID, the schedule start and finish date, the actual start date and finish date, the baseline start and finish date, and the planned start and finish date. The schedule start date is what I use to get the date range of each count it is the X axis of the chart purely because it is the only date that will not skew the date data of the other types. The actual start date and the baseline start dates of each activity create the counts, just like a pivot table counting the number of activities in the schedule that fall within a set number of dates. I may not be understanding the role of a date column in Power BI.&lt;/P&gt;</description>
    <pubDate>Mon, 09 Dec 2024 13:48:49 GMT</pubDate>
    <dc:creator>psmithAPS</dc:creator>
    <dc:date>2024-12-09T13:48:49Z</dc:date>
    <item>
      <title>Help with doing a cumulative total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-doing-a-cumulative-total/m-p/4315769#M171375</link>
      <description>&lt;P&gt;Alright, so I've been banging my head against the wall for a week trying to figure out how to do something that would have taken -3 seconds in excel.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a graph that I am creating that is simply a planned vs actual count over time. The Count is performed by power BI and is simply counting how many tasks started each month from a rip out of P6. What I cannot figure out for the life of me is how to simple create a new visual calculation in this table that is a running total of the count each month. (See table below).&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, 05 Dec 2024 20:02:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-doing-a-cumulative-total/m-p/4315769#M171375</guid>
      <dc:creator>psmithAPS</dc:creator>
      <dc:date>2024-12-05T20:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: Help with doing a cumulative total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-doing-a-cumulative-total/m-p/4315888#M171381</link>
      <description>&lt;P&gt;hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="890099" data-lia-user-login="psmithAPS" class="lia-mention lia-mention-user"&gt;psmithAPS&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Supposing you have a date column, try to&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1.add a calculated column like:&lt;/P&gt;
&lt;P&gt;yy/mm = FORMAT(data[date], "yy/mm")&lt;/P&gt;
&lt;P&gt;2.plot the visual with yy/mm column and a measure like:&lt;/P&gt;
&lt;P&gt;cumulative total of actual start =&lt;/P&gt;
&lt;P&gt;CALCULATR(&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; COUNT(data[actual start]),&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; data[yy/mm]&amp;lt;=MAX(data[yy/mm])&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2024 22:25:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-doing-a-cumulative-total/m-p/4315888#M171381</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2024-12-05T22:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: Help with doing a cumulative total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-doing-a-cumulative-total/m-p/4319002#M171469</link>
      <description>&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;Thanks for the reply from FreemanZ&amp;nbsp;, please allow me to provide another insight:&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="890099" data-lia-user-login="psmithAPS" class="lia-mention lia-mention-user"&gt;psmithAPS&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;Based on your requirements, I am providing three solutions:&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;" lang="zh-CN"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;Here is my sample data:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;Solution 1: Direct Visual Calculation&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;Result:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;Although this is the simplest method, it cannot remove the original column and requires calculations based on the original data.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;For more details, please refer to:&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/transform-model/desktop-visual-calculations-overview" target="_blank"&gt;&lt;SPAN&gt;Using visual calculations in Power BI Desktop - Power BI | Microsoft Learn&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;" lang="zh-CN"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;Solution 2:&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;&lt;SPAN&gt;1.&lt;/SPAN&gt;&lt;SPAN&gt;Firstly, create the following calculation table:&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Table = 
SUMMARIZE(
    'virtual_data',
    'virtual_data'[Date].[Year],
    'virtual_data'[Date].[Month],'virtual_data'[Date].[MonthNo],
    "cx", COUNT('virtual_data'[xx]),
    "cl", COUNT('virtual_data'[ll])
)&lt;/LI-CODE&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;&lt;SPAN&gt;2.&lt;/SPAN&gt;&lt;SPAN&gt;Secondly, create the following measure:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;MEASURE = 
IF (
    ISINSCOPE ( 'Table'[Year] ),
    CALCULATE (
        SUM ( 'Table'[cl] ),
        FILTER (
            ALLSELECTED ( 'Table' ),
            'Table'[MonthNo] &amp;lt;= MAX ( 'Table'[MonthNo] )
                &amp;amp;&amp;amp; 'Table'[Year] = MAX ( 'Table'[Year] )
        )
    ),
    SUM ( 'Table'[cl] )
)
&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Measure2 = 
IF (
    ISINSCOPE ( 'Table'[Year] ),
    CALCULATE (
        SUM ( 'Table'[cx] ),
        FILTER (
            ALLSELECTED ( 'Table' ),
            'Table'[MonthNo] &amp;lt;= MAX ( 'Table'[MonthNo] )
                &amp;amp;&amp;amp; 'Table'[Year] = MAX ( 'Table'[Year] )
        )
    ),
    SUM ( 'Table'[cx] )
)
&lt;/LI-CODE&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;&lt;SPAN&gt;3.&lt;/SPAN&gt;&lt;SPAN&gt;Result:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;This solution can remove the original data column and clearly show the data before accumulation. However, it involves creating a new table, which may not be suitable for large datasets.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;" lang="zh-CN"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;Solution 3:&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;&lt;SPAN&gt;1.&lt;/SPAN&gt;&lt;SPAN&gt;Create the following measure:&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measurexx = 
VAR c1 =
    SUMMARIZE (
        ALLSELECTED ( 'virtual_data' ),
        'virtual_data'[Date].[Year],
        'virtual_data'[Date].[Month],
        'virtual_data'[Date].[MonthNo],
        "cx", COUNT ( 'virtual_data'[xx] ),
        "cl", COUNT ( 'virtual_data'[ll] )
    )
VAR r1 =
    SUMX (
        FILTER (
            c1,
            'virtual_data'[Date].[Year] = MAX ( 'virtual_data'[Date].[Year] )
                &amp;amp;&amp;amp; 'virtual_data'[Date].[MonthNo] &amp;lt;= MAX ( 'virtual_data'[Date].[MonthNo] )
        ),
        [cx]
    )
RETURN
    IF ( ISINSCOPE ( 'virtual_data'[Date].[Year] ), r1, SUMX ( c1, [cx] ) )
&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Measurell =
VAR c2 =
    SUMMARIZE (
        ALLSELECTED ( 'virtual_data' ),
        'virtual_data'[Date].[Year],
        'virtual_data'[Date].[Month],
        'virtual_data'[Date].[MonthNo],
        "cx", COUNT ( 'virtual_data'[xx] ),
        "cl", COUNT ( 'virtual_data'[ll] )
    )
VAR r2 =
    SUMX (
        FILTER (
            c2,
            'virtual_data'[Date].[Year] = MAX ( 'virtual_data'[Date].[Year] )
                &amp;amp;&amp;amp; 'virtual_data'[Date].[MonthNo] &amp;lt;= MAX ( 'virtual_data'[Date].[MonthNo] )
        ),
        [cl]
    )
RETURN
    IF ( ISINSCOPE ( 'virtual_data'[Date].[Year] ), r2, SUMX ( c2, [cl] ) )
&lt;/LI-CODE&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;&lt;SPAN&gt;2.&lt;/SPAN&gt;&lt;SPAN&gt;Result:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;This solution is more efficient but not as easy to maintain as Solution 2.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;" lang="zh-CN"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;You can choose based on your needs.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;&lt;SPAN&gt;Please find the attached pbix relevant to the case.&lt;/SPAN&gt;&lt;SPAN&gt;There is a page for each scenario you may need to pay attention to&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;Best Regards,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;Leroy Lu&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;If this post &lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider Accept it &lt;EM&gt;&lt;STRONG&gt;as the solution &lt;/STRONG&gt;&lt;/EM&gt;to help the other members find it more quickly.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2024 05:24:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-doing-a-cumulative-total/m-p/4319002#M171469</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-12-09T05:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: Help with doing a cumulative total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-doing-a-cumulative-total/m-p/4319787#M171491</link>
      <description>&lt;P&gt;I am unsure whether I need or how to go about inputting a date column, every piece of data is tied to an ID value, and there are several dates tied to each ID, the schedule start and finish date, the actual start date and finish date, the baseline start and finish date, and the planned start and finish date. The schedule start date is what I use to get the date range of each count it is the X axis of the chart purely because it is the only date that will not skew the date data of the other types. The actual start date and the baseline start dates of each activity create the counts, just like a pivot table counting the number of activities in the schedule that fall within a set number of dates. I may not be understanding the role of a date column in Power BI.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2024 13:48:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-doing-a-cumulative-total/m-p/4319787#M171491</guid>
      <dc:creator>psmithAPS</dc:creator>
      <dc:date>2024-12-09T13:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: Help with doing a cumulative total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-doing-a-cumulative-total/m-p/4320890#M171549</link>
      <description>&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;Hi, &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="890099" data-lia-user-login="psmithAPS" class="lia-mention lia-mention-user"&gt;psmithAPS&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;Thank you for your prompt response.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;You can try the following steps in Power Query to generate a new date column:&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial;"&gt;&lt;SPAN&gt;1.&lt;/SPAN&gt;&lt;SPAN&gt;Firstly, here is my sample data:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial;"&gt;&lt;SPAN&gt;2.&lt;/SPAN&gt;&lt;SPAN&gt;Secondly, I added a custom column in Power Query:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Date.FromText(Text.From([Year]) &amp;amp; "-" &amp;amp; Text.PadStart(Text.From([Month]), 2, "0") &amp;amp; "-01")
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial;"&gt;&lt;SPAN&gt;3.&lt;/SPAN&gt;&lt;SPAN&gt;Next, I modified its data type:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial;"&gt;&lt;SPAN&gt;4.&lt;/SPAN&gt;&lt;SPAN&gt;Below is the final result:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;Please find the attached pbix relevant to the case.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;Best Regards,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;Leroy Lu&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;If this post &lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider Accept it &lt;EM&gt;&lt;STRONG&gt;as the solution &lt;/STRONG&gt;&lt;/EM&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2024 05:25:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-doing-a-cumulative-total/m-p/4320890#M171549</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-12-10T05:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: Help with doing a cumulative total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-doing-a-cumulative-total/m-p/4321760#M171571</link>
      <description>&lt;P&gt;The problem with this solution appears to be that the dates I pull from already are in mm/dd/yyyy format prior to starting the chart, there is no text date to combine until I utilize the start date as the X-axis data. Is there a visual calculation that allows for a cumulative sum within the table view of the data.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2024 13:07:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-doing-a-cumulative-total/m-p/4321760#M171571</guid>
      <dc:creator>psmithAPS</dc:creator>
      <dc:date>2024-12-10T13:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: Help with doing a cumulative total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-doing-a-cumulative-total/m-p/4322928#M171622</link>
      <description>&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="890099" data-lia-user-login="psmithAPS" class="lia-mention lia-mention-user"&gt;psmithAPS&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;Thank you for your prompt response.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;Firstly,I'm glad to hear that you're interested in visual calculations. However, I should explain that visual calculations are only applicable to report views.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;In table view, visible DAX calculations are either calculated columns or calculated tables:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;If you want DAX calculations to be visible in table view, you can try the second solution I mentioned earlier, but with a slight modification:&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;1.Firstly, create a calculation table and aggregate the values:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Table = 
SUMMARIZE(
    'virtual_data',
    'virtual_data'[Date].[Year],
    'virtual_data'[Date].[Month],'virtual_data'[Date].[MonthNo],
    "cx", COUNT('virtual_data'[xx]),
    "cl", COUNT('virtual_data'[ll])
)&lt;/LI-CODE&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;2.Secondly, create the following calculated column:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column1= CALCULATE (
        SUM ( 'Table'[cl] ),
        FILTER (
            ALLSELECTED ( 'Table' ),
            'Table'[MonthNo] &amp;lt;= EARLIER( 'Table'[MonthNo] )
                &amp;amp;&amp;amp; 'Table'[Year] =EARLIER( ( 'Table'[Year] )
        )
    ))
&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Column 2 = CALCULATE (
        SUM ( 'Table'[cx] ),
        FILTER (
            ALLSELECTED ( 'Table' ),
            'Table'[MonthNo] &amp;lt;= EARLIER( 'Table'[MonthNo] )
                &amp;amp;&amp;amp; 'Table'[Year] =EARLIER( ( 'Table'[Year] )
        )
    ))
&lt;/LI-CODE&gt;
&lt;P&gt;If you prefer to use visual calculations, you can try the first solution I mentioned earlier.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;3.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 style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;4.You may need to note that if the total in the matrix is not calculated in the way you desire, you can use the following measure:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;MEASURE =
IF ( ISINSCOPE ( 'Table'[Year] ), MAX ( 'Table'[Column1] ), SUM ( [cl] ) )&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;Please find the attached pbix relevant to the case.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;Best Regards,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;Leroy Lu&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;If this post &lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider Accept it &lt;EM&gt;&lt;STRONG&gt;as the solution &lt;/STRONG&gt;&lt;/EM&gt;to help the other members find it more quickly.&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2024 05:51:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-doing-a-cumulative-total/m-p/4322928#M171622</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-12-11T05:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: Help with doing a cumulative total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-doing-a-cumulative-total/m-p/4680486#M179275</link>
      <description>&lt;P&gt;Please asssit im having a similar problem, I did a calculated Visual , for running sum but it not showing when published i need to recreate either a measure or calculated column that does the same function, please advise, Ive tried everything,.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 May 2025 13:33:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-doing-a-cumulative-total/m-p/4680486#M179275</guid>
      <dc:creator>Rentia</dc:creator>
      <dc:date>2025-05-05T13:33:19Z</dc:date>
    </item>
  </channel>
</rss>

