<?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: Add values to x# of lag rows in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Add-values-to-x-of-lag-rows/m-p/350785#M60034</link>
    <description>&lt;P&gt;This Discussion Item was reworded and solved&amp;nbsp;&lt;A href="https://community.jmp.com/t5/Discussions/Add-values-into-X-number-of-lag-rows/m-p/350637#M60016" target="_self"&gt;here.&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Jan 2021 03:03:31 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2021-01-19T03:03:31Z</dc:date>
    <item>
      <title>Add values to x# of lag rows</title>
      <link>https://community.jmp.com/t5/Discussions/Add-values-to-x-of-lag-rows/m-p/350595#M60015</link>
      <description>&lt;P&gt;I want to fill the previous 48 rows with the value of row i. I've got a dataset that is a continuous timeseries with a row for every 5 min increment of time. I have an identification column for select periods (e.g. ID#1, 2, 3, ... 1000). Not every row gets an identifier, just select periods of time. Now say row 1200 is the first value of ID # 250. I want the previous 48 rows (so rows 1152-1199), currently emply, to also be filled in with the value "250". Anyone know a formula that will do this? I was thinking of some sort of index but not sure how do do it. There is a very clunky way of scripting this that I am trying to avoid... basically just an insanely long formula of If-Then statements but to do that 48 times is a bit silly. I'm looking for some way of using a simple formula .. Row i - Lag-row,48, fill with ID from row i.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that makes sense, let me know if you need more info or clarification&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:24:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Add-values-to-x-of-lag-rows/m-p/350595#M60015</guid>
      <dc:creator>RVhydrA</dc:creator>
      <dc:date>2023-06-10T23:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: Add values to x# of lag rows</title>
      <link>https://community.jmp.com/t5/Discussions/Add-values-to-x-of-lag-rows/m-p/350785#M60034</link>
      <description>&lt;P&gt;This Discussion Item was reworded and solved&amp;nbsp;&lt;A href="https://community.jmp.com/t5/Discussions/Add-values-into-X-number-of-lag-rows/m-p/350637#M60016" target="_self"&gt;here.&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 03:03:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Add-values-to-x-of-lag-rows/m-p/350785#M60034</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-01-19T03:03:31Z</dc:date>
    </item>
  </channel>
</rss>

