<?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 Table formula in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Table-formula/m-p/408416#M65833</link>
    <description>&lt;P&gt;JMP has something called 'table variables'.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Similarly, how can I create a function linked to a table that can be used as part of a column formula?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 10 Jun 2023 23:35:12 GMT</pubDate>
    <dc:creator>FN</dc:creator>
    <dc:date>2023-06-10T23:35:12Z</dc:date>
    <item>
      <title>Table formula</title>
      <link>https://community.jmp.com/t5/Discussions/Table-formula/m-p/408416#M65833</link>
      <description>&lt;P&gt;JMP has something called 'table variables'.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Similarly, how can I create a function linked to a table that can be used as part of a column formula?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:35:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Table-formula/m-p/408416#M65833</guid>
      <dc:creator>FN</dc:creator>
      <dc:date>2023-06-10T23:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: Table formula</title>
      <link>https://community.jmp.com/t5/Discussions/Table-formula/m-p/408434#M65834</link>
      <description>&lt;P&gt;Referring to Table Variables is done in same way as referring to Columns&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
dt &amp;lt;&amp;lt; New Table Variable("Days", "42");
dt &amp;lt;&amp;lt; New Column("Age+Days", Numeric, Continuous, Formula(:Age + num(:Days)));&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;A href="https://community.jmp.com/t5/Discussions/How-to-reference-a-table-variable-inside-a-table-variable/td-p/257381" target="_blank" rel="noopener"&gt;https://community.jmp.com/t5/Discussions/How-to-reference-a-table-variable-inside-a-table-variable/td-p/257381&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also search &lt;A href="https://www.jmp.com/content/dam/jmp/documents/en/support/jmp161/scripting-guide.pdf" target="_blank" rel="noopener"&gt;Scripting Guide&lt;/A&gt; for Table Variable for more info such as:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Table Variables&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Table variables are for storing a single text string value, such as "Notes".&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It also has info on the name resolution ordering (if you have same name in column and table variable, column will be preferred over table variable)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit:&lt;/P&gt;&lt;P&gt;If you want to have functions which can be used in formulas, you can directly write them into the formulas, but I would suggest creating custom formulas:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.jmp.com/support/help/en/16.1/index.shtml#page/jmp/create-custom-functions-transforms-and-formats.shtml#ww1472209" target="_blank" rel="noopener"&gt;Create Custom Functions&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Aug 2021 19:04:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Table-formula/m-p/408434#M65834</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2021-08-10T19:04:22Z</dc:date>
    </item>
  </channel>
</rss>

