<?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: Subtracting Previous row from a value to get current row in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtracting-Previous-row-from-a-value-to-get-current-row/m-p/2656538#M78554</link>
    <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="410720" data-lia-user-login="KW123" class="lia-mention lia-mention-user"&gt;KW123&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Sorry for the late reply. I got distracted with some other business. Here is the a sample file with the solution&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dropbox.com/t/63n8oSzVv2Ewm1Vt" target="_blank"&gt;https://www.dropbox.com/t/63n8oSzVv2Ewm1Vt&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Calculatetion = 
VAR MonthlyGoal = 1000
VAR DailyGoal = 8
VAR MaxFD = CALCULATE ( MAX ( Data[FD] ), ALLSELECTED ( Data ) )
VAR CurrentFD = MAX ( Data[FD] )
RETURN
    MonthlyGoal - ( MaxFD - CurrentFD ) * DailyGoal&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 22 Jul 2022 21:18:19 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2022-07-22T21:18:19Z</dc:date>
    <item>
      <title>Subtracting Previous row from a value to get current row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtracting-Previous-row-from-a-value-to-get-current-row/m-p/2656392#M78537</link>
      <description>&lt;P&gt;I need a DAX to calculate the following....&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;I have a Days column and an FD column.&amp;nbsp; The FD column assigns each day a number, with the exception of Sunday (it doesn't get a number) and Friday and Saturday will always have the same number.&amp;nbsp; If there is a holiday, it will get the same number as the previous date.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The DAX for FD is&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;FD = IF([FD2] = BLANK(),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;BLANK(),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE(MAX([FD2]),ALLEXCEPT('Dates','Dates'[YYYYMM2])) -[FD2]+1&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;FD2 = IF(WEEKDAY([Date],2)&amp;lt;&amp;gt;7,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RANKX(FILTER('Dates','Dates'[IsRank] &amp;amp;&amp;amp; [YYYYMM2]=EARLIER([YYYYMM2])),[Date]),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;BLANK()&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;/SPAN&gt;The FD2 is the DESC of the FD.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have a Values column which is the Monthly goal total.&amp;nbsp; I need to work my way backwards from the example of $200 and minus the daily goal of $12 to get the row above it($188).&amp;nbsp; For the next row, minus $12 from $188 etc...&amp;nbsp; The tricky part is, I need a statement which will include that if the FD is the same, then the calculation needs to be the same value.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;So if I have&amp;nbsp;&lt;BR /&gt;Day&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; FD&amp;nbsp; Calculation&lt;BR /&gt;Tuesday&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$152&lt;BR /&gt;Wednesday&amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$164&lt;BR /&gt;Thursday&amp;nbsp; &amp;nbsp; &amp;nbsp; 3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$176&lt;BR /&gt;&lt;STRONG&gt;Friday&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$188&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Saturday&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$188&lt;/STRONG&gt;&lt;BR /&gt;Monday&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$200&lt;BR /&gt;&lt;BR /&gt;I hope that makes sense!&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 22 Jul 2022 18:55:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtracting-Previous-row-from-a-value-to-get-current-row/m-p/2656392#M78537</guid>
      <dc:creator>KW123</dc:creator>
      <dc:date>2022-07-22T18:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Subtracting Previous row from a value to get current row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtracting-Previous-row-from-a-value-to-get-current-row/m-p/2656407#M78539</link>
      <description>&lt;P&gt;Find your max FD of the month&lt;/P&gt;&lt;P&gt;var _maxFD =&amp;nbsp;Calculate(max(FD),&amp;nbsp;&lt;SPAN&gt;ALLEXCEPT&lt;/SPAN&gt;&lt;SPAN&gt;(table,table[month]))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;return [Value] - (_maxFD-[FD])*[Daily Goal]&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2022 19:03:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtracting-Previous-row-from-a-value-to-get-current-row/m-p/2656407#M78539</guid>
      <dc:creator>vapid128</dc:creator>
      <dc:date>2022-07-22T19:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: Subtracting Previous row from a value to get current row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtracting-Previous-row-from-a-value-to-get-current-row/m-p/2656421#M78541</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="359999" data-lia-user-login="vapid128" class="lia-mention lia-mention-user"&gt;vapid128&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Thank you!!!!!&lt;BR /&gt;For the [value] I have it as a column and not a measure, is there a way to change that? Otherwise it won't let me add [values] into the dax&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2022 19:12:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtracting-Previous-row-from-a-value-to-get-current-row/m-p/2656421#M78541</guid>
      <dc:creator>KW123</dc:creator>
      <dc:date>2022-07-22T19:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: Subtracting Previous row from a value to get current row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtracting-Previous-row-from-a-value-to-get-current-row/m-p/2656460#M78544</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="410720" data-lia-user-login="KW123" class="lia-mention lia-mention-user"&gt;KW123&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can you please provide copy paste sample data?&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2022 19:48:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtracting-Previous-row-from-a-value-to-get-current-row/m-p/2656460#M78544</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-07-22T19:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: Subtracting Previous row from a value to get current row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtracting-Previous-row-from-a-value-to-get-current-row/m-p/2656463#M78545</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2022 19:50:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtracting-Previous-row-from-a-value-to-get-current-row/m-p/2656463#M78545</guid>
      <dc:creator>KW123</dc:creator>
      <dc:date>2022-07-22T19:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: Subtracting Previous row from a value to get current row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtracting-Previous-row-from-a-value-to-get-current-row/m-p/2656475#M78546</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="410720" data-lia-user-login="KW123" class="lia-mention lia-mention-user"&gt;KW123&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to copy and paste the values in order to generate sample file&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2022 19:59:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtracting-Previous-row-from-a-value-to-get-current-row/m-p/2656475#M78546</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-07-22T19:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: Subtracting Previous row from a value to get current row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtracting-Previous-row-from-a-value-to-get-current-row/m-p/2656499#M78550</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Assume monthly goal is $1000&amp;nbsp;&lt;BR /&gt;Daily goal is $8&lt;BR /&gt;Calculation is monthly goal previous row-daily goal=current row while paying attention to the FD column.&amp;nbsp; We will be working backwards from $1000&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Day&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;FD&amp;nbsp; Calculation&lt;/SPAN&gt;&lt;BR /&gt;1&amp;nbsp; Tuesday&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$856&lt;BR /&gt;2 Wednesday&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$864&lt;BR /&gt;3 Thursday&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$872&lt;BR /&gt;4 Friday&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$880&lt;BR /&gt;5 Saturday&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$880&lt;BR /&gt;&lt;BR /&gt;7 Monday&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $888&amp;nbsp;&lt;BR /&gt;8 Tuesday&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;6&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $896&lt;BR /&gt;9 Wednesday&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;7&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $904&lt;BR /&gt;10 Thursday&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;8&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $912&lt;BR /&gt;11 Friday&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 9&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $920&lt;BR /&gt;12 Saturday&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 9&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$920&lt;BR /&gt;&lt;BR /&gt;14 Monday&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$928&lt;BR /&gt;15 Tuesday&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;11&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$936&lt;BR /&gt;16 Wednesday&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 12&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $944&lt;BR /&gt;17 Thursday&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 13&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $952&lt;BR /&gt;18 Friday&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;14&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $960&lt;BR /&gt;19 Saturday&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;14&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $960&lt;BR /&gt;&lt;BR /&gt;21 Monday (Holiday) 14&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$960&lt;BR /&gt;22 Tuesday&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 15&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $968&lt;BR /&gt;23 Wednesday&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 16&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $976&lt;BR /&gt;24 Thursday&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 17&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $984&lt;BR /&gt;25 Friday&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;18&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $992&lt;BR /&gt;26 Saturday&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;18&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $992&lt;BR /&gt;&lt;BR /&gt;28 Monday&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 19&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$1000&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2022 20:14:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtracting-Previous-row-from-a-value-to-get-current-row/m-p/2656499#M78550</guid>
      <dc:creator>KW123</dc:creator>
      <dc:date>2022-07-22T20:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: Subtracting Previous row from a value to get current row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtracting-Previous-row-from-a-value-to-get-current-row/m-p/2656538#M78554</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="410720" data-lia-user-login="KW123" class="lia-mention lia-mention-user"&gt;KW123&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Sorry for the late reply. I got distracted with some other business. Here is the a sample file with the solution&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dropbox.com/t/63n8oSzVv2Ewm1Vt" target="_blank"&gt;https://www.dropbox.com/t/63n8oSzVv2Ewm1Vt&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Calculatetion = 
VAR MonthlyGoal = 1000
VAR DailyGoal = 8
VAR MaxFD = CALCULATE ( MAX ( Data[FD] ), ALLSELECTED ( Data ) )
VAR CurrentFD = MAX ( Data[FD] )
RETURN
    MonthlyGoal - ( MaxFD - CurrentFD ) * DailyGoal&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 22 Jul 2022 21:18:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtracting-Previous-row-from-a-value-to-get-current-row/m-p/2656538#M78554</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-07-22T21:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: Subtracting Previous row from a value to get current row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtracting-Previous-row-from-a-value-to-get-current-row/m-p/2656543#M78555</link>
      <description>&lt;P&gt;I think your [value] [FD] and&amp;nbsp;&lt;SPAN&gt;[Daily Goal] are all colnum.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Isn't it?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and Just add colnum&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2022 21:30:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtracting-Previous-row-from-a-value-to-get-current-row/m-p/2656543#M78555</guid>
      <dc:creator>vapid128</dc:creator>
      <dc:date>2022-07-22T21:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: Subtracting Previous row from a value to get current row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtracting-Previous-row-from-a-value-to-get-current-row/m-p/2656694#M78566</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;This is great and looks like what I am looking for! The only issue is that the Monthly goal changes each month so I would like a DAX that I only have to plug into once.&amp;nbsp; The current monthly goals I have are in a table where each month is different.&amp;nbsp; Is there a way to do this?&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jul 2022 02:16:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtracting-Previous-row-from-a-value-to-get-current-row/m-p/2656694#M78566</guid>
      <dc:creator>KW123</dc:creator>
      <dc:date>2022-07-23T02:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: Subtracting Previous row from a value to get current row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtracting-Previous-row-from-a-value-to-get-current-row/m-p/2656703#M78567</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="359999" data-lia-user-login="vapid128" class="lia-mention lia-mention-user"&gt;vapid128&lt;/a&gt;&amp;nbsp;Not sure what I am doing incorrectly.&amp;nbsp;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jul 2022 02:23:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtracting-Previous-row-from-a-value-to-get-current-row/m-p/2656703#M78567</guid>
      <dc:creator>KW123</dc:creator>
      <dc:date>2022-07-23T02:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: Subtracting Previous row from a value to get current row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtracting-Previous-row-from-a-value-to-get-current-row/m-p/2656721#M78570</link>
      <description>&lt;P&gt;&lt;SPAN&gt;You are missing a ")" at beginning of red line.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sum('Dates'[FD])&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jul 2022 02:48:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtracting-Previous-row-from-a-value-to-get-current-row/m-p/2656721#M78570</guid>
      <dc:creator>vapid128</dc:creator>
      <dc:date>2022-07-23T02:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: Subtracting Previous row from a value to get current row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtracting-Previous-row-from-a-value-to-get-current-row/m-p/2656722#M78571</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="359999" data-lia-user-login="vapid128" class="lia-mention lia-mention-user"&gt;vapid128&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thank you!!!! It's now saying too many arguments were passed to the SUM function but if I don't put the Sum it won't let me select the FD (it's a calculated column)&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jul 2022 02:52:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtracting-Previous-row-from-a-value-to-get-current-row/m-p/2656722#M78571</guid>
      <dc:creator>KW123</dc:creator>
      <dc:date>2022-07-23T02:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: Subtracting Previous row from a value to get current row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtracting-Previous-row-from-a-value-to-get-current-row/m-p/2656723#M78572</link>
      <description>&lt;P&gt;that should be MAX, not SUM.&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jul 2022 02:54:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtracting-Previous-row-from-a-value-to-get-current-row/m-p/2656723#M78572</guid>
      <dc:creator>vapid128</dc:creator>
      <dc:date>2022-07-23T02:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: Subtracting Previous row from a value to get current row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtracting-Previous-row-from-a-value-to-get-current-row/m-p/2656881#M78595</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="410720" data-lia-user-login="KW123" class="lia-mention lia-mention-user"&gt;KW123&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Here is the updated sample file as requested&amp;nbsp;&lt;A href="https://www.dropbox.com/t/Ve5nnfpx1Ntmudau" target="_blank"&gt;https://www.dropbox.com/t/Ve5nnfpx1Ntmudau&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;FD Measure = SELECTEDVALUE ( Data[FD] )&lt;/LI-CODE&gt;&lt;LI-CODE lang="javascript"&gt;Calculatetion = 
VAR MonthlyGoal = SELECTEDVALUE ( 'Monthly Target'[Target] )
VAR DailyGoal = 8
VAR CurrentFD = [FD Measure]
VAR MaxFD = CALCULATE ( MAX ( Data[FD] ), REMOVEFILTERS ( ), VALUES ( 'Date'[Month] ) )
VAR Result = MonthlyGoal - ( MaxFD - CurrentFD ) * DailyGoal
RETURN
    IF ( NOT ISBLANK ( CurrentFD ), Result )&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 23 Jul 2022 14:15:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtracting-Previous-row-from-a-value-to-get-current-row/m-p/2656881#M78595</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-07-23T14:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: Subtracting Previous row from a value to get current row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtracting-Previous-row-from-a-value-to-get-current-row/m-p/2659882#M78812</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Thank you so much for taking the time to do that! I am not sure why it is not working for me.&amp;nbsp; All rows are blank.&amp;nbsp;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2022 17:38:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtracting-Previous-row-from-a-value-to-get-current-row/m-p/2659882#M78812</guid>
      <dc:creator>KW123</dc:creator>
      <dc:date>2022-07-25T17:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: Subtracting Previous row from a value to get current row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtracting-Previous-row-from-a-value-to-get-current-row/m-p/2659896#M78813</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="410720" data-lia-user-login="KW123" class="lia-mention lia-mention-user"&gt;KW123&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try to filter one month&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2022 17:42:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtracting-Previous-row-from-a-value-to-get-current-row/m-p/2659896#M78813</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-07-25T17:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: Subtracting Previous row from a value to get current row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtracting-Previous-row-from-a-value-to-get-current-row/m-p/2659944#M78815</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;Doesn't seem to have an affect&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2022 18:02:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtracting-Previous-row-from-a-value-to-get-current-row/m-p/2659944#M78815</guid>
      <dc:creator>KW123</dc:creator>
      <dc:date>2022-07-25T18:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: Subtracting Previous row from a value to get current row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtracting-Previous-row-from-a-value-to-get-current-row/m-p/2659954#M78816</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="410720" data-lia-user-login="KW123" class="lia-mention lia-mention-user"&gt;KW123&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would like to connect via zoom or teams to look into this problem?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2022 18:05:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtracting-Previous-row-from-a-value-to-get-current-row/m-p/2659954#M78816</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-07-25T18:05:42Z</dc:date>
    </item>
  </channel>
</rss>

