<?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: Column Formula (Range Selection) in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Column-Formula-Range-Selection/m-p/420518#M66936</link>
    <description>&lt;P&gt;If I am correctly interpreting your question, here is one possible way to handle it as a formula for a new column&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If( Row() &amp;lt;= 14,
	bottom = 1,
	bottom = Row() - 14
);
Max( :weight[Index( bottom, Row() )] ) - Min( :weight[Index( bottom, Row() )] );&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 23 Sep 2021 02:20:13 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2021-09-23T02:20:13Z</dc:date>
    <item>
      <title>Column Formula (Range Selection)</title>
      <link>https://community.jmp.com/t5/Discussions/Column-Formula-Range-Selection/m-p/420466#M66928</link>
      <description>&lt;P&gt;I have a column of data sequenced in time, most recent result at the top of the table. I want the top row value of a new column to be evaluated (Maximum minus the Minimum) at that most recent time&amp;nbsp; and a fixed # proceeding values (say the previous 14).&lt;/P&gt;&lt;P&gt;So each new value at each time will be the peak-to-peak variation of 15 results; the previous 14 results the one at the current time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If was in Excel I could drag the mouse to select a range of cells to evaluate the difference of Min&amp;amp;Max over the range...&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:37:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Column-Formula-Range-Selection/m-p/420466#M66928</guid>
      <dc:creator>Fazio9</dc:creator>
      <dc:date>2023-06-10T23:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: Column Formula (Range Selection)</title>
      <link>https://community.jmp.com/t5/Discussions/Column-Formula-Range-Selection/m-p/420518#M66936</link>
      <description>&lt;P&gt;If I am correctly interpreting your question, here is one possible way to handle it as a formula for a new column&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If( Row() &amp;lt;= 14,
	bottom = 1,
	bottom = Row() - 14
);
Max( :weight[Index( bottom, Row() )] ) - Min( :weight[Index( bottom, Row() )] );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 23 Sep 2021 02:20:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Column-Formula-Range-Selection/m-p/420518#M66936</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-09-23T02:20:13Z</dc:date>
    </item>
  </channel>
</rss>

