<?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: Problem of create column in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Problem-of-create-column/m-p/42036#M24508</link>
    <description>&lt;P&gt;Is it possible that your summary table is still linked to the raw data table and that is causing your issue?&lt;/P&gt;
&lt;P&gt;I tried your code with a mocked up version of your data table and had no issue with the code.&lt;/P&gt;</description>
    <pubDate>Sat, 15 Jul 2017 13:25:52 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2017-07-15T13:25:52Z</dc:date>
    <item>
      <title>Problem of create column</title>
      <link>https://community.jmp.com/t5/Discussions/Problem-of-create-column/m-p/42031#M24503</link>
      <description>&lt;P&gt;Hi, all&lt;BR /&gt;I had face a very simple problem which is create the column.&lt;BR /&gt;When I single run the below code, it come out this error in the log&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Try(dt_firstseq_summary &amp;lt;&amp;lt; Delete Column( "Percent" ) );
dt_firstseq_summary &amp;lt;&amp;lt; New Column( "Percent",
	Numeric,
	Continuous,
	Format( "Best", 8 ),
	Formula( :Name("Total_Tested") / Col Sum(:Total_Tested) )
);
dt_firstseq_summary :name( "Percent" ) &amp;lt;&amp;lt; Delete formula;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Error:&lt;/P&gt;&lt;P&gt;Send Expects Scriptable Object in access or evaluation of 'Send' , dt_firstseq_summary &amp;lt;&amp;lt; /*###*/New Column( "Percent",&lt;BR /&gt;Numeric,&lt;BR /&gt;Continuous,&lt;BR /&gt;Format( "Best", 8 ),&lt;BR /&gt;Formula( :Total_Tested / Col Sum( :Total_Tested ) )&lt;BR /&gt;) /*###*/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the following script, error marked by /*###*/&lt;BR /&gt;Try( dt_firstseq_summary &amp;lt;&amp;lt; Delete Column( "Percent" ) );&lt;BR /&gt;dt_firstseq_summary &amp;lt;&amp;lt; /*###*/New Column( "Percent",&lt;BR /&gt;Numeric,&lt;BR /&gt;Continuous,&lt;BR /&gt;Format( "Best", 8 ),&lt;BR /&gt;Formula( :Total_Tested / Col Sum( :Total_Tested ) )&lt;BR /&gt;) /*###*/;&lt;BR /&gt;dt_firstseq_summary:Percent &amp;lt;&amp;lt; Delete formula;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when I run my whole program, it able to create the column in data table, but the percent column cannot calculate the value.See photo below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="photo01.png" style="width: 174px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/6796iF4541173FA20BC73/image-size/large?v=v2&amp;amp;px=999" role="button" title="photo01.png" alt="photo01.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Error:&lt;/P&gt;&lt;P&gt;Column Percent Formula Interrupted&lt;BR /&gt;Name Unresolved: Total_Tested 1 times At rows: 2 Operation: Total_Tested, :Total_Tested/*###*/&lt;BR /&gt;Formula evaluation errors have been ignored&lt;/P&gt;&lt;P&gt;May I know how to fix it?&lt;/P&gt;&lt;P&gt;Any answer is appreciate.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Sat, 15 Jul 2017 11:12:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Problem-of-create-column/m-p/42031#M24503</guid>
      <dc:creator>blue1994</dc:creator>
      <dc:date>2017-07-15T11:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: Problem of create column</title>
      <link>https://community.jmp.com/t5/Discussions/Problem-of-create-column/m-p/42036#M24508</link>
      <description>&lt;P&gt;Is it possible that your summary table is still linked to the raw data table and that is causing your issue?&lt;/P&gt;
&lt;P&gt;I tried your code with a mocked up version of your data table and had no issue with the code.&lt;/P&gt;</description>
      <pubDate>Sat, 15 Jul 2017 13:25:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Problem-of-create-column/m-p/42036#M24508</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-07-15T13:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem of create column</title>
      <link>https://community.jmp.com/t5/Discussions/Problem-of-create-column/m-p/42039#M24511</link>
      <description>&lt;P&gt;Hi, Jim&lt;BR /&gt;Yes, the summary table will linked with raw data table.&lt;/P&gt;&lt;P&gt;I will try again.&lt;/P&gt;&lt;P&gt;Thanks for help.&lt;/P&gt;</description>
      <pubDate>Sat, 15 Jul 2017 23:54:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Problem-of-create-column/m-p/42039#M24511</guid>
      <dc:creator>blue1994</dc:creator>
      <dc:date>2017-07-15T23:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: Problem of create column</title>
      <link>https://community.jmp.com/t5/Discussions/Problem-of-create-column/m-p/42049#M24519</link>
      <description>&lt;P&gt;Hi, everyone&lt;BR /&gt;I now able to join the 2 data table together into one data table.(combined data table)&lt;BR /&gt;But now my problem is how to create another new column into the combined data table?&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my join script to join 2 data table together:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt_firstseq_summary &amp;lt;&amp;lt; Join(
	With(dt_final_summary),
	Select( :S_B_Name, :N Rows, :Name( "Percent" ) ),
	SelectWith( :S_B_Name, :N Rows, :Name( "Percent" ) ),
	By Matching Columns( :S_B_Name = :S_B_Name ),
	Preserve Main Table Order();
	Output Table Name("Combined Table");
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2017 23:44:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Problem-of-create-column/m-p/42049#M24519</guid>
      <dc:creator>blue1994</dc:creator>
      <dc:date>2017-07-17T23:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: Problem of create column</title>
      <link>https://community.jmp.com/t5/Discussions/Problem-of-create-column/m-p/42055#M24524</link>
      <description>&lt;P&gt;Save the data table&amp;nbsp;reference that is returned from the join operation. Then use it to send messages to create the new column&amp;nbsp; that you want. Like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt_joined = dt_firstseq_summary &amp;lt;&amp;lt; Join(
	With(dt_final_summary),
	Select( :S_B_Name, :N Rows, :Name( "Percent" ) ),
	SelectWith( :S_B_Name, :N Rows, :Name( "Percent" ) ),
	By Matching Columns( :S_B_Name = :S_B_Name ),
	Preserve Main Table Order();
	Output Table Name("Combined Table");
);
dt_joined &amp;lt;&amp;lt; New Column( ... ):&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 17 Jul 2017 13:12:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Problem-of-create-column/m-p/42055#M24524</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2017-07-17T13:12:49Z</dc:date>
    </item>
  </channel>
</rss>

