<?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: How to apply a column formula on only a range of rows and not every row? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-apply-a-column-formula-on-only-a-range-of-rows-and-not/m-p/521771#M74683</link>
    <description>&lt;P&gt;For Mean I would suggest using Col Moving Average&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If(Modulo(Row(), 3) == 0,
	Col Moving Average(:Col, 1, 2, 0),
	.
)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1657882865907.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/43981iF9870C27045CB3B0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1657882865907.png" alt="jthi_0-1657882865907.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Otherwise&amp;nbsp;&lt;LI-MESSAGE title="Data table subscripting" uid="21013" url="https://community.jmp.com/t5/Uncharted/Data-table-subscripting/m-p/21013#U21013" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-blog-thread lia-fa-icon lia-fa-blog lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;might be helpful&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If(Modulo(Row(), 3) == 0,
	Mean(:Col[Index(Row() - 2, Row())])
)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 15 Jul 2022 11:03:50 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2022-07-15T11:03:50Z</dc:date>
    <item>
      <title>How to apply a column formula on only a range of rows and not every row?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-apply-a-column-formula-on-only-a-range-of-rows-and-not/m-p/521744#M74681</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to create a column formula that calculates the mean of every 5 rows (for a specific column).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Normally the formula are applied to every row using values in such row. Instead, I would like to use values from 5 previous row to calculate a mean value.&lt;/P&gt;
&lt;P&gt;I am been playing with the formula editor and try to use the Row() and other functions, but without success.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks a lot to anyone who can help me out.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;AC_AC&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mean5RowProblem.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/44009iFFC69D02C13C31CF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Mean5RowProblem.png" alt="Mean5RowProblem.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:51:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-apply-a-column-formula-on-only-a-range-of-rows-and-not/m-p/521744#M74681</guid>
      <dc:creator>AC_AC</dc:creator>
      <dc:date>2023-06-10T23:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to apply a column formula on only a range of rows and not every row?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-apply-a-column-formula-on-only-a-range-of-rows-and-not/m-p/521771#M74683</link>
      <description>&lt;P&gt;For Mean I would suggest using Col Moving Average&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If(Modulo(Row(), 3) == 0,
	Col Moving Average(:Col, 1, 2, 0),
	.
)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1657882865907.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/43981iF9870C27045CB3B0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1657882865907.png" alt="jthi_0-1657882865907.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Otherwise&amp;nbsp;&lt;LI-MESSAGE title="Data table subscripting" uid="21013" url="https://community.jmp.com/t5/Uncharted/Data-table-subscripting/m-p/21013#U21013" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-blog-thread lia-fa-icon lia-fa-blog lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;might be helpful&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If(Modulo(Row(), 3) == 0,
	Mean(:Col[Index(Row() - 2, Row())])
)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 15 Jul 2022 11:03:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-apply-a-column-formula-on-only-a-range-of-rows-and-not/m-p/521771#M74683</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-07-15T11:03:50Z</dc:date>
    </item>
  </channel>
</rss>

