<?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: How to modify some DAX measures to solve a Running Total problem in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-modify-some-DAX-measures-to-solve-a-Running-Total-problem/m-p/4331083#M171920</link>
    <description>&lt;P&gt;Access denied, please check.&lt;/P&gt;</description>
    <pubDate>Mon, 16 Dec 2024 14:43:01 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2024-12-16T14:43:01Z</dc:date>
    <item>
      <title>How to modify some DAX measures to solve a Running Total problem</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-modify-some-DAX-measures-to-solve-a-Running-Total-problem/m-p/4326143#M171749</link>
      <description>&lt;P&gt;Dear sirs, Please your help for the following DAX measure problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following Excel pivot table:&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;This Pivot Table is built from the following table called "&lt;STRONG&gt;Systems&lt;/STRONG&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;I add a Calendar Table into the model too&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Following with the above Pivot Table picture, I have tried to write the below DAX measure to calculate the Running Total values (Column E in the above Pivot Table) related with column "Total".&lt;/P&gt;&lt;P&gt;As you can see in the above Pivot Table the RTotal DAX measure applied in column E didn't work well&lt;STRONG&gt;&lt;EM&gt;&lt;U&gt;.&lt;/U&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&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;U&gt;&lt;STRONG&gt;So, what do I need???&lt;/STRONG&gt;&lt;/U&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;1 )&lt;/STRONG&gt; I would like ask you about DAX measures the get the columns "Yearly RTotal" (accumulates the year results of "Total" only) and "AllTime RTotal" (accumulates the entire pivot table results of "Total") in the below Pivot Table&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;STRONG&gt;2) &lt;/STRONG&gt;Moreover I need that these DAX measures work well when I try to filter by "Year" column too.&lt;/P&gt;&lt;P&gt;For example, if I filter for 2022 and 2023 years, I would like to get the following Pivot Table&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, 12 Dec 2024 14:11:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-modify-some-DAX-measures-to-solve-a-Running-Total-problem/m-p/4326143#M171749</guid>
      <dc:creator>hcova7</dc:creator>
      <dc:date>2024-12-12T14:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify some DAX measures to solve a Running Total problem</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-modify-some-DAX-measures-to-solve-a-Running-Total-problem/m-p/4326684#M171764</link>
      <description>&lt;P&gt;Please provide sample data that covers your issue or question &lt;STRONG&gt;completely&lt;/STRONG&gt;, in a &lt;STRONG&gt;usable&lt;/STRONG&gt; format (not as a screenshot).&lt;BR /&gt;Do not include sensitive information. Do not include anything that is unrelated to the issue or question. &lt;BR /&gt;Please show the expected outcome based on the sample data you provided. &lt;BR /&gt;&lt;BR /&gt;Need help uploading data? &lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216&lt;/A&gt; &lt;BR /&gt;Want faster answers? &lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2024 20:23:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-modify-some-DAX-measures-to-solve-a-Running-Total-problem/m-p/4326684#M171764</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-12-12T20:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify some DAX measures to solve a Running Total problem</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-modify-some-DAX-measures-to-solve-a-Running-Total-problem/m-p/4327580#M171794</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="900077" data-lia-user-login="hcova7" class="lia-mention lia-mention-user"&gt;hcova7&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Based on the description, try using the following DAX formula to create measures.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;YearlyRTotal = 
CALCULATE(
    [Total],
    FILTER(
        ALLEXCEPT(Systems, Systems[SysName], Calendar[Year]),
        Systems[Date/Time3] &amp;lt;= MAX(Systems[Date/Time3])
    )
)&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;AllTimeRTotal = 
CALCULATE(
    [Total],
    FILTER(
        ALL(Systems),
        Systems[Date/Time3] &amp;lt;= MAX(Systems[Date/Time3])
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;If the DAX formula does not work, please provide a sample data file. The screenshot is too blurry to read.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Wisdom Wu&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2024 08:29:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-modify-some-DAX-measures-to-solve-a-Running-Total-problem/m-p/4327580#M171794</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-12-13T08:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify some DAX measures to solve a Running Total problem</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-modify-some-DAX-measures-to-solve-a-Running-Total-problem/m-p/4327775#M171805</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;BR /&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="900077" data-lia-user-login="hcova7" class="lia-mention lia-mention-user"&gt;hcova7&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;1) you can like to try this Dax formula to create year running total.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Year_r_total = TOTALYTD([revenue],'Calendar'[DateKey])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) second Dax formula is All time running total you can try this Dax formula.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;All time r_total = CALCULATE([revenue],
                                    FILTER(ALL('Calendar'),
                                    'Calendar'[DateKey] &amp;lt;= MAX('Calendar'[DateKey])))&lt;/LI-CODE&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;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;SPAN&gt;, then please consider&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/EM&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2024 10:22:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-modify-some-DAX-measures-to-solve-a-Running-Total-problem/m-p/4327775#M171805</guid>
      <dc:creator>vivek31</dc:creator>
      <dc:date>2024-12-13T10:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify some DAX measures to solve a Running Total problem</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-modify-some-DAX-measures-to-solve-a-Running-Total-problem/m-p/4327797#M171809</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="900077" data-lia-user-login="hcova7" class="lia-mention lia-mention-user"&gt;hcova7&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;1) you can like to try this Dax formula to create year running total.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Year_r_total = TOTALYTD([revenue],'Calendar'[DateKey])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) second you can try this Dax formula to create All time running total.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;All time r_total = CALCULATE([revenue],
                                    FILTER(ALL('Calendar'),
                                    'Calendar'[DateKey] &amp;lt;= MAX('Calendar'[DateKey])))&lt;/LI-CODE&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;&lt;SPAN&gt;If this post&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;, then please consider&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2024 10:37:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-modify-some-DAX-measures-to-solve-a-Running-Total-problem/m-p/4327797#M171809</guid>
      <dc:creator>vivek31</dc:creator>
      <dc:date>2024-12-13T10:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify some DAX measures to solve a Running Total problem</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-modify-some-DAX-measures-to-solve-a-Running-Total-problem/m-p/4329855#M171878</link>
      <description>&lt;P&gt;Here you have the excel worksheet with the data and the DAX measures&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A title="Test Of Chart Slicer to MSFT.xlsx" href="https://docs.google.com/spreadsheets/d/1C2wFF6ls0gXb-NwbKfFiTp_7H93K9jln/edit?usp=drive_link&amp;amp;ouid=100866832098495107517&amp;amp;rtpof=true&amp;amp;sd=true" target="_self"&gt;https://docs.google.com/spreadsheets/d/1C2wFF6ls0gXb-NwbKfFiTp_7H93K9jln/edit?usp=drive_link&amp;amp;ouid=100866832098495107517&amp;amp;rtpof=true&amp;amp;sd=true&lt;/A&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2024 00:44:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-modify-some-DAX-measures-to-solve-a-Running-Total-problem/m-p/4329855#M171878</guid>
      <dc:creator>hcova7</dc:creator>
      <dc:date>2024-12-16T00:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify some DAX measures to solve a Running Total problem</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-modify-some-DAX-measures-to-solve-a-Running-Total-problem/m-p/4331083#M171920</link>
      <description>&lt;P&gt;Access denied, please check.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2024 14:43:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-modify-some-DAX-measures-to-solve-a-Running-Total-problem/m-p/4331083#M171920</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-12-16T14:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify some DAX measures to solve a Running Total problem</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-modify-some-DAX-measures-to-solve-a-Running-Total-problem/m-p/4331595#M171961</link>
      <description>&lt;P&gt;&lt;A href="https://docs.google.com/spreadsheets/d/1vJ5slHBAnB46JB7i_F7Vp47zfSG1DkG7/edit?usp=drive_link&amp;amp;ouid=100866832098495107517&amp;amp;rtpof=true&amp;amp;sd=true" target="_blank"&gt;https://docs.google.com/spreadsheets/d/1vJ5slHBAnB46JB7i_F7Vp47zfSG1DkG7/edit?usp=drive_link&amp;amp;ouid=100866832098495107517&amp;amp;rtpof=true&amp;amp;sd=true&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2024 21:30:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-modify-some-DAX-measures-to-solve-a-Running-Total-problem/m-p/4331595#M171961</guid>
      <dc:creator>hcova7</dc:creator>
      <dc:date>2024-12-16T21:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify some DAX measures to solve a Running Total problem</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-modify-some-DAX-measures-to-solve-a-Running-Total-problem/m-p/4331636#M171963</link>
      <description>&lt;P&gt;You can use a calendar table, and then create a quick measure for the running total&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;</description>
      <pubDate>Mon, 16 Dec 2024 22:16:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-modify-some-DAX-measures-to-solve-a-Running-Total-problem/m-p/4331636#M171963</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-12-16T22:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify some DAX measures to solve a Running Total problem</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-modify-some-DAX-measures-to-solve-a-Running-Total-problem/m-p/4331683#M171967</link>
      <description>&lt;P&gt;Hi Ibendlin.&lt;/P&gt;&lt;P&gt;The problem is that in my data table there months without any profit. So the measure I need must ensure that the running total doesn´t skip any month. I mean, for months with no profit, the running total must remain unchanged, "carrying forward" the previous total or the last calculated running total.&lt;BR /&gt;My DAX measure calculates a wrong running total after a months without no profit data.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2024 23:03:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-modify-some-DAX-measures-to-solve-a-Running-Total-problem/m-p/4331683#M171967</guid>
      <dc:creator>hcova7</dc:creator>
      <dc:date>2024-12-16T23:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify some DAX measures to solve a Running Total problem</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-modify-some-DAX-measures-to-solve-a-Running-Total-problem/m-p/4331700#M171968</link>
      <description>&lt;P&gt;Have you checked the Quick Measure?&amp;nbsp; It seems to work as you need it to, showing the right number for each time interval.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2024 23:15:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-modify-some-DAX-measures-to-solve-a-Running-Total-problem/m-p/4331700#M171968</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-12-16T23:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify some DAX measures to solve a Running Total problem</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-modify-some-DAX-measures-to-solve-a-Running-Total-problem/m-p/4343003#M172444</link>
      <description>&lt;P&gt;Hi there.&lt;/P&gt;&lt;P&gt;I found a solution to my problem. Near to perfect.&lt;/P&gt;&lt;P&gt;The solution works perfect and it generates perfect values too. However I believe that I am doing a mistake in the way I am coding the DAX measure.&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;For my Yearly RTotal (a YTD version) I wrote the following code in the &lt;U&gt;&lt;STRONG&gt;System&lt;/STRONG&gt; table&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;Yearly RTotal =&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;=CALCULATE( [Total], DATESYTD( 'Calendar'[Date] ) )&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;where Total is:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;Total =SUM(System[ProfitUSD])&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For my All-Time RTotal&amp;nbsp; I wrote the following code in the &lt;U&gt;&lt;STRONG&gt;Calendar&lt;/STRONG&gt; table&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;All-Time RTotal =&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;VAR &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CurrentDate = MAX('Calendar'[Date])&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;VAR &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; StartDate = CALCULATE(MIN('Calendar'[Date]), ALL('System'))&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;VAR &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EndDate = CALCULATE(MAX('Calendar'[Date]), ALLSELECTED('Calendar')) &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;VAR &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RunningTotal =&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CALCULATE(&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SUM('System'[ProfitUSD]),&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FILTER(&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ALL('Calendar'),&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Calendar'[Date] &amp;lt;= CurrentDate&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;RETURN&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;IF(&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CurrentDate &amp;lt; StartDate || CurrentDate &amp;gt; EndDate, &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BLANK(), -- Return BLANK() for dates outside the timeline bounds&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COALESCE(RunningTotal, 0)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem, and here where I beleive that problem arises, is that I need to insert 2 timelines to work properly.&lt;/P&gt;&lt;P&gt;Let me clarify this with the below pivot table.&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;In the above picture &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;"Date" timeline&lt;/STRONG&gt; &lt;/FONT&gt;comes from &lt;STRONG&gt;"Calendar"&lt;/STRONG&gt; table and it takes control over the Pivot table "Year" column, filtering dates from 2011-2014. &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;"Date/Time_3"&amp;nbsp;timeline&lt;/STRONG&gt;&lt;/FONT&gt; comes from &lt;STRONG&gt;"System"&lt;/STRONG&gt; table and take control of the Yearly and All-time RTotal.&amp;nbsp; In other words, if I delete the "Date" timeline I will get wrong results, as shown below. (wrong calculations in column "All-Time RTotal")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Conversely, if I delete "Data/Time_3" timeline,&amp;nbsp; I get the following pivot table:&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;As you can realize, it works wrong too.&lt;/P&gt;&lt;P&gt;Finally, can anybody let me know how to modify the above shown measure so I can work with one Timeline only instead of 2?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the Excel file link&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.google.com/spreadsheets/d/14FTX6A5FxZ4i58z_0ilpUeidWBP4qleC/edit?usp=sharing&amp;amp;ouid=100866832098495107517&amp;amp;rtpof=true&amp;amp;sd=true" target="_blank"&gt;https://docs.google.com/spreadsheets/d/14FTX6A5FxZ4i58z_0ilpUeidWBP4qleC/edit?usp=sharing&amp;amp;ouid=100866832098495107517&amp;amp;rtpof=true&amp;amp;sd=true&lt;/A&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;&amp;nbsp;&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;</description>
      <pubDate>Wed, 25 Dec 2024 18:48:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-modify-some-DAX-measures-to-solve-a-Running-Total-problem/m-p/4343003#M172444</guid>
      <dc:creator>hcova7</dc:creator>
      <dc:date>2024-12-25T18:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify some DAX measures to solve a Running Total problem</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-modify-some-DAX-measures-to-solve-a-Running-Total-problem/m-p/4343902#M172488</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="900077" data-lia-user-login="hcova7" class="lia-mention lia-mention-user"&gt;hcova7&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please try with this measure:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;RTotal_6 :=
VAR _CurrentDate =
    MAX( 'Calendar'[Date] )
VAR _StartDate =
    CALCULATE(
        MIN( 'Calendar'[Date] );
        ALLSELECTED( 'Calendar' )
    )
VAR _EndDate =
    CALCULATE(
        MAX( 'Calendar'[Date] );
        ALLSELECTED( 'Calendar' )
    )
VAR _Range =
    DATESBETWEEN(
        'Calendar'[Date];
        _StartDate;
        _CurrentDate
    )
VAR _RunningTotal =
    CALCULATE(
        SUMX(
            System;
            'System'[ProfitUSD]
        );
        _Range
    )
RETURN
    _RunningTotal&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this help, if so please mark as a solution. Kudos are welcome&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Dec 2024 20:02:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-modify-some-DAX-measures-to-solve-a-Running-Total-problem/m-p/4343902#M172488</guid>
      <dc:creator>pcoley</dc:creator>
      <dc:date>2024-12-26T20:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify some DAX measures to solve a Running Total problem</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-modify-some-DAX-measures-to-solve-a-Running-Total-problem/m-p/4345587#M172567</link>
      <description>&lt;P&gt;Thank you very much for your perfect solution. You don't know how much time I have been able to reduce with this measure. Warm regards&lt;/P&gt;</description>
      <pubDate>Sun, 29 Dec 2024 18:55:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-modify-some-DAX-measures-to-solve-a-Running-Total-problem/m-p/4345587#M172567</guid>
      <dc:creator>hcova7</dc:creator>
      <dc:date>2024-12-29T18:55:05Z</dc:date>
    </item>
  </channel>
</rss>

