<?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: DAX Accumulated for each month in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Accumulated-for-each-month/m-p/4654902#M178199</link>
    <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="336872" data-lia-user-login="ngomes" class="lia-mention lia-mention-user"&gt;ngomes&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm glad you found a solution and resloved&amp;nbsp; the query. Thank you very much for sharing here.&lt;/P&gt;
&lt;P&gt;Kindly mark your reply as the accepted solution so that others in the community can find it quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thankyou for connecting with Microsoft Community Forum.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 16 Apr 2025 04:36:11 GMT</pubDate>
    <dc:creator>v-sgandrathi</dc:creator>
    <dc:date>2025-04-16T04:36:11Z</dc:date>
    <item>
      <title>DAX Accumulated for each month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Accumulated-for-each-month/m-p/4647351#M177884</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hello good afternoon,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm having a problem creating a DAX formula to calculate the accumulated value for each month up to the selected month&lt;/P&gt;&lt;P&gt;I have the formula with the following dax:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Approved sales n-1 =&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;CALCULATE(&lt;BR /&gt;[Sales],&lt;BR /&gt;YEAR(Sales[Date]) = SELECTEDVALUE('Calendar Approvals'[Year]), -- Current year for sales&lt;BR /&gt;'Approvals Calendar'[Year] = SELECTEDVALUE('Approvals Calendar'[Year])-1, -- Previous year for approvals&lt;BR /&gt;REMOVEFILTERS('Calendar Approvals'[Date].[Year]) -- Removes filters from year before&lt;BR /&gt;)&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;I'm trying to create a dax formula as follows:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Approved Sales n-1 Accumulated Month to Month =&lt;/P&gt;&lt;P&gt;VAR LastDateWithValues ​​=&lt;BR /&gt;MAXX(&lt;BR /&gt;FILTER(&lt;BR /&gt;ALL('Sales'),&lt;BR /&gt;CALCULATE(&lt;BR /&gt;NOT ISBLANK([Approved Sales n-1])&lt;BR /&gt;)&lt;BR /&gt;),&lt;BR /&gt;'Sales'[Date]&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;VAR Value =&lt;BR /&gt;CALCULATE(&lt;BR /&gt;[Sales],&lt;BR /&gt;YEAR(Sales[Date]) = SELECTEDVALUE('Calendar Approvals'[Year]), -- Current year for sales&lt;BR /&gt;'Approvals Calendar'[Year] = SELECTEDVALUE('Approvals Calendar'[Year])-1, -- Previous year for approvals&lt;BR /&gt;REMOVEFILTERS('Calendar Approvals'[Date].[Year]) -- Removes filters from year before&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;RETURN&lt;/P&gt;&lt;P&gt;CALCULATE(&lt;BR /&gt;Value,&lt;BR /&gt;FILTER(&lt;BR /&gt;all(Sales[Date]), Sales[Date] &amp;lt;= LastDateWithValues&lt;BR /&gt;))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This formula only returns the value month by month, it does not accumulate.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone help me?&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 10 Apr 2025 17:00:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Accumulated-for-each-month/m-p/4647351#M177884</guid>
      <dc:creator>ngomes</dc:creator>
      <dc:date>2025-04-10T17:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Accumulated for each month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Accumulated-for-each-month/m-p/4647625#M177891</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, 10 Apr 2025 20:56:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Accumulated-for-each-month/m-p/4647625#M177891</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2025-04-10T20:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Accumulated for each month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Accumulated-for-each-month/m-p/4648317#M177926</link>
      <description>&lt;P&gt;Good morning,&lt;/P&gt;&lt;P&gt;I am attaching the report with sample data&lt;BR /&gt;&lt;A title="Report Exemple" href="https://resibraso365-my.sharepoint.com/:u:/g/personal/nuno_gomes_resibras_pt/EdIennlIRO5GgR172IH693sBqvfc2TEvqpx5XEHcY-4iQA?e=laTWXU" target="_blank" rel="noopener"&gt;Report&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am grateful for any help you can give me&lt;/P&gt;</description>
      <pubDate>Fri, 11 Apr 2025 09:21:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Accumulated-for-each-month/m-p/4648317#M177926</guid>
      <dc:creator>ngomes</dc:creator>
      <dc:date>2025-04-11T09:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Accumulated for each month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Accumulated-for-each-month/m-p/4648518#M177935</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;can you help?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Apr 2025 11:03:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Accumulated-for-each-month/m-p/4648518#M177935</guid>
      <dc:creator>ngomes</dc:creator>
      <dc:date>2025-04-11T11:03:14Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Accumulated for each month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Accumulated-for-each-month/m-p/4648582#M177939</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="336872" data-lia-user-login="ngomes" class="lia-mention lia-mention-user"&gt;ngomes&lt;/a&gt;&amp;nbsp;, Try using&lt;/P&gt;
&lt;P&gt;dax&lt;BR /&gt;Approved Sales n-1 Accumulated Month to Month =&lt;BR /&gt;VAR CurrentYear = SELECTEDVALUE('Calendar Approvals'[Year])&lt;BR /&gt;VAR PreviousYear = CurrentYear - 1&lt;BR /&gt;VAR LastDateWithValues =&lt;BR /&gt;MAXX(&lt;BR /&gt;FILTER(&lt;BR /&gt;ALL('Sales'),&lt;BR /&gt;CALCULATE(&lt;BR /&gt;NOT ISBLANK([Approved Sales n-1])&lt;BR /&gt;)&lt;BR /&gt;),&lt;BR /&gt;'Sales'[Date]&lt;BR /&gt;)&lt;BR /&gt;VAR Value =&lt;BR /&gt;CALCULATE(&lt;BR /&gt;[Sales],&lt;BR /&gt;YEAR(Sales[Date]) = CurrentYear,&lt;BR /&gt;'Approvals Calendar'[Year] = PreviousYear,&lt;BR /&gt;REMOVEFILTERS('Calendar Approvals'[Date].[Year])&lt;BR /&gt;)&lt;BR /&gt;RETURN&lt;BR /&gt;CALCULATE(&lt;BR /&gt;Value,&lt;BR /&gt;FILTER(&lt;BR /&gt;ALL(Sales[Date]),&lt;BR /&gt;Sales[Date] &amp;lt;= LastDateWithValues&lt;BR /&gt;),&lt;BR /&gt;DATESYTD('Sales'[Date])&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Fri, 11 Apr 2025 11:34:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Accumulated-for-each-month/m-p/4648582#M177939</guid>
      <dc:creator>bhanu_gautam</dc:creator>
      <dc:date>2025-04-11T11:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Accumulated for each month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Accumulated-for-each-month/m-p/4648772#M177953</link>
      <description>&lt;P&gt;thanks for the reply but i still don't have accumulated values ​​as you can see&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Apr 2025 13:08:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Accumulated-for-each-month/m-p/4648772#M177953</guid>
      <dc:creator>ngomes</dc:creator>
      <dc:date>2025-04-11T13:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Accumulated for each month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Accumulated-for-each-month/m-p/4649330#M177980</link>
      <description>&lt;P&gt;you need to radically simplify your data model&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>Fri, 11 Apr 2025 22:16:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Accumulated-for-each-month/m-p/4649330#M177980</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2025-04-11T22:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Accumulated for each month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Accumulated-for-each-month/m-p/4650585#M178019</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="336872" data-lia-user-login="ngomes" class="lia-mention lia-mention-user"&gt;ngomes&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thankyou&amp;nbsp;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;for your reply on the issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm glad to hear that your query was resolved! If the response provided by the community member addressed your concern, kindly confirm.&lt;/P&gt;
&lt;P&gt;Marking it as &lt;STRONG&gt;Accept Answer&lt;/STRONG&gt;&amp;nbsp;and give us &lt;STRONG&gt;Kudos&lt;/STRONG&gt;&amp;nbsp;if you found it helpful allows us to ensure that the solutions shared are valuable for the entire community.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Apr 2025 06:08:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Accumulated-for-each-month/m-p/4650585#M178019</guid>
      <dc:creator>v-sgandrathi</dc:creator>
      <dc:date>2025-04-14T06:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Accumulated for each month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Accumulated-for-each-month/m-p/4651096#M178035</link>
      <description>&lt;P&gt;Can you give more information?&lt;/P&gt;&lt;P&gt;I saw that you removed the calendar table and started using the approval date and the sale date in the DAX, but your DAX only validates whether the amount is collected or not with 1 and 0&lt;/P&gt;&lt;P&gt;How can I then calculate the accumulated value with this formula?&lt;/P&gt;</description>
      <pubDate>Mon, 14 Apr 2025 10:13:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Accumulated-for-each-month/m-p/4651096#M178035</guid>
      <dc:creator>ngomes</dc:creator>
      <dc:date>2025-04-14T10:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Accumulated for each month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Accumulated-for-each-month/m-p/4651324#M178040</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="336872" data-lia-user-login="ngomes" class="lia-mention lia-mention-user"&gt;ngomes&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You're right the DAX formula you referenced is only checking if data exists (returns 1 or 0), not actually summing sales.&lt;/P&gt;
&lt;P&gt;To calculate accumulated approved sales month by month, you need to:&lt;BR /&gt;Shift the logic from "check if there's data" to "sum the actual sales values."&lt;BR /&gt;Make sure you're using a consistent and valid date column (ideally from a Date table).&lt;BR /&gt;Apply a filter that includes all dates up to the current row’s date, so Power BI can calculate the running total properly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;If my response was helpful, consider clicking "Accept as Solution" and give us "Kudos" so that other community members can find it easily. Let me know if you need any more assistance!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Apr 2025 11:32:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Accumulated-for-each-month/m-p/4651324#M178040</guid>
      <dc:creator>v-sgandrathi</dc:creator>
      <dc:date>2025-04-14T11:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Accumulated for each month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Accumulated-for-each-month/m-p/4651776#M178058</link>
      <description>&lt;P&gt;I validated all the variables and I can't find the error&lt;/P&gt;&lt;P&gt;- Selected year&lt;BR /&gt;- Year prior to the selected one&lt;BR /&gt;- Sum of this year's sales of projects approved last year&lt;BR /&gt;- the last date I had invoices&lt;/P&gt;&lt;P&gt;All these variables return the correct values, but I still can't calculate the accumulated value.&lt;/P&gt;&lt;P&gt;Measure used in power bi:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt;&lt;SPAN&gt; CurrentYear = &lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;('Calendar'[Date]&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;[Ano]) &lt;/SPAN&gt;&lt;SPAN&gt;--Selected year&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt;&lt;SPAN&gt; PrevYear = &lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;('Calendar'[Date]&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;[Ano]) - &lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt; &lt;SPAN&gt;--Year prior to the selected one&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt;&lt;SPAN&gt; Val = &lt;/SPAN&gt;&lt;SPAN&gt;--Sum of this year's sales of projects approved last year&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&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; &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&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; [Sales],&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&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; &lt;/SPAN&gt;&lt;SPAN&gt;YEAR&lt;/SPAN&gt;&lt;SPAN&gt;(Sales[Data]) = CurrentYear,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&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; 'Calendar'[Year] = PrevYear,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&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; &lt;/SPAN&gt;&lt;SPAN&gt;REMOVEFILTERS&lt;/SPAN&gt;&lt;SPAN&gt;('Calendar')&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&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; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt;&lt;SPAN&gt; UltimaDataComValores = &lt;/SPAN&gt;&lt;SPAN&gt;--the last date I had invoices&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&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; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;MAXX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;ALLSELECTED&lt;/SPAN&gt;&lt;SPAN&gt;('sales'),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;NOT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ISBLANK&lt;/SPAN&gt;&lt;SPAN&gt;(val))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'sales'[Data]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&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; &amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&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; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; Val,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;ALLSELECTED&lt;/SPAN&gt;&lt;SPAN&gt;('sales'),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'sales'[Data] &amp;lt;= UltimaDataComValores &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 14 Apr 2025 13:43:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Accumulated-for-each-month/m-p/4651776#M178058</guid>
      <dc:creator>ngomes</dc:creator>
      <dc:date>2025-04-14T13:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Accumulated for each month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Accumulated-for-each-month/m-p/4652909#M178120</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="336872" data-lia-user-login="ngomes" class="lia-mention lia-mention-user"&gt;ngomes&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To calculate an accumulated (running total) of current year sales for projects approved in the previous year, avoid storing the filtered sales in a variable like Val = CALCULATE(...). Variables return a static value and do not respond to row context, so they won’t accumulate correctly over time. Instead, apply the filtering and accumulation logic directly within the CALCULATE function using dynamic date context.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DAX Measure:&lt;/P&gt;
&lt;P&gt;Approved Sales n-1 =&lt;/P&gt;
&lt;P&gt;CALCULATE(&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sales],&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; YEAR('Sales'[Data]) = SELECTEDVALUE('Calendar'[Date].[Ano]),&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Approvals Calendar'[Year] = SELECTEDVALUE('Calendar'[Date].[Ano]) - 1,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; REMOVEFILTERS('Calendar')&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then your accumulated measure becomes very simple:&lt;/P&gt;
&lt;P&gt;Approved Sales n-1 Accumulated =&lt;/P&gt;
&lt;P&gt;CALCULATE(&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Approved Sales n-1],&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FILTER(&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ALL('Calendar'),&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Calendar'[Date] &amp;lt;= MAX('Calendar'[Date])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;If this solution worked for you, kindly mark it as Accept as Solution and feel free to give a Kudos, it would be much appreciated!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Apr 2025 05:44:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Accumulated-for-each-month/m-p/4652909#M178120</guid>
      <dc:creator>v-sgandrathi</dc:creator>
      <dc:date>2025-04-15T05:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Accumulated for each month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Accumulated-for-each-month/m-p/4654247#M178171</link>
      <description>&lt;P&gt;I finally solved my problem, what I did was:&lt;BR /&gt;1 - I merged the two tables using the article code (ApprovedSales)&lt;BR /&gt;2 - I created a calendar table that I linked to the approval date field of the intercalated table&lt;BR /&gt;3 - I created a column where I validated which records had values ​​to add, projects approved in the year prior to the selected one with sales in the selected year&lt;BR /&gt;4- I created a measure to have the accumulated sum&lt;/P&gt;&lt;P&gt;Thanks everyone for your help, see you next time &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;VAR Last =&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;P class="lia-indent-padding-left-90px"&gt;CALCULATE(&lt;BR /&gt;max('ApprovedSales'[Sales.Date]),&lt;BR /&gt;ALL(Calendar), Approved Sales[Valid]=1)&lt;/P&gt;&lt;P&gt;RETURN&lt;/P&gt;&lt;P class="lia-indent-padding-left-90px"&gt;CALCULATE(&lt;BR /&gt;sum(ApprovedSales[Sales. Value]),&lt;BR /&gt;REMOVEFILTERS(ApprovedSales),&lt;BR /&gt;ApprovedSales[Sales.Date].[Date]&amp;lt;= Last,&lt;BR /&gt;ApprovedSales[Valid]=1&lt;BR /&gt;)&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 15 Apr 2025 15:22:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Accumulated-for-each-month/m-p/4654247#M178171</guid>
      <dc:creator>ngomes</dc:creator>
      <dc:date>2025-04-15T15:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Accumulated for each month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Accumulated-for-each-month/m-p/4654902#M178199</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="336872" data-lia-user-login="ngomes" class="lia-mention lia-mention-user"&gt;ngomes&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm glad you found a solution and resloved&amp;nbsp; the query. Thank you very much for sharing here.&lt;/P&gt;
&lt;P&gt;Kindly mark your reply as the accepted solution so that others in the community can find it quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thankyou for connecting with Microsoft Community Forum.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2025 04:36:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Accumulated-for-each-month/m-p/4654902#M178199</guid>
      <dc:creator>v-sgandrathi</dc:creator>
      <dc:date>2025-04-16T04:36:11Z</dc:date>
    </item>
  </channel>
</rss>

