<?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: Cumulative sum  less than selected month in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-sum-less-than-selected-month/m-p/4785676#M183232</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hello &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="733191" data-lia-user-login="Jyaul1122" class="lia-mention lia-mention-user"&gt;Jyaul1122&lt;/a&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Could you please confirm if your query has been resolved by the provided solutions? This would be helpful for other members who may encounter similar issues.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you for being part of the Microsoft Fabric Community.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 03 Aug 2025 16:41:21 GMT</pubDate>
    <dc:creator>v-ssriganesh</dc:creator>
    <dc:date>2025-08-03T16:41:21Z</dc:date>
    <item>
      <title>Cumulative sum  less than selected month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-sum-less-than-selected-month/m-p/4773831#M182819</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a Table and related to Calendar table (many to one). I have a slicer from Calendar table(Month col) and Bar chart(X axis - Month col from Calendar table and Cumulative Sales from Table in a page.&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt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gt;&lt;TD&gt;P3&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4/20/2025&lt;/TD&gt;&lt;TD&gt;P3&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;11/20/2025&lt;/TD&gt;&lt;TD&gt;P4&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;12/20/2025&lt;/TD&gt;&lt;TD&gt;P5&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;on report:&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;Requirement:&lt;/P&gt;&lt;P&gt;For example: If I select March 25 then result will be from Jan 25 to March 25 :&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I select Jun 25 , the result will be&amp;nbsp;like from Jan 25 to Jun 25 :&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;means, Cumulative sales will be always&amp;nbsp; &amp;lt;=selected month from slicer.&lt;/P&gt;&lt;P&gt;So that I tried, like:&amp;nbsp;&lt;SPAN&gt;Cumulative Sales = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;('Table'[Sales]),&lt;/SPAN&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;('Calendar'),'Calendar'[Date]&amp;lt;=&lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;('Table'[Sales_Date]))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;But Month is being filter as per slicer month selected. How can I achieve using &lt;STRONG&gt;dax.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Note: 1. Please do not create another table to use in axis because my data model have multiple table connection with multiple tables.&lt;/P&gt;&lt;P&gt;2. Do not disable interactions.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ot create another table&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jul 2025 14:28:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-sum-less-than-selected-month/m-p/4773831#M182819</guid>
      <dc:creator>Jyaul1122</dc:creator>
      <dc:date>2025-07-23T14:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative sum  less than selected month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-sum-less-than-selected-month/m-p/4773880#M182826</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="733191" data-lia-user-login="Jyaul1122" class="lia-mention lia-mention-user"&gt;Jyaul1122&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can solve this by creating two separate DAX measures. One measure will handle the cumulative sales calculation, and the second will be used as a special filter on your bar chart visual. This method correctly displays all months up to your selection without needing extra tables or disabling the slicer's interactions.&lt;/P&gt;
&lt;P&gt;First, create the measure to calculate the running total of sales. This formula calculates the sum of sales for all dates up to the maximum date in the current context of the visual (i.e., the end of each month shown on the axis).&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Cumulative Sales = 
CALCULATE(
    SUM('Table'[Sales]),
    FILTER(
        ALL('Calendar'),
        'Calendar'[Date] &amp;lt;= MAX('Calendar'[Date])
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;Next, create the measure that will control which months appear on the chart. This is the key to the solution. It identifies the last date of the month you select in the slicer and then returns a value of 1 only for months on the axis that are earlier than or equal to your selection.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Show Month Filter = 
VAR SelectedMonthEndDate = CALCULATE(MAX('Calendar'[Date]), ALLSELECTED('Calendar'))
VAR CurrentMonthEndDate = MAX('Calendar'[Date])
RETURN
IF(CurrentMonthEndDate &amp;lt;= SelectedMonthEndDate, 1, BLANK())&lt;/LI-CODE&gt;
&lt;P&gt;To implement this, add both measures to your model. Build your bar chart by placing the Calendar[Month] column on the X-axis and your new Cumulative Sales measure on the Y-axis. The final step is to select the chart, drag the Show Month Filter measure to the "Filters on this visual" pane, and set its filter condition to "is 1". This tells the chart to only show the bars for which the Show Month Filter measure returns a 1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This works because your initial problem was that the slicer directly filtered the chart's axis, leaving only the single selected month visible. The Show Month Filter measure bypasses this by creating a new rule for visibility. It forces the chart to render all months up to your selection, allowing the Cumulative Sales measure to correctly calculate the running total across those months.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jul 2025 14:57:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-sum-less-than-selected-month/m-p/4773880#M182826</guid>
      <dc:creator>DataNinja777</dc:creator>
      <dc:date>2025-07-23T14:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative sum  less than selected month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-sum-less-than-selected-month/m-p/4773897#M182827</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="733191" data-lia-user-login="Jyaul1122" class="lia-mention lia-mention-user"&gt;Jyaul1122&lt;/a&gt;&amp;nbsp;Sounds like you need this:&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/Inverse-Aggregator/m-p/342266" target="_blank"&gt;Inverse Aggregator - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jul 2025 15:03:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-sum-less-than-selected-month/m-p/4773897#M182827</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2025-07-23T15:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative sum  less than selected month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-sum-less-than-selected-month/m-p/4774672#M182858</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="608865" data-lia-user-login="DataNinja777" class="lia-mention lia-mention-user"&gt;DataNinja777&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi, Thanks for your reply, I tired the same way but Month axis is filtered based on slicer selection.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;,&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;If is it done from your end, could you please share PBIX ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jul 2025 07:15:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-sum-less-than-selected-month/m-p/4774672#M182858</guid>
      <dc:creator>Jyaul1122</dc:creator>
      <dc:date>2025-07-24T07:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative sum  less than selected month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-sum-less-than-selected-month/m-p/4776232#M182928</link>
      <description>&lt;P&gt;Hello &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="733191" data-lia-user-login="Jyaul1122" class="lia-mention lia-mention-user"&gt;Jyaul1122&lt;/a&gt;, &lt;BR /&gt;Thank you for reaching out to the Microsoft Fabric Community Forum.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;I've reproduced your scenario and validated your requirement to display cumulative sales from January to the selected month while keeping the full month axis visible. I initially attempted to achieve this using your existing Calendar and Sales tables, adhering to your constraint of not creating a new table. However, despite testing various DAX measures (e.g: using ALLSELECTED and proper relationships), the slicer consistently filtered out unselected months, showing only the selected month's data or incorrect totals due to Power BI's pre-filtering behavior.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;When a slicer filters the same column used in a visual’s axis (e.g: Calendar[Month]), Power BI removes unselected rows from the data context before any measure or visual filter is applied. This occurs even with ALL() or ALLSELECTED() in DAX, as the slicer’s effect precedes measure evaluation. Attempts to use a Show Month Filter = 1 measure as a visual filter also didn’t preserve the full axis.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;To meet your requirement, I used a disconnected Month Selector table. This approach avoids the slicer’s default filtering behavior and ensures the full month axis remains visible and For your reference, I've attached a sample &lt;STRONG&gt;.pbix&lt;/STRONG&gt; file.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;I recognize your preference to avoid new tables due to your complex data model. However, the intrinsic behavior of Power BI slicers with the existing setup made it impossible to preserve the full month axis without this workaround. The disconnected table ensures the slicer selection only influences the measure logic, leaving the axis intact.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Thanks for your understanding.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Ganesh Singamshetty.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jul 2025 09:54:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-sum-less-than-selected-month/m-p/4776232#M182928</guid>
      <dc:creator>v-ssriganesh</dc:creator>
      <dc:date>2025-07-25T09:54:50Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative sum  less than selected month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-sum-less-than-selected-month/m-p/4778877#M183034</link>
      <description>&lt;P&gt;Hello &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="733191" data-lia-user-login="Jyaul1122" class="lia-mention lia-mention-user"&gt;Jyaul1122&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope everything’s going great on your end. Just checking in has the issue been resolved or are you still running into problems? Sharing an update can really help others facing the same thing.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jul 2025 15:29:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-sum-less-than-selected-month/m-p/4778877#M183034</guid>
      <dc:creator>v-ssriganesh</dc:creator>
      <dc:date>2025-07-28T15:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative sum  less than selected month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-sum-less-than-selected-month/m-p/4782934#M183139</link>
      <description>&lt;P&gt;Hello &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="733191" data-lia-user-login="Jyaul1122" class="lia-mention lia-mention-user"&gt;Jyaul1122&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;We hope you're doing well. Could you please confirm whether your issue has been resolved or if you're still facing challenges? Your update will be valuable to the community and may assist others with similar concerns.&lt;/SPAN&gt;&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>Thu, 31 Jul 2025 12:00:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-sum-less-than-selected-month/m-p/4782934#M183139</guid>
      <dc:creator>v-ssriganesh</dc:creator>
      <dc:date>2025-07-31T12:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative sum  less than selected month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-sum-less-than-selected-month/m-p/4785676#M183232</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="733191" data-lia-user-login="Jyaul1122" class="lia-mention lia-mention-user"&gt;Jyaul1122&lt;/a&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Could you please confirm if your query has been resolved by the provided solutions? This would be helpful for other members who may encounter similar issues.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you for being part of the Microsoft Fabric Community.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Aug 2025 16:41:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-sum-less-than-selected-month/m-p/4785676#M183232</guid>
      <dc:creator>v-ssriganesh</dc:creator>
      <dc:date>2025-08-03T16:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative sum  less than selected month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-sum-less-than-selected-month/m-p/4785690#M183234</link>
      <description>&lt;P&gt;Cumulative Sales :=&lt;BR /&gt;CALCULATE(&lt;BR /&gt;SUM('Table'[Sales]),&lt;BR /&gt;FILTER(&lt;BR /&gt;ALLSELECTED('Calendar'),&lt;BR /&gt;'Calendar'[Date] &amp;lt;= MAX('Calendar'[Date])&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="733191" data-lia-user-login="Jyaul1122" class="lia-mention lia-mention-user"&gt;Jyaul1122&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;please try this&lt;/P&gt;</description>
      <pubDate>Sun, 03 Aug 2025 17:00:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-sum-less-than-selected-month/m-p/4785690#M183234</guid>
      <dc:creator>AlanP514</dc:creator>
      <dc:date>2025-08-03T17:00:17Z</dc:date>
    </item>
  </channel>
</rss>

