<?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: Accumulating using previous in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Accumulating-using-previous/m-p/3283519#M121996</link>
    <description>&lt;P&gt;and this is the raw data.&lt;/P&gt;</description>
    <pubDate>Wed, 14 Jun 2023 11:01:51 GMT</pubDate>
    <dc:creator>Casperserven1</dc:creator>
    <dc:date>2023-06-14T11:01:51Z</dc:date>
    <item>
      <title>Accumulating using previous</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Accumulating-using-previous/m-p/3283437#M121986</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;I am trying to do tthe following and struggling - I am sure this is easy but just can't see it.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;New Hires&lt;/TD&gt;&lt;TD&gt;Retirees&lt;/TD&gt;&lt;TD&gt;Total Workforce&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;23&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;9&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;31&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;TD&gt;29&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;31&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;32&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;31&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;So in excel my first row = 22 +New Hires - Retirees&lt;/P&gt;&lt;P&gt;My second row = 20 (the result from the previous row) +NewHires - Retirees&lt;BR /&gt;My third row&amp;nbsp; &amp;nbsp; = 23&amp;nbsp;&amp;nbsp;(the result from the previous row) +NewHires - Retirees&lt;BR /&gt;etc..&amp;nbsp;&lt;BR /&gt;Tried various things including EARLIER, using indexing,&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 14 Jun 2023 10:07:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Accumulating-using-previous/m-p/3283437#M121986</guid>
      <dc:creator>Casperserven1</dc:creator>
      <dc:date>2023-06-14T10:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: Accumulating using previous</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Accumulating-using-previous/m-p/3283505#M121992</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="400539" data-lia-user-login="Casperserven1" class="lia-mention lia-mention-user"&gt;Casperserven1&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Is this a data table or a table visual? How did you get the first value (22)?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 10:55:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Accumulating-using-previous/m-p/3283505#M121992</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-06-14T10:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: Accumulating using previous</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Accumulating-using-previous/m-p/3283518#M121995</link>
      <description>&lt;P&gt;The first value (22) is the starting workforce.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 11:01:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Accumulating-using-previous/m-p/3283518#M121995</guid>
      <dc:creator>Casperserven1</dc:creator>
      <dc:date>2023-06-14T11:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: Accumulating using previous</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Accumulating-using-previous/m-p/3283519#M121996</link>
      <description>&lt;P&gt;and this is the raw data.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 11:01:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Accumulating-using-previous/m-p/3283519#M121996</guid>
      <dc:creator>Casperserven1</dc:creator>
      <dc:date>2023-06-14T11:01:51Z</dc:date>
    </item>
    <item>
      <title>Re: Accumulating using previous</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Accumulating-using-previous/m-p/3283626#M122009</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="400539" data-lia-user-login="Casperserven1" class="lia-mention lia-mention-user"&gt;Casperserven1&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please refer to attached sample file with the proposed solution&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Total Workforce = 
VAR StartingWF = 22
VAR TableOnAndBefore = 
    FILTER ( 'Table', 'Table'[Date] &amp;lt;= EARLIER ( 'Table'[Date] ) )
VAR Change = 
    SUMX ( TableOnAndBefore, 'Table'[New Hires] - 'Table'[Retirees] )
RETURN
    StartingWF + Change&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 14 Jun 2023 12:18:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Accumulating-using-previous/m-p/3283626#M122009</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-06-14T12:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: Accumulating using previous</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Accumulating-using-previous/m-p/3283800#M122023</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Thanks the pbix worked perfectly, however when I tried the technique with other data this is what occurred...any ideas??&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 13:37:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Accumulating-using-previous/m-p/3283800#M122023</guid>
      <dc:creator>Casperserven1</dc:creator>
      <dc:date>2023-06-14T13:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: Accumulating using previous</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Accumulating-using-previous/m-p/3283822#M122025</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="400539" data-lia-user-login="Casperserven1" class="lia-mention lia-mention-user"&gt;Casperserven1&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;It should be a calculated column not a measure!&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 13:45:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Accumulating-using-previous/m-p/3283822#M122025</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-06-14T13:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: Accumulating using previous</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Accumulating-using-previous/m-p/3283881#M122033</link>
      <description>&lt;P&gt;Thankyou so much , unfortunately it still isn't right. We only want the starting figure of 22 in the first row. after that is thould be adding and subtracting from the previous row.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 14:16:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Accumulating-using-previous/m-p/3283881#M122033</guid>
      <dc:creator>Casperserven1</dc:creator>
      <dc:date>2023-06-14T14:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: Accumulating using previous</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Accumulating-using-previous/m-p/3283907#M122036</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="400539" data-lia-user-login="Casperserven1" class="lia-mention lia-mention-user"&gt;Casperserven1&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please clarify further. Perhaps with a screenshot?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 14:30:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Accumulating-using-previous/m-p/3283907#M122036</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-06-14T14:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: Accumulating using previous</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Accumulating-using-previous/m-p/3283998#M122042</link>
      <description>&lt;P&gt;yeah sure&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>Wed, 14 Jun 2023 14:52:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Accumulating-using-previous/m-p/3283998#M122042</guid>
      <dc:creator>Casperserven1</dc:creator>
      <dc:date>2023-06-14T14:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: Accumulating using previous</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Accumulating-using-previous/m-p/3284022#M122047</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="400539" data-lia-user-login="Casperserven1" class="lia-mention lia-mention-user"&gt;Casperserven1&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Now I got it. Please try&lt;/P&gt;
&lt;P&gt;Total Workforce =&lt;BR /&gt;VAR StartingWF = 22&lt;BR /&gt;VAR TableBefore =&lt;BR /&gt;FILTER ( 'Table', 'Table'[Date] &amp;lt; EARLIER ( 'Table'[Date] ) )&lt;BR /&gt;VAR Change =&lt;BR /&gt;SUMX ( TableBefore, 'Table'[New Hires] - 'Table'[Retirees] )&lt;BR /&gt;RETURN&lt;BR /&gt;StartingWF + Change&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 15:03:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Accumulating-using-previous/m-p/3284022#M122047</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-06-14T15:03:32Z</dc:date>
    </item>
  </channel>
</rss>

