<?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 Difference between rows and keep first row value in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-between-rows-and-keep-first-row-value/m-p/1473410#M28014</link>
    <description>&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to add a calculated column or Measure that will return the difference of two rows of a MEASURE (Column B-A, C-B and so on) In the same time I need to keep the first row value (A) as it is.&lt;/P&gt;&lt;P&gt;I tried with below command for calculated cloumn but the first row was wrong I need keep the result "134,685.68" for first column then calculate the difference :&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CC_Weekly_Actual_NLU =&lt;BR /&gt;[M_Weekly_Actual_NLU-(CALCULATE([M_Weekly_Actual_NLU],&lt;BR /&gt;FILTER(Actual_NLU,Actual_NLU[Index.1]=EARLIER(Actual_NLU[Index.0]))))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;Any suggestion to modify the Calculated Column or provide a new Measure formula to provide what I want.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 04 Nov 2020 07:38:04 GMT</pubDate>
    <dc:creator>Aleiadeh</dc:creator>
    <dc:date>2020-11-04T07:38:04Z</dc:date>
    <item>
      <title>Difference between rows and keep first row value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-between-rows-and-keep-first-row-value/m-p/1473410#M28014</link>
      <description>&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to add a calculated column or Measure that will return the difference of two rows of a MEASURE (Column B-A, C-B and so on) In the same time I need to keep the first row value (A) as it is.&lt;/P&gt;&lt;P&gt;I tried with below command for calculated cloumn but the first row was wrong I need keep the result "134,685.68" for first column then calculate the difference :&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CC_Weekly_Actual_NLU =&lt;BR /&gt;[M_Weekly_Actual_NLU-(CALCULATE([M_Weekly_Actual_NLU],&lt;BR /&gt;FILTER(Actual_NLU,Actual_NLU[Index.1]=EARLIER(Actual_NLU[Index.0]))))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;Any suggestion to modify the Calculated Column or provide a new Measure formula to provide what I want.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 04 Nov 2020 07:38:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-between-rows-and-keep-first-row-value/m-p/1473410#M28014</guid>
      <dc:creator>Aleiadeh</dc:creator>
      <dc:date>2020-11-04T07:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between rows and keep first row value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-between-rows-and-keep-first-row-value/m-p/1473885#M28019</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="268692" data-lia-user-login="Aleiadeh" class="lia-mention lia-mention-user"&gt;Aleiadeh&lt;/a&gt; , Try a new column like &lt;/P&gt;
&lt;P&gt;Column = var _1 = maxx(FILTER('Table', 'Table'[Date] &amp;lt; EARLIER('Table'[Date])),LASTNONBLANKVALUE('Table'[Date],'Table'[M_Weekly_Actual_NLU]))&lt;/P&gt;
&lt;P&gt;return [M_Weekly_Actual_NLU] -_1&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 09:28:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-between-rows-and-keep-first-row-value/m-p/1473885#M28019</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-11-04T09:28:55Z</dc:date>
    </item>
  </channel>
</rss>

