<?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: Dynamic Cumulative Totals on Pivoted Table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Cumulative-Totals-on-Pivoted-Table/m-p/3328481#M124666</link>
    <description>&lt;P&gt;Hi ,&amp;nbsp;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="254783" data-lia-user-login="bcohen" class="lia-mention lia-mention-user"&gt;bcohen&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to your description,&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Do you want to calculate the cumulative value of the year based on the year? &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;For example, 1973=1971+1972.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;If this , you can just try to use this dax code:&lt;/P&gt;
&lt;P&gt;Measure = CALCULATE( SUM('Merge1'[netchange]) ,'Merge1'[year]&amp;lt;= MAX('Merge1'[year]))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The result as follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;If this method does not meet your needs, you can provide us with your special &lt;STRONG&gt;sample data and the &lt;STRONG&gt;desired output sample data in the form of &lt;STRONG&gt;tables, so that we can better help you solve the problem. (You can also upload you sample .pbix [without sensitive data] to the OneDrive and share with the OneDrive link to me ! )&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Aniya Zhang&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept&lt;EM&gt; it as the solution&amp;nbsp;to help the other members find it more quickly&lt;/EM&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 13 Jul 2023 03:19:26 GMT</pubDate>
    <dc:creator>v-yueyunzh-msft</dc:creator>
    <dc:date>2023-07-13T03:19:26Z</dc:date>
    <item>
      <title>Dynamic Cumulative Totals on Pivoted Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Cumulative-Totals-on-Pivoted-Table/m-p/3325964#M124542</link>
      <description>&lt;P&gt;I have a table with pivoted data as shown below.&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 want to create a display a cumulative staff totals by year, for either of the Attributes selected on a Slicer object (education level or gender).&amp;nbsp; How do I design a solution (a cumulative total) that re-calculates cumulative totals based on user selections in a Slicer?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far, I've used a standard cumulative total calculation, but it does not provide accurate results:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CumulativeStaffTotal = CALCULATE( SUM(Merge1[netchange]), FILTER(ALLSELECTED(Merge1), Merge1[Value]=EARLIER(Merge1[Value]) &amp;amp;&amp;amp; Merge1[year]=EARLIER(Merge1[year]) ))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What approach would you use to solve this problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2023 19:51:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Cumulative-Totals-on-Pivoted-Table/m-p/3325964#M124542</guid>
      <dc:creator>bcohen</dc:creator>
      <dc:date>2023-07-11T19:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Cumulative Totals on Pivoted Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Cumulative-Totals-on-Pivoted-Table/m-p/3328481#M124666</link>
      <description>&lt;P&gt;Hi ,&amp;nbsp;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="254783" data-lia-user-login="bcohen" class="lia-mention lia-mention-user"&gt;bcohen&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to your description,&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Do you want to calculate the cumulative value of the year based on the year? &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;For example, 1973=1971+1972.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;If this , you can just try to use this dax code:&lt;/P&gt;
&lt;P&gt;Measure = CALCULATE( SUM('Merge1'[netchange]) ,'Merge1'[year]&amp;lt;= MAX('Merge1'[year]))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The result as follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;If this method does not meet your needs, you can provide us with your special &lt;STRONG&gt;sample data and the &lt;STRONG&gt;desired output sample data in the form of &lt;STRONG&gt;tables, so that we can better help you solve the problem. (You can also upload you sample .pbix [without sensitive data] to the OneDrive and share with the OneDrive link to me ! )&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Aniya Zhang&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept&lt;EM&gt; it as the solution&amp;nbsp;to help the other members find it more quickly&lt;/EM&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2023 03:19:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Cumulative-Totals-on-Pivoted-Table/m-p/3328481#M124666</guid>
      <dc:creator>v-yueyunzh-msft</dc:creator>
      <dc:date>2023-07-13T03:19:26Z</dc:date>
    </item>
  </channel>
</rss>

