<?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 Get column value related to another column minimum in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Get-column-value-related-to-another-column-minimum/m-p/606507#M80848</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am looking for easier way (without scripting) for extract the X column value of Y axis minimum for each plot/charts.&lt;/P&gt;&lt;P&gt;I have N columns chart, the first column is the X axis. the other is sets of measurements\reading.&lt;/P&gt;&lt;P&gt;I want to get the X value which related to each set of plots.&lt;/P&gt;&lt;P&gt;I did it by script but i want to know if there is an easier way.&lt;/P&gt;&lt;P&gt;attached example for data format.&lt;/P&gt;&lt;P&gt;following the script I wrote. that may help to understand the result I want.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt=Current Data Table();
ds=New Table();
ds&amp;lt;&amp;lt;New Column("X axis");
ds&amp;lt;&amp;lt;New Column("Min value");
for(i=2,i&amp;lt;=ncols(dt),i++,	
min=100;
minRow=1;
	for(j=1,j&amp;lt;=nrows(dt),j++,
	if(column(dt,i)[j]&amp;lt;min, min=column(dt,i)[j]; minRow=column(dt,1)[j]);
);
ds&amp;lt;&amp;lt;add row(1);
	column(ds,1)[i-1]=minRow;
	column(ds,2)[i-1]=min;
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Yoav&lt;/P&gt;</description>
    <pubDate>Thu, 08 Jun 2023 16:32:42 GMT</pubDate>
    <dc:creator>YGerchman</dc:creator>
    <dc:date>2023-06-08T16:32:42Z</dc:date>
    <item>
      <title>Get column value related to another column minimum</title>
      <link>https://community.jmp.com/t5/Discussions/Get-column-value-related-to-another-column-minimum/m-p/606507#M80848</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am looking for easier way (without scripting) for extract the X column value of Y axis minimum for each plot/charts.&lt;/P&gt;&lt;P&gt;I have N columns chart, the first column is the X axis. the other is sets of measurements\reading.&lt;/P&gt;&lt;P&gt;I want to get the X value which related to each set of plots.&lt;/P&gt;&lt;P&gt;I did it by script but i want to know if there is an easier way.&lt;/P&gt;&lt;P&gt;attached example for data format.&lt;/P&gt;&lt;P&gt;following the script I wrote. that may help to understand the result I want.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt=Current Data Table();
ds=New Table();
ds&amp;lt;&amp;lt;New Column("X axis");
ds&amp;lt;&amp;lt;New Column("Min value");
for(i=2,i&amp;lt;=ncols(dt),i++,	
min=100;
minRow=1;
	for(j=1,j&amp;lt;=nrows(dt),j++,
	if(column(dt,i)[j]&amp;lt;min, min=column(dt,i)[j]; minRow=column(dt,1)[j]);
);
ds&amp;lt;&amp;lt;add row(1);
	column(ds,1)[i-1]=minRow;
	column(ds,2)[i-1]=min;
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Yoav&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 16:32:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Get-column-value-related-to-another-column-minimum/m-p/606507#M80848</guid>
      <dc:creator>YGerchman</dc:creator>
      <dc:date>2023-06-08T16:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: Get column value related to another column minimum</title>
      <link>https://community.jmp.com/t5/Discussions/Get-column-value-related-to-another-column-minimum/m-p/606959#M80876</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a point-and-click way; it is actually pretty efficient.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) Stack the table: place the y columns into "Stack Columns", type "Y min" into the 'Stacked Data Column' text edit box. Hit OK.&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="brady_brady_0-1677722519246.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/50593iE2BBA1835C0BF3AB/image-size/large?v=v2&amp;amp;px=999" role="button" title="brady_brady_0-1677722519246.png" alt="brady_brady_0-1677722519246.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) In the stacked table, select the Label&amp;nbsp; and Ymin columns, right-click on the blue-shaded column header, and select Sort &amp;gt; Ascending&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="brady_brady_1-1677722623801.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/50594iE91A1E135DE32888/image-size/large?v=v2&amp;amp;px=999" role="button" title="brady_brady_1-1677722623801.png" alt="brady_brady_1-1677722623801.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3) Select just the Label column, then select from the main menu Rows &amp;gt; Row Selection &amp;gt; Select Duplicate Rows&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="brady_brady_2-1677722925815.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/50595iF5A7FBEDBA07D194/image-size/medium?v=v2&amp;amp;px=400" role="button" title="brady_brady_2-1677722925815.png" alt="brady_brady_2-1677722925815.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;4) Right-click in the blue region of the selected rows and select Delete Rows&amp;nbsp;&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="brady_brady_3-1677724442126.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/50596i8AFE742C6405C51A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="brady_brady_3-1677724442126.png" alt="brady_brady_3-1677724442126.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The resulting table has the desired summary info:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="brady_brady_4-1677724496049.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/50597i6A4ECF15792CE030/image-size/medium?v=v2&amp;amp;px=400" role="button" title="brady_brady_4-1677724496049.png" alt="brady_brady_4-1677724496049.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2023 02:36:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Get-column-value-related-to-another-column-minimum/m-p/606959#M80876</guid>
      <dc:creator>brady_brady</dc:creator>
      <dc:date>2023-03-02T02:36:16Z</dc:date>
    </item>
  </channel>
</rss>

