<?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 required based on two measures - help required in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-sum-required-based-on-two-measures-help-required/m-p/4003868#M156232</link>
    <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="738384" data-lia-user-login="xifeng_L" class="lia-mention lia-mention-user"&gt;xifeng_L&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Last time you helped me on a similar requirement. Can you please help me for this new requirement.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Desktop/Cumulative-total-with-a-slicer-did-not-give-the-cumulative-total/td-p/3910404" target="_blank"&gt;Solved: Cumulative total with a slicer did not give the cu... - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Fri, 21 Jun 2024 10:28:19 GMT</pubDate>
    <dc:creator>kskumar</dc:creator>
    <dc:date>2024-06-21T10:28:19Z</dc:date>
    <item>
      <title>Cumulative sum required based on two measures - help required</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-sum-required-based-on-two-measures-help-required/m-p/4003295#M156186</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 3 tables and a DateTable and need to get the Cumulative sales for the entire period (inception to till date). However, I have to use a slicer to filter the data for the current year and that filtered data for current year should be considered for cumulative.&lt;/P&gt;&lt;P&gt;Table 1: CostCtrlNew&lt;/P&gt;&lt;P&gt;Table2: Prog Proj Master&lt;/P&gt;&lt;P&gt;Table3: ProgBudget Mly&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Requirement&lt;/STRONG&gt;&lt;/U&gt;: I need to choose Cumulative sum from CostCtrlNew table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Relationship:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Expected Cumulative SUM as shown below.&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Measure 1: To consider all records for previous year (prior to current fiscal year) -&lt;STRONG&gt; I have a measure already&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Measure 2: To consider ONLY records for current year (fiscal year = 2023-2024) and for the chosen month (based on a slicer from DateTable) -&lt;STRONG&gt; I have a measure already&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need a cumulative sum of both measures (Measure1 &amp;amp; Measure2) and show Fiscal Year wise.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have enclosed the PBIX and source file for reference. Can SOMEONE please help on this to get cumulative sum for my requirement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly let me know if you need any further information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/file/d/1ne5xfl4Bceqa7DL3pey1PxOE2vnofAkW/view?usp=drive_link" target="_blank" rel="noopener"&gt;https://drive.google.com/file/d/1ne5xfl4Bceqa7DL3pey1PxOE2vnofAkW/view?usp=drive_link&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.google.com/spreadsheets/d/1y6ViaF7ZJwNFy7CMgwZ457i0yHJAudzO5mS7pRFah4I/edit?usp=drive_link" target="_blank" rel="noopener"&gt;https://docs.google.com/spreadsheets/d/1y6ViaF7ZJwNFy7CMgwZ457i0yHJAudzO5mS7pRFah4I/edit?usp=drive_link&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2024 05:02:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-sum-required-based-on-two-measures-help-required/m-p/4003295#M156186</guid>
      <dc:creator>kskumar</dc:creator>
      <dc:date>2024-06-21T05:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative sum required based on two measures - help required</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-sum-required-based-on-two-measures-help-required/m-p/4003577#M156189</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="729664" data-lia-user-login="kskumar" class="lia-mention lia-mention-user"&gt;kskumar&lt;/a&gt; , Simply create a cumulative measure for that &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;example by using sales table&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cumm Sales = CALCULATE(SUM(Sales[Sales Amount]),filter(all('Date'),'Date'[date] &amp;lt;=max('Date'[date])))&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Cumm Based on Date = CALCULATE([Net], Window(1,ABS,0,REL, ALL('date'[date]),ORDERBY('Date'[date],ASC)))&lt;BR /&gt;&lt;BR /&gt;Running Total/ Cumulative: &lt;BR /&gt;&lt;A href="https://www.youtube.com/watch?v=h2wsO332LUo&amp;amp;list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&amp;amp;index=42" target="_blank"&gt;https://www.youtube.com/watch?v=h2wsO332LUo&amp;amp;list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&amp;amp;index=42&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also consider new visual calc runningsum&lt;/P&gt;
&lt;P&gt;Master Visual Calculations in Power BI- February 2024 Update RUNNINGSUM, RANGE, MOVINGAVERAGE, COLLAPSE, COLLAPSEALL, EXPAND, EXPANDALL, FIRST, LAST, PREVIOUS, and NEXT&lt;BR /&gt;&lt;A href="https://www.youtube.com/watch?v=bKD9T0EWgQo&amp;amp;list=PLPaNVDMhUXGYo50Ajmr4SgSV9HIQLxc8L" target="_blank"&gt;https://www.youtube.com/watch?v=bKD9T0EWgQo&amp;amp;list=PLPaNVDMhUXGYo50Ajmr4SgSV9HIQLxc8L&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2024 08:02:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-sum-required-based-on-two-measures-help-required/m-p/4003577#M156189</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2024-06-21T08:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative sum required based on two measures - help required</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-sum-required-based-on-two-measures-help-required/m-p/4003725#M156205</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks for your response.&amp;nbsp; I tried creating a measure as you suggested and captured the screenshot below. Unfortunaltely, not getting the result that I need.&lt;/P&gt;&lt;P&gt;----------------------------------------------------------------------------------&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ActualsFullYearsinceInception&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;selmonth&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;DateTable&lt;/SPAN&gt;&lt;SPAN&gt;[MonthNumber]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;selfiscalYrSort&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;DateTable&lt;/SPAN&gt;&lt;SPAN&gt;[FiscalYearSort]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;PrevYr&lt;/SPAN&gt;&lt;SPAN&gt; = &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;(&lt;/SPAN&gt;&lt;SPAN&gt;CostCtrlNew&lt;/SPAN&gt;&lt;SPAN&gt;[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;[Date]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;ASC&lt;/SPAN&gt;&lt;SPAN&gt;)))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Have attached the PBIX file for your reference as well. What I need is the cumulative sum for the actuals listed as the last column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/file/d/1mxV_ljuWwT70TCpfIbu7i0Ch-TLqLwA_/view?usp=sharing" target="_blank"&gt;https://drive.google.com/file/d/1mxV_ljuWwT70TCpfIbu7i0Ch-TLqLwA_/view?usp=sharing&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.google.com/spreadsheets/d/1y6ViaF7ZJwNFy7CMgwZ457i0yHJAudzO5mS7pRFah4I/edit?usp=drive_link" target="_blank"&gt;https://docs.google.com/spreadsheets/d/1y6ViaF7ZJwNFy7CMgwZ457i0yHJAudzO5mS7pRFah4I/edit?usp=drive_link&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;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2024 09:12:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-sum-required-based-on-two-measures-help-required/m-p/4003725#M156205</guid>
      <dc:creator>kskumar</dc:creator>
      <dc:date>2024-06-21T09:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative sum required based on two measures - help required</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-sum-required-based-on-two-measures-help-required/m-p/4003868#M156232</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="738384" data-lia-user-login="xifeng_L" class="lia-mention lia-mention-user"&gt;xifeng_L&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Last time you helped me on a similar requirement. Can you please help me for this new requirement.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Desktop/Cumulative-total-with-a-slicer-did-not-give-the-cumulative-total/td-p/3910404" target="_blank"&gt;Solved: Cumulative total with a slicer did not give the cu... - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2024 10:28:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-sum-required-based-on-two-measures-help-required/m-p/4003868#M156232</guid>
      <dc:creator>kskumar</dc:creator>
      <dc:date>2024-06-21T10:28:19Z</dc:date>
    </item>
  </channel>
</rss>

