<?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 Row difference (moving range) in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Row-difference-moving-range/m-p/340260#M58872</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Can you help how to write a formula for row difference? My problem with the formula is that I have a variable column "Partnumber" and I don't want the row difference calculated if the next row has a different partnumber than the current row. Please find a sample table. In row number 30, the part number is different than the previous row. For row 30, I don't want the calculation but then continue as long as the next rows&lt;BR /&gt;&amp;nbsp;have the same part number as row 30 and so on.&lt;/P&gt;</description>
    <pubDate>Sat, 10 Jun 2023 23:23:32 GMT</pubDate>
    <dc:creator>Sebnem</dc:creator>
    <dc:date>2023-06-10T23:23:32Z</dc:date>
    <item>
      <title>Row difference (moving range)</title>
      <link>https://community.jmp.com/t5/Discussions/Row-difference-moving-range/m-p/340260#M58872</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Can you help how to write a formula for row difference? My problem with the formula is that I have a variable column "Partnumber" and I don't want the row difference calculated if the next row has a different partnumber than the current row. Please find a sample table. In row number 30, the part number is different than the previous row. For row 30, I don't want the calculation but then continue as long as the next rows&lt;BR /&gt;&amp;nbsp;have the same part number as row 30 and so on.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:23:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Row-difference-moving-range/m-p/340260#M58872</guid>
      <dc:creator>Sebnem</dc:creator>
      <dc:date>2023-06-10T23:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: Row difference (moving range)</title>
      <link>https://community.jmp.com/t5/Discussions/Row-difference-moving-range/m-p/340279#M58873</link>
      <description>&lt;P&gt;I think an if statement will do what you want, see the column formula below.&amp;nbsp; This will return zero for row 30, you might prefer a missing value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If( :Epi_Product_Number == Lag( :Epi_Product_Number, 1 ),
	Dif( :"Mean(Average)"n ),
	0
)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 08 Dec 2020 20:28:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Row-difference-moving-range/m-p/340279#M58873</guid>
      <dc:creator>ih</dc:creator>
      <dc:date>2020-12-08T20:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: Row difference (moving range)</title>
      <link>https://community.jmp.com/t5/Discussions/Row-difference-moving-range/m-p/340314#M58876</link>
      <description>&lt;P&gt;thank you very much. It worked very well.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2020 22:02:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Row-difference-moving-range/m-p/340314#M58876</guid>
      <dc:creator>Sebnem</dc:creator>
      <dc:date>2020-12-08T22:02:36Z</dc:date>
    </item>
  </channel>
</rss>

