<?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 How to refer to a column in Group By() message in Bivariate Platform in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-refer-to-a-column-in-Group-By-message-in-Bivariate/m-p/479345#M72356</link>
    <description>&lt;P&gt;I have a Bivariate Platform scripted like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Fit Group(
	biv = Bivariate( Y(Eval(Y_parameters)), X(Eval(X_parameters)), Group By (groupByColumn[1]),
			SendToReport(...)
	)
)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;where&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Y_Parameters = {"Param1", "Param2"};
X_Parameters = {"Radius"};
groupByColumn = {"Lot ID"};&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;So, it works ONLY if my groupByColumn is a list of strings, and only if I refer to it as groupByColumn[1]&lt;/P&gt;&lt;P&gt;if I say&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;stringGroupByColumn = groupByColumn[1]&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and then use&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Group By (stringGroupByColumn)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;it won't work.&lt;/P&gt;&lt;P&gt;WHY?&lt;/P&gt;&lt;P&gt;If I say&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;groupByColumn = "Lot ID";&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and then use it - it also won't work. WHY?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jun 2023 16:57:05 GMT</pubDate>
    <dc:creator>miguello</dc:creator>
    <dc:date>2023-06-09T16:57:05Z</dc:date>
    <item>
      <title>How to refer to a column in Group By() message in Bivariate Platform</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-refer-to-a-column-in-Group-By-message-in-Bivariate/m-p/479345#M72356</link>
      <description>&lt;P&gt;I have a Bivariate Platform scripted like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Fit Group(
	biv = Bivariate( Y(Eval(Y_parameters)), X(Eval(X_parameters)), Group By (groupByColumn[1]),
			SendToReport(...)
	)
)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;where&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Y_Parameters = {"Param1", "Param2"};
X_Parameters = {"Radius"};
groupByColumn = {"Lot ID"};&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;So, it works ONLY if my groupByColumn is a list of strings, and only if I refer to it as groupByColumn[1]&lt;/P&gt;&lt;P&gt;if I say&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;stringGroupByColumn = groupByColumn[1]&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and then use&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Group By (stringGroupByColumn)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;it won't work.&lt;/P&gt;&lt;P&gt;WHY?&lt;/P&gt;&lt;P&gt;If I say&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;groupByColumn = "Lot ID";&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and then use it - it also won't work. WHY?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 16:57:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-refer-to-a-column-in-Group-By-message-in-Bivariate/m-p/479345#M72356</guid>
      <dc:creator>miguello</dc:creator>
      <dc:date>2023-06-09T16:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to refer to a column in Group By() message in Bivariate Platform</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-refer-to-a-column-in-Group-By-message-in-Bivariate/m-p/479420#M72359</link>
      <description>&lt;P&gt;The reason it does not work is because you are not setting a variable value, but rather you are passing a message to thr Bivariate Platform.&amp;nbsp; The proper syntax is&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Biv &amp;lt;&amp;lt; Group By( :lot ID );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;See the Scripting Index for examples&lt;/P&gt;</description>
      <pubDate>Fri, 15 Apr 2022 00:09:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-refer-to-a-column-in-Group-By-message-in-Bivariate/m-p/479420#M72359</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2022-04-15T00:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to refer to a column in Group By() message in Bivariate Platform</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-refer-to-a-column-in-Group-By-message-in-Bivariate/m-p/479562#M72388</link>
      <description>&lt;P&gt;Ok, what if I don't know the column name and I just picked it from Col List Box?&lt;/P&gt;&lt;P&gt;When I get columns from Col List Box using &amp;lt;&amp;lt; Get Items it returns them as:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Y_Parameters = {"Param1", "Param2"};&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;in case of the Col List Box that I use to cast Group By it only returns one due to the settings of Col List Box, it returns it as this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;groupByColumn = {"SomeRandomColumn"};&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;the only way to use it is&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Group By (groupByColumn[1])&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 15 Apr 2022 16:38:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-refer-to-a-column-in-Group-By-message-in-Bivariate/m-p/479562#M72388</guid>
      <dc:creator>miguello</dc:creator>
      <dc:date>2022-04-15T16:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to refer to a column in Group By() message in Bivariate Platform</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-refer-to-a-column-in-Group-By-message-in-Bivariate/m-p/479563#M72389</link>
      <description>&lt;P&gt;Ok, looks like it works this way:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt; Y_parameters = colListYParameter &amp;lt;&amp;lt; Get Items;
X_parameters = colListXParameter &amp;lt;&amp;lt; Get Items;
groupByColumnNames = colListBox &amp;lt;&amp;lt; Get Items;
groupByColumn = Column(groupByColumnNames [1]);

biv = Bivariate( Y(Eval(Y_parameters)), X(Eval(X_parameters)),Group By (groupByColumn), Fit Spline( 0.1, Standardized), 
			SendToReport(...)
)

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Basically, I wanted to use "clean" variable, that is just a reference to column, without it being a subscript of a string array.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Apr 2022 17:02:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-refer-to-a-column-in-Group-By-message-in-Bivariate/m-p/479563#M72389</guid>
      <dc:creator>miguello</dc:creator>
      <dc:date>2022-04-15T17:02:00Z</dc:date>
    </item>
  </channel>
</rss>

