<?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: Summary function doesn't work after adding statistics argument in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Summary-function-doesn-t-work-after-adding-statistics-argument/m-p/530722#M75397</link>
    <description>&lt;P&gt;There is not a column called&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;"Variance(Mreg (nm))"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;in the S1 data table it is called&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;"Mreg (nm)"&lt;/LI-CODE&gt;
&lt;P&gt;Here is the code that should work&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Data Table("S1");

dt2 = dt &amp;lt;&amp;lt;
Summary(
	Group( :Name( "Date-Time" ), :Lot, :Test ID, :Test Label, :Field X, :Field Y ),
	Variance( :Name( "Mreg (nm)" ) ),
	Link to original data table(0)
);

dt3 = dt &amp;lt;&amp;lt; Summary(
	Group( :Name( "Date-Time" ), :Lot, :Test Label ),
	Mean( :Name( "(Mreg (nm))" ) ),
	Freq( "None" ),
	Weight( "None" )
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 05 Aug 2022 01:30:36 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2022-08-05T01:30:36Z</dc:date>
    <item>
      <title>Summary function doesn't work after adding statistics argument</title>
      <link>https://community.jmp.com/t5/Discussions/Summary-function-doesn-t-work-after-adding-statistics-argument/m-p/530688#M75393</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I got a question on my script about generating Summary Table, and here is what I did.&lt;/P&gt;&lt;P&gt;1. created a Summary table by JSL, call it S1 table&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt&amp;lt;&amp;lt;
Summary(
	Group( :Name( "Date-Time" ), :Lot, :Test ID, :Test Label, :Field X, :Field Y ),
	Variance( :Name( "Mreg (nm)" ) ),

);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;2. trying to create another Summary table (S2) based on S1 with the following JSL&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt&amp;lt;&amp;lt; Summary(
	Group( :Name( "Date-Time" ), :Lot, :Test Label ),
	Mean( :Name( "Variance(Mreg (nm))" ) ),
	Freq( "None" ),
	Weight( "None" )
)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;It didn't work with error "Column not found in access or evaluation of 'Bad Argument'"&lt;/P&gt;&lt;P&gt;3. I deleted the line of statistics argument, then it worked to generate S2&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt&amp;lt;&amp;lt; Summary(
	Group( :Name( "Date-Time" ), :Lot, :Test Label ),
	Freq( "None" ),
	Weight( "None" )
)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;All scripts above were copied from auto-generated script (meaning I manually performed operations I want and copied the source script).&lt;/P&gt;&lt;P&gt;Would anyone have idea why?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Zihao&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 17:06:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Summary-function-doesn-t-work-after-adding-statistics-argument/m-p/530688#M75393</guid>
      <dc:creator>Zihao</dc:creator>
      <dc:date>2023-06-09T17:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: Summary function doesn't work after adding statistics argument</title>
      <link>https://community.jmp.com/t5/Discussions/Summary-function-doesn-t-work-after-adding-statistics-argument/m-p/530722#M75397</link>
      <description>&lt;P&gt;There is not a column called&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;"Variance(Mreg (nm))"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;in the S1 data table it is called&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;"Mreg (nm)"&lt;/LI-CODE&gt;
&lt;P&gt;Here is the code that should work&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Data Table("S1");

dt2 = dt &amp;lt;&amp;lt;
Summary(
	Group( :Name( "Date-Time" ), :Lot, :Test ID, :Test Label, :Field X, :Field Y ),
	Variance( :Name( "Mreg (nm)" ) ),
	Link to original data table(0)
);

dt3 = dt &amp;lt;&amp;lt; Summary(
	Group( :Name( "Date-Time" ), :Lot, :Test Label ),
	Mean( :Name( "(Mreg (nm))" ) ),
	Freq( "None" ),
	Weight( "None" )
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2022 01:30:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Summary-function-doesn-t-work-after-adding-statistics-argument/m-p/530722#M75397</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2022-08-05T01:30:36Z</dc:date>
    </item>
  </channel>
</rss>

