<?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: Number by Count in Other Columns in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Number-by-Count-in-Other-Columns/m-p/717971#M89965</link>
    <description>&lt;P&gt;Using &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="_blank" rel="noopener"&gt;Col Cumulative Sum()&lt;/A&gt; is one option&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Col Cumulative Sum(1, :Sample, :Test)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;A href="https://www.jmp.com/support/help/en/17.2/#page/jmp/statistical-functions-2.shtml?os=win&amp;amp;source=application#ww2752649" target="_blank" rel="noopener"&gt;Col Rank()&lt;/A&gt; is also an option&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Col Rank(:Sample, :Sample, :Test)
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Full example with your table&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = New Table("Untitled 2",
	Add Rows(10),
	Compress File When Saved(1),
	New Column("Sample",
		Character,
		"Nominal",
		Set Values({"A", "A", "A", "A", "B", "B", "C", "C", "C", "C"})
	),
	New Column("Test",
		Character(16),
		"Nominal",
		Set Values({"one", "one", "two", "two", "one", "two", "one", "one", "two", "two"})
	),
	New Column("Run Number",
		Numeric,
		"Continuous",
		Format("Best", 12),
		Set Values([1, 2, 1, 2, 1, 1, 1, 2, 1, 2])
	)
);

dt &amp;lt;&amp;lt; New Column("RN", Numeric, Ordinal, Formula(
	Col Cumulative Sum(1, :Sample, :Test)
));&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 19 Jan 2024 16:37:10 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2024-01-19T16:37:10Z</dc:date>
    <item>
      <title>Number by Count in Other Columns</title>
      <link>https://community.jmp.com/t5/Discussions/Number-by-Count-in-Other-Columns/m-p/717970#M89964</link>
      <description>&lt;P&gt;I want to create a formula in a new column, Run Number, to count based off other columns. For example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample&amp;nbsp; &amp;nbsp; &amp;nbsp;Test&amp;nbsp; &amp;nbsp; &amp;nbsp; Run Number&lt;/P&gt;&lt;P&gt;A&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; one&amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/P&gt;&lt;P&gt;A&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; one&amp;nbsp; &amp;nbsp; &amp;nbsp; 2&lt;/P&gt;&lt;P&gt;A&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; two&amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/P&gt;&lt;P&gt;A&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; two&amp;nbsp; &amp;nbsp; &amp;nbsp; 2&lt;/P&gt;&lt;P&gt;B&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;one&amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/P&gt;&lt;P&gt;B&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;two&amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/P&gt;&lt;P&gt;C&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;one&amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;&lt;P&gt;C&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;one&amp;nbsp; &amp;nbsp; &amp;nbsp;2&lt;/P&gt;&lt;P&gt;C&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;two&amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;&lt;P&gt;C&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;two&amp;nbsp; &amp;nbsp; &amp;nbsp;2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2024 16:29:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Number-by-Count-in-Other-Columns/m-p/717970#M89964</guid>
      <dc:creator>JMPUser9</dc:creator>
      <dc:date>2024-01-19T16:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: Number by Count in Other Columns</title>
      <link>https://community.jmp.com/t5/Discussions/Number-by-Count-in-Other-Columns/m-p/717971#M89965</link>
      <description>&lt;P&gt;Using &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="_blank" rel="noopener"&gt;Col Cumulative Sum()&lt;/A&gt; is one option&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Col Cumulative Sum(1, :Sample, :Test)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;A href="https://www.jmp.com/support/help/en/17.2/#page/jmp/statistical-functions-2.shtml?os=win&amp;amp;source=application#ww2752649" target="_blank" rel="noopener"&gt;Col Rank()&lt;/A&gt; is also an option&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Col Rank(:Sample, :Sample, :Test)
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Full example with your table&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = New Table("Untitled 2",
	Add Rows(10),
	Compress File When Saved(1),
	New Column("Sample",
		Character,
		"Nominal",
		Set Values({"A", "A", "A", "A", "B", "B", "C", "C", "C", "C"})
	),
	New Column("Test",
		Character(16),
		"Nominal",
		Set Values({"one", "one", "two", "two", "one", "two", "one", "one", "two", "two"})
	),
	New Column("Run Number",
		Numeric,
		"Continuous",
		Format("Best", 12),
		Set Values([1, 2, 1, 2, 1, 1, 1, 2, 1, 2])
	)
);

dt &amp;lt;&amp;lt; New Column("RN", Numeric, Ordinal, Formula(
	Col Cumulative Sum(1, :Sample, :Test)
));&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 19 Jan 2024 16:37:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Number-by-Count-in-Other-Columns/m-p/717971#M89965</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-01-19T16:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: Number by Count in Other Columns</title>
      <link>https://community.jmp.com/t5/Discussions/Number-by-Count-in-Other-Columns/m-p/717977#M89966</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/48335"&gt;@JMPUser9&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp;has provided an excellent answer.&lt;/P&gt;
&lt;P&gt;However, the answer to this question has been answered multiple times before in the Discussion Community.&amp;nbsp; I request that before a request is submitted that a search is made to the past Discussions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I did a search on "Count" and it returned several related responses.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2024 17:17:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Number-by-Count-in-Other-Columns/m-p/717977#M89966</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-01-19T17:17:55Z</dc:date>
    </item>
  </channel>
</rss>

