<?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 Evaluation column name from the list in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Evaluation-column-name-from-the-list/m-p/579038#M78641</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've a list which contains numeric row values. I want to generate Variability plot based on the row values in list. I tried using Eval but something doesn't seem to work. Can someone assist?&lt;/P&gt;&lt;P&gt;Here's my code&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
Clear Globals();

dt = Data Table( "Untitled 910" );

dt2 = Data Table( "Soft Bin Summary" );

dad = dt2&amp;lt;&amp;lt; get column names(strings);

r = dt &amp;lt;&amp;lt; Get Rows Where( :Yield AlertType == "Wafer" );
bin = dt:Yield iBin[r];
Isocol = {};

For(i = 1, i &amp;lt;= N Items(bin), i++,
 
	Insert Into(Isocol, Char(bin[i])));

aa_refs = Associative Array( dt:Yield iBin[r], dt:Yield fLimit[r] );



vc2 = dt2 &amp;lt;&amp;lt; Variability Chart(
	Y( Eval((Isocol))  ),
	X( :WaferID ),
	Analysis Type( "Choose best analysis (EMS REML Bayesian)" ),
	Show Range Bars( 0 ),
	Std Dev Chart( 0 ),
	Points Jittered( 1 ), 

);

For( i = 1, i &amp;lt;= N Items( Isocol ), i++,
If( Contains( aa_refs, Isocol[i] ),
Report( vc2[i] )[Framebox( 1 )] &amp;lt;&amp;lt; DispatchSeg( CustomStreamSeg( 3 ), {Line Width( 2 )} );
Report( vc2[i] )[AxisBox( 1 )] &amp;lt;&amp;lt; {Add Ref Line( aa_refs[Isocol[i]], "Solid", "Dark Green", "T", 2 )};
)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 09 Jun 2023 16:04:12 GMT</pubDate>
    <dc:creator>Jackie_</dc:creator>
    <dc:date>2023-06-09T16:04:12Z</dc:date>
    <item>
      <title>Evaluation column name from the list</title>
      <link>https://community.jmp.com/t5/Discussions/Evaluation-column-name-from-the-list/m-p/579038#M78641</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've a list which contains numeric row values. I want to generate Variability plot based on the row values in list. I tried using Eval but something doesn't seem to work. Can someone assist?&lt;/P&gt;&lt;P&gt;Here's my code&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
Clear Globals();

dt = Data Table( "Untitled 910" );

dt2 = Data Table( "Soft Bin Summary" );

dad = dt2&amp;lt;&amp;lt; get column names(strings);

r = dt &amp;lt;&amp;lt; Get Rows Where( :Yield AlertType == "Wafer" );
bin = dt:Yield iBin[r];
Isocol = {};

For(i = 1, i &amp;lt;= N Items(bin), i++,
 
	Insert Into(Isocol, Char(bin[i])));

aa_refs = Associative Array( dt:Yield iBin[r], dt:Yield fLimit[r] );



vc2 = dt2 &amp;lt;&amp;lt; Variability Chart(
	Y( Eval((Isocol))  ),
	X( :WaferID ),
	Analysis Type( "Choose best analysis (EMS REML Bayesian)" ),
	Show Range Bars( 0 ),
	Std Dev Chart( 0 ),
	Points Jittered( 1 ), 

);

For( i = 1, i &amp;lt;= N Items( Isocol ), i++,
If( Contains( aa_refs, Isocol[i] ),
Report( vc2[i] )[Framebox( 1 )] &amp;lt;&amp;lt; DispatchSeg( CustomStreamSeg( 3 ), {Line Width( 2 )} );
Report( vc2[i] )[AxisBox( 1 )] &amp;lt;&amp;lt; {Add Ref Line( aa_refs[Isocol[i]], "Solid", "Dark Green", "T", 2 )};
)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Jun 2023 16:04:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Evaluation-column-name-from-the-list/m-p/579038#M78641</guid>
      <dc:creator>Jackie_</dc:creator>
      <dc:date>2023-06-09T16:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluation column name from the list</title>
      <link>https://community.jmp.com/t5/Discussions/Evaluation-column-name-from-the-list/m-p/579092#M78642</link>
      <description>&lt;P&gt;You have one "column" in Isocol which isn't found from dt2, "0".&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2022 20:09:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Evaluation-column-name-from-the-list/m-p/579092#M78642</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-12-08T20:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluation column name from the list</title>
      <link>https://community.jmp.com/t5/Discussions/Evaluation-column-name-from-the-list/m-p/579093#M78643</link>
      <description>&lt;P&gt;We can neglect that 0 value&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2022 20:14:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Evaluation-column-name-from-the-list/m-p/579093#M78643</guid>
      <dc:creator>Jackie_</dc:creator>
      <dc:date>2022-12-08T20:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluation column name from the list</title>
      <link>https://community.jmp.com/t5/Discussions/Evaluation-column-name-from-the-list/m-p/579097#M78644</link>
      <description>&lt;P&gt;If I delete the "0" from Isocol I do get Variability charts created just fine?&lt;/P&gt;
&lt;P&gt;For lines you are comparing characters and numeric values and Contains won't find any matches. Also for some reason you have to divide your aa_ref values by 100&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Data Table("Untitled 910");
dt2 = Data Table("Soft Bin Summary");

dad = dt2 &amp;lt;&amp;lt; get column names(strings);

r = dt &amp;lt;&amp;lt; Get Rows Where(:Yield AlertType == "Wafer");
bin = dt:Yield iBin[r];
Isocol = {};

// 0 is last value, so we won't include it
For(i = 1, i &amp;lt; N Items(bin), i++, 
	Insert Into(Isocol, Char(bin[i]))
);

aa_refs = Associative Array(bin, dt:Yield fLimit[r]);

vc2 = dt2 &amp;lt;&amp;lt; Variability Chart(
	Y(Eval((Isocol))),
	X(:WaferID),
	Analysis Type("Choose best analysis (EMS REML Bayesian)"),
	Show Range Bars(0),
	Std Dev Chart(0),
	Points Jittered(1), 
);

For(i = 1, i &amp;lt; N Items(Isocol), i++,
	If(Contains(aa_refs, Num(Isocol[i])),
		Report(vc2[i])[Framebox(1)] &amp;lt;&amp;lt; DispatchSeg(CustomStreamSeg(3), {Line Width(2)});
		Report(vc2[i])[AxisBox(1)] &amp;lt;&amp;lt; {Add Ref Line(aa_refs[Num(Isocol[i])] / 100, "Solid", "Dark Green", "T", 2)};
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 08 Dec 2022 20:33:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Evaluation-column-name-from-the-list/m-p/579097#M78644</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-12-08T20:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluation column name from the list</title>
      <link>https://community.jmp.com/t5/Discussions/Evaluation-column-name-from-the-list/m-p/579171#M78650</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp;. I am still trying to get ref line fixed&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 02:35:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Evaluation-column-name-from-the-list/m-p/579171#M78650</guid>
      <dc:creator>Jackie_</dc:creator>
      <dc:date>2022-12-09T02:35:53Z</dc:date>
    </item>
  </channel>
</rss>

