<?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 Forecast Cumulative Line Graph, Flat Lines in Previous Years in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Forecast-Cumulative-Line-Graph-Flat-Lines-in-Previous-Years/m-p/4676426#M179095</link>
    <description>&lt;P&gt;I cannot get my graph for the past 3 years to work as a cumulative graph by year Month over Month. Here is my DAX code for 2024 (the code is the dsame for 2023 and 2025:&lt;BR /&gt;&lt;SPAN&gt;CumulativeSpending2024 =&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VAR CurrentMonth = MAX('Central Division Tuition (4)'[MonthYear])&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;CALCULATE(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;SUM('Central Division Tuition (4)'[Amount DR]),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;FILTER(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&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;ALL('Central Division Tuition (4)'),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&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;YEAR('Central Division Tuition (4)'[MonthYear]) = 2024 &amp;amp;&amp;amp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&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;'Central Division Tuition (4)'[MonthYear] &amp;lt;= CurrentMonth&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;I notice when I drill down that the flat lines do change when filtereing by only year. So somehow it is only doing a cumulatative amount for the most current period is my guess. See images&lt;BR /&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 01 May 2025 20:02:50 GMT</pubDate>
    <dc:creator>MercedesL</dc:creator>
    <dc:date>2025-05-01T20:02:50Z</dc:date>
    <item>
      <title>Forecast Cumulative Line Graph, Flat Lines in Previous Years</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Forecast-Cumulative-Line-Graph-Flat-Lines-in-Previous-Years/m-p/4676426#M179095</link>
      <description>&lt;P&gt;I cannot get my graph for the past 3 years to work as a cumulative graph by year Month over Month. Here is my DAX code for 2024 (the code is the dsame for 2023 and 2025:&lt;BR /&gt;&lt;SPAN&gt;CumulativeSpending2024 =&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VAR CurrentMonth = MAX('Central Division Tuition (4)'[MonthYear])&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;CALCULATE(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;SUM('Central Division Tuition (4)'[Amount DR]),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;FILTER(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&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;ALL('Central Division Tuition (4)'),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&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;YEAR('Central Division Tuition (4)'[MonthYear]) = 2024 &amp;amp;&amp;amp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&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;'Central Division Tuition (4)'[MonthYear] &amp;lt;= CurrentMonth&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;I notice when I drill down that the flat lines do change when filtereing by only year. So somehow it is only doing a cumulatative amount for the most current period is my guess. See images&lt;BR /&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 May 2025 20:02:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Forecast-Cumulative-Line-Graph-Flat-Lines-in-Previous-Years/m-p/4676426#M179095</guid>
      <dc:creator>MercedesL</dc:creator>
      <dc:date>2025-05-01T20:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: Forecast Cumulative Line Graph, Flat Lines in Previous Years</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Forecast-Cumulative-Line-Graph-Flat-Lines-in-Previous-Years/m-p/4676600#M179097</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;/P&gt;
&lt;P&gt;Please try using visual calculation feature for getting running sum (cumulative sum).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/transform-model/desktop-visual-calculations-overview?wt.mc_id=DP-MVP-5004989" target="_blank"&gt;Using visual calculations in Power BI Desktop - Power BI | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And, please&amp;nbsp; try having dimension tables like the below image.&lt;BR /&gt;Please check the below image and the attached pbix file.&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;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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 May 2025 03:31:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Forecast-Cumulative-Line-Graph-Flat-Lines-in-Previous-Years/m-p/4676600#M179097</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2025-05-02T03:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: Forecast Cumulative Line Graph, Flat Lines in Previous Years</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Forecast-Cumulative-Line-Graph-Flat-Lines-in-Previous-Years/m-p/4682340#M179335</link>
      <description>&lt;P&gt;I was able to get one chart like how you have it but when I try to do the accumulation, it just doesnt work. I ended up doing it in excel since power BI would not do it. Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Tue, 06 May 2025 20:30:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Forecast-Cumulative-Line-Graph-Flat-Lines-in-Previous-Years/m-p/4682340#M179335</guid>
      <dc:creator>MercedesL</dc:creator>
      <dc:date>2025-05-06T20:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: Forecast Cumulative Line Graph, Flat Lines in Previous Years</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Forecast-Cumulative-Line-Graph-Flat-Lines-in-Previous-Years/m-p/4684277#M179402</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1269197" data-lia-user-login="MercedesL" class="lia-mention lia-mention-user"&gt;MercedesL&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;If the provided answer was helpful,&amp;nbsp;please mark it as "Accept as solution" and click "Yes" if you found it helpful, it will be helpful for other members of the community who have similar problems as yours to solve it faster.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Chaithra.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 May 2025 08:47:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Forecast-Cumulative-Line-Graph-Flat-Lines-in-Previous-Years/m-p/4684277#M179402</guid>
      <dc:creator>v-echaithra</dc:creator>
      <dc:date>2025-05-08T08:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: Forecast Cumulative Line Graph, Flat Lines in Previous Years</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Forecast-Cumulative-Line-Graph-Flat-Lines-in-Previous-Years/m-p/4688515#M179559</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1269197" data-lia-user-login="MercedesL" class="lia-mention lia-mention-user"&gt;MercedesL&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;We would like to follow up to see if the solution provided by the super user resolved your issue. Please let us know if you need any further assistance.&lt;BR /&gt;If our super user response resolved your issue, please mark it as "Accept as solution" and click "Yes" if you found it helpful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Chaithra E.&lt;/P&gt;</description>
      <pubDate>Mon, 12 May 2025 06:48:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Forecast-Cumulative-Line-Graph-Flat-Lines-in-Previous-Years/m-p/4688515#M179559</guid>
      <dc:creator>v-echaithra</dc:creator>
      <dc:date>2025-05-12T06:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: Forecast Cumulative Line Graph, Flat Lines in Previous Years</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Forecast-Cumulative-Line-Graph-Flat-Lines-in-Previous-Years/m-p/4702709#M180116</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1269197" data-lia-user-login="MercedesL" class="lia-mention lia-mention-user"&gt;MercedesL&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;We wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?&lt;BR /&gt;If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Chaithra.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 May 2025 05:37:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Forecast-Cumulative-Line-Graph-Flat-Lines-in-Previous-Years/m-p/4702709#M180116</guid>
      <dc:creator>v-echaithra</dc:creator>
      <dc:date>2025-05-22T05:37:19Z</dc:date>
    </item>
  </channel>
</rss>

