<?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: How Formula works in New Column Function in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-Formula-works-in-New-Column-Function/m-p/676805#M86335</link>
    <description>&lt;P&gt;Regarding formulas in JMP&amp;nbsp;&lt;A href="https://www.jmp.com/support/help/en/17.1/index.shtml#page/jmp/create-formulas-in-jmp.shtml#" target="_blank" rel="noopener"&gt;Using JMP &amp;gt; Create Formulas in JMP&lt;/A&gt;&amp;nbsp;. Other option to create Cumulative Sum could be to use &lt;A href="https://www.jmp.com/support/help/en/17.2/#page/jmp/statistical-functions-2.shtml?os=win&amp;amp;source=application#ww6133039" target="_self"&gt;Col Cumulative Sum()&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 12 Sep 2023 11:33:37 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2023-09-12T11:33:37Z</dc:date>
    <item>
      <title>How Formula works in New Column Function</title>
      <link>https://community.jmp.com/t5/Discussions/How-Formula-works-in-New-Column-Function/m-p/676798#M86333</link>
      <description>&lt;PRE class="language-jsl"&gt;&lt;CODE&gt;dt = Open( "$SAMPLE_DATA\Big Class.jmp" );
New Column("Sum",
"Numeric",
"Continuous",
Set Formula(If(Row() == 1, :Height, Lag(:Sum,1) + :Height))
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code above creates Sum column with calculated the accumulative sum. I am new to JSL so could someone explain me how the Formula command works. Is it scan one by one row in the column so that we can write :Height instead of constructing a For-loop with [i] which indicates the position of the current rows.&lt;/P&gt;&lt;P&gt;And have any other ways to do this cumsum?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2023 11:25:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-Formula-works-in-New-Column-Function/m-p/676798#M86333</guid>
      <dc:creator>hmm</dc:creator>
      <dc:date>2023-09-12T11:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: How Formula works in New Column Function</title>
      <link>https://community.jmp.com/t5/Discussions/How-Formula-works-in-New-Column-Function/m-p/676805#M86335</link>
      <description>&lt;P&gt;Regarding formulas in JMP&amp;nbsp;&lt;A href="https://www.jmp.com/support/help/en/17.1/index.shtml#page/jmp/create-formulas-in-jmp.shtml#" target="_blank" rel="noopener"&gt;Using JMP &amp;gt; Create Formulas in JMP&lt;/A&gt;&amp;nbsp;. Other option to create Cumulative Sum could be to use &lt;A href="https://www.jmp.com/support/help/en/17.2/#page/jmp/statistical-functions-2.shtml?os=win&amp;amp;source=application#ww6133039" target="_self"&gt;Col Cumulative Sum()&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2023 11:33:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-Formula-works-in-New-Column-Function/m-p/676805#M86335</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-09-12T11:33:37Z</dc:date>
    </item>
  </channel>
</rss>

