<?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: Need to populate no of unique entery in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Need-to-populate-no-of-unique-entery/m-p/916519#M107693</link>
    <description>&lt;P&gt;I don't have JMP 19, so no Col N Unique(), but I think this gets you what you want.&amp;nbsp; As Constant() makes the evaluation much faster.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;As Constant( Length( Associative Array( :SN[Where( :Flagged == "Yes" )] ) &amp;lt;&amp;lt; Get Keys ) )&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 03 Dec 2025 19:22:25 GMT</pubDate>
    <dc:creator>mmarchandFSLR</dc:creator>
    <dc:date>2025-12-03T19:22:25Z</dc:date>
    <item>
      <title>Need to populate no of unique entery</title>
      <link>https://community.jmp.com/t5/Discussions/Need-to-populate-no-of-unique-entery/m-p/916504#M107689</link>
      <description>&lt;P&gt;I need to populate no of unique entries in a new column if Flagged="Yes". When I use Col N Unique formula I get Different count if&amp;nbsp;Flagged="No".&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ConfidenceOwl94_0-1764787706153.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/88192iDAC2E6B8BA557426/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ConfidenceOwl94_0-1764787706153.png" alt="ConfidenceOwl94_0-1764787706153.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Dec 2025 18:48:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Need-to-populate-no-of-unique-entery/m-p/916504#M107689</guid>
      <dc:creator>ConfidenceOwl94</dc:creator>
      <dc:date>2025-12-03T18:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: Need to populate no of unique entery</title>
      <link>https://community.jmp.com/t5/Discussions/Need-to-populate-no-of-unique-entery/m-p/916515#M107690</link>
      <description>&lt;P&gt;You are using Flagged == "Yes" as grouping "column" so it will calculate separate unique values for Yes and No.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Dec 2025 18:54:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Need-to-populate-no-of-unique-entery/m-p/916515#M107690</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-12-03T18:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: Need to populate no of unique entery</title>
      <link>https://community.jmp.com/t5/Discussions/Need-to-populate-no-of-unique-entery/m-p/916516#M107691</link>
      <description>&lt;P&gt;Any suggestion for how to populate Yes calculation in entire column?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Dec 2025 18:56:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Need-to-populate-no-of-unique-entery/m-p/916516#M107691</guid>
      <dc:creator>ConfidenceOwl94</dc:creator>
      <dc:date>2025-12-03T18:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: Need to populate no of unique entery</title>
      <link>https://community.jmp.com/t5/Discussions/Need-to-populate-no-of-unique-entery/m-p/916519#M107693</link>
      <description>&lt;P&gt;I don't have JMP 19, so no Col N Unique(), but I think this gets you what you want.&amp;nbsp; As Constant() makes the evaluation much faster.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;As Constant( Length( Associative Array( :SN[Where( :Flagged == "Yes" )] ) &amp;lt;&amp;lt; Get Keys ) )&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 03 Dec 2025 19:22:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Need-to-populate-no-of-unique-entery/m-p/916519#M107693</guid>
      <dc:creator>mmarchandFSLR</dc:creator>
      <dc:date>2025-12-03T19:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: Need to populate no of unique entery</title>
      <link>https://community.jmp.com/t5/Discussions/Need-to-populate-no-of-unique-entery/m-p/916522#M107694</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Current Data Table() &amp;lt;&amp;lt; NEW COLUMN("A", Numeric, Formula(
	Col Sum(If(:Column 2 == "y" &amp;amp; Row() == Col Min(Row(), :Column 1), 1, 0))
));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I don't use JMP19 so I'm not that familiar with Col N Unique but maybe something like this&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Current Data Table() &amp;lt;&amp;lt; NEW COLUMN("A", Numeric, Formula(
	Col Max(If(:Column 2 == "y", Col N Unique(:Column 1, :Column 2), .))
));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Column 1 is SN and Column 2 is flagged&lt;/P&gt;</description>
      <pubDate>Wed, 03 Dec 2025 19:54:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Need-to-populate-no-of-unique-entery/m-p/916522#M107694</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-12-03T19:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: Need to populate no of unique entery</title>
      <link>https://community.jmp.com/t5/Discussions/Need-to-populate-no-of-unique-entery/m-p/917358#M107696</link>
      <description>&lt;P&gt;The &lt;FONT face="courier new,courier"&gt;Col N unique()&lt;/FONT&gt; function is so helpful!&lt;BR /&gt;It makes many analyses much easier.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I hope,&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1764800147491.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/88206i05E68120B2846B6F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1764800147491.png" alt="hogi_0-1764800147491.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;will work in JMP 19.x.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Looks straight forward- but at the moment this doesn't work &lt;BR /&gt;-&amp;nbsp; unfortunately, Col N Unique() behaved different to the other &lt;FONT face="courier new,courier"&gt;col ...&lt;/FONT&gt; aggregations:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_1-1764800227423.png" style="width: 924px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/88207i99E0976784178988/image-dimensions/924x127?v=v2" width="924" height="127" role="button" title="hogi_1-1764800227423.png" alt="hogi_1-1764800227423.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;[from&amp;nbsp;&amp;nbsp;&lt;LI-MESSAGE title="Tiny Traps in Jmp and JSL" uid="702685" url="https://community.jmp.com/t5/Discussions/Tiny-Traps-in-Jmp-and-JSL/m-p/702685#U702685" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;].&lt;/P&gt;</description>
      <pubDate>Wed, 03 Dec 2025 22:27:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Need-to-populate-no-of-unique-entery/m-p/917358#M107696</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-12-03T22:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: Need to populate no of unique entery</title>
      <link>https://community.jmp.com/t5/Discussions/Need-to-populate-no-of-unique-entery/m-p/917359#M107697</link>
      <description>&lt;P&gt;Other details you should be aware of:&lt;BR /&gt;&lt;LI-MESSAGE title="Col score &amp;amp;amp; Col N unique" uid="905815" url="https://community.jmp.com/t5/Discussions/Col-score-amp-Col-N-unique/m-p/905815#U905815" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Dec 2025 22:25:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Need-to-populate-no-of-unique-entery/m-p/917359#M107697</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-12-03T22:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: Need to populate no of unique entery</title>
      <link>https://community.jmp.com/t5/Discussions/Need-to-populate-no-of-unique-entery/m-p/917390#M107700</link>
      <description>&lt;P&gt;txnelson edit: This is not a solution.&amp;nbsp; See &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/26800"&gt;@hogi&lt;/a&gt;&amp;nbsp; answer below.&lt;/P&gt;
&lt;P&gt;Here is how I would do it:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Current Data Table() &amp;lt;&amp;lt; New Column( "A",
	Numeric,
	Formula(
		As Constant(
			theCount = N Rows(
				Current Data Table() &amp;lt;&amp;lt;
				get rows where( :column 2 == "y" )
			)
		);
		theCount;
	)
);&lt;/CODE&gt;&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Dec 2025 02:39:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Need-to-populate-no-of-unique-entery/m-p/917390#M107700</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2025-12-04T02:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: Need to populate no of unique entery</title>
      <link>https://community.jmp.com/t5/Discussions/Need-to-populate-no-of-unique-entery/m-p/917396#M107706</link>
      <description>&lt;P&gt;JMP 18:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Column( "unique",
	Formula(
		As Constant(
			Length(
				Associative Array( :SN[Where( :Flagged == "Yes" )] ) &amp;lt;&amp;lt; Get Keys
			)
		)
	)
)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;JMP19:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt &amp;lt;&amp;lt; New Column( "unique",
	Formula(
		Col Max(
			If( :Column 2 == "y",
				Col N Unique( :Column 1, :Column 2 ),
				.
			)
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;JMP 19.x:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt &amp;lt;&amp;lt; new column("unique",
   Formula( Col N Unique(If(:Flagged == "y",:SN, .) )
));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;JMP20?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt &amp;lt;&amp;lt; new column("unique",
Formula( Col N Unique(:SN, Where(:Flagged) )
));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The last one is my favorite - it will facilitate certain types of data analysis a lot!&lt;/P&gt;
&lt;P&gt;please vote:&amp;nbsp;&lt;LI-MESSAGE title="Col Median (and others): add &amp;amp;quot;Where&amp;amp;quot; option" uid="579482" url="https://community.jmp.com/t5/JMP-Wish-List/Col-Median-and-others-add-quot-Where-quot-option/m-p/579482#U579482" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-idea-thread lia-fa-icon lia-fa-idea lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;BR /&gt;otherwise we have to wait for v25 ...&lt;/P&gt;</description>
      <pubDate>Thu, 04 Dec 2025 00:00:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Need-to-populate-no-of-unique-entery/m-p/917396#M107706</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-12-04T00:00:52Z</dc:date>
    </item>
  </channel>
</rss>

