<?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: Support needed: How to fill variable number of cells in a data table in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Support-needed-How-to-fill-variable-number-of-cells-in-a-data/m-p/440890#M68934</link>
    <description>&lt;P&gt;You can certainly do this with Lag() but you might also be able to do this interactively in JMP (not sure which version gives this option, I'm using JMP16.1... there are also addins to do this).&lt;/P&gt;
&lt;P&gt;Select the column you want to fill&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1638295403825.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/38026iB5E764697BB9D213/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1638295403825.png" alt="jthi_0-1638295403825.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Right click on top of the values and select Fill / Replace Missing with Previous value&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1638295422387.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/38027iE9D65595FB2BD09E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1638295422387.png" alt="jthi_1-1638295422387.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_2-1638295501234.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/38028i0EE1C187BD169F40/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_2-1638295501234.png" alt="jthi_2-1638295501234.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edit:&lt;/P&gt;
&lt;P&gt;With Lag one way to do this is to create new column and use formula like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If(Row() == 1, val = :Status);
If(:Status == "",
	val,
	val = :Status
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_3-1638295726778.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/38029iA7366A8F1CF4DB04/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_3-1638295726778.png" alt="jthi_3-1638295726778.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 30 Nov 2021 18:08:53 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2021-11-30T18:08:53Z</dc:date>
    <item>
      <title>Support needed: How to fill variable number of cells in a data table</title>
      <link>https://community.jmp.com/t5/Discussions/Support-needed-How-to-fill-variable-number-of-cells-in-a-data/m-p/440868#M68933</link>
      <description>&lt;P&gt;Hello JMP Community,&lt;/P&gt;
&lt;P&gt;Attached is a sample data table and the target table that I am aiming for.&lt;/P&gt;
&lt;P&gt;The data table is organized with a parent row and a variable number of child rows under the parent row.&amp;nbsp; The parent row also has a column which indicates the Status of the account (see last column of Sample.jmp).&amp;nbsp; I would like to copy the status of the parent row to the child rows (see last column of TargetFile.jmp).&amp;nbsp; I believe that Lag() is the correct function, I just can't figure out how to deal with variable number of child rows?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks in advance!&lt;/P&gt;
&lt;P&gt;Sincerely,&lt;/P&gt;
&lt;P&gt;MG&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 18:06:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Support-needed-How-to-fill-variable-number-of-cells-in-a-data/m-p/440868#M68933</guid>
      <dc:creator>G_M</dc:creator>
      <dc:date>2023-06-09T18:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: Support needed: How to fill variable number of cells in a data table</title>
      <link>https://community.jmp.com/t5/Discussions/Support-needed-How-to-fill-variable-number-of-cells-in-a-data/m-p/440890#M68934</link>
      <description>&lt;P&gt;You can certainly do this with Lag() but you might also be able to do this interactively in JMP (not sure which version gives this option, I'm using JMP16.1... there are also addins to do this).&lt;/P&gt;
&lt;P&gt;Select the column you want to fill&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1638295403825.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/38026iB5E764697BB9D213/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1638295403825.png" alt="jthi_0-1638295403825.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Right click on top of the values and select Fill / Replace Missing with Previous value&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1638295422387.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/38027iE9D65595FB2BD09E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1638295422387.png" alt="jthi_1-1638295422387.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_2-1638295501234.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/38028i0EE1C187BD169F40/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_2-1638295501234.png" alt="jthi_2-1638295501234.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edit:&lt;/P&gt;
&lt;P&gt;With Lag one way to do this is to create new column and use formula like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If(Row() == 1, val = :Status);
If(:Status == "",
	val,
	val = :Status
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_3-1638295726778.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/38029iA7366A8F1CF4DB04/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_3-1638295726778.png" alt="jthi_3-1638295726778.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2021 18:08:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Support-needed-How-to-fill-variable-number-of-cells-in-a-data/m-p/440890#M68934</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2021-11-30T18:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: Support needed: How to fill variable number of cells in a data table</title>
      <link>https://community.jmp.com/t5/Discussions/Support-needed-How-to-fill-variable-number-of-cells-in-a-data/m-p/440892#M68935</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2021 18:14:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Support-needed-How-to-fill-variable-number-of-cells-in-a-data/m-p/440892#M68935</guid>
      <dc:creator>G_M</dc:creator>
      <dc:date>2021-11-30T18:14:01Z</dc:date>
    </item>
  </channel>
</rss>

