<?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 how to sumerize the number column with of identical value per row in jmp in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/how-to-sumerize-the-number-column-with-of-identical-value-per/m-p/595980#M79976</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;who know how&amp;nbsp;&lt;SPAN&gt;to summarize the number column with of identical value per row in jmp?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;for example:&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Movie&lt;/TD&gt;&lt;TD&gt;Year&lt;/TD&gt;&lt;TD&gt;Domestic $&lt;/TD&gt;&lt;TD&gt;###&lt;/TD&gt;&lt;TD&gt;###&lt;/TD&gt;&lt;TD&gt;SUM&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Ocean's Eleven&lt;/TD&gt;&lt;TD&gt;2001&lt;/TD&gt;&lt;TD&gt;$ 183.40&lt;/TD&gt;&lt;TD&gt;$ 444.30&lt;/TD&gt;&lt;TD&gt;$ 183.40&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Airport&lt;/TD&gt;&lt;TD&gt;1970&lt;/TD&gt;&lt;TD&gt;$ 100.50&lt;/TD&gt;&lt;TD&gt;$ 100.50&lt;/TD&gt;&lt;TD&gt;$ 100.50&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Armageddon&lt;/TD&gt;&lt;TD&gt;1998&lt;/TD&gt;&lt;TD&gt;$ 201.60&lt;/TD&gt;&lt;TD&gt;$ 554.60&lt;/TD&gt;&lt;TD&gt;$ 271.60&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Batman&lt;/TD&gt;&lt;TD&gt;1989&lt;/TD&gt;&lt;TD&gt;$ 251.20&lt;/TD&gt;&lt;TD&gt;$ 413.00&lt;/TD&gt;&lt;TD&gt;$ 413.00&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Batman &amp;amp; Robin&lt;/TD&gt;&lt;TD&gt;1997&lt;/TD&gt;&lt;TD&gt;$ 107.30&lt;/TD&gt;&lt;TD&gt;$ 237.30&lt;/TD&gt;&lt;TD&gt;$ 107.30&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Batman Forever&lt;/TD&gt;&lt;TD&gt;1995&lt;/TD&gt;&lt;TD&gt;$ 335.00&lt;/TD&gt;&lt;TD&gt;$ 335.00&lt;/TD&gt;&lt;TD&gt;$ 335.00&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Cheli&lt;/P&gt;</description>
    <pubDate>Thu, 08 Jun 2023 16:39:17 GMT</pubDate>
    <dc:creator>Cheli</dc:creator>
    <dc:date>2023-06-08T16:39:17Z</dc:date>
    <item>
      <title>how to sumerize the number column with of identical value per row in jmp</title>
      <link>https://community.jmp.com/t5/Discussions/how-to-sumerize-the-number-column-with-of-identical-value-per/m-p/595980#M79976</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;who know how&amp;nbsp;&lt;SPAN&gt;to summarize the number column with of ident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lt;TD&gt;Batman &amp;amp; Robin&lt;/TD&gt;&lt;TD&gt;1997&lt;/TD&gt;&lt;TD&gt;$ 107.30&lt;/TD&gt;&lt;TD&gt;$ 237.30&lt;/TD&gt;&lt;TD&gt;$ 107.30&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Batman Forever&lt;/TD&gt;&lt;TD&gt;1995&lt;/TD&gt;&lt;TD&gt;$ 335.00&lt;/TD&gt;&lt;TD&gt;$ 335.00&lt;/TD&gt;&lt;TD&gt;$ 335.00&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Cheli&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 16:39:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/how-to-sumerize-the-number-column-with-of-identical-value-per/m-p/595980#M79976</guid>
      <dc:creator>Cheli</dc:creator>
      <dc:date>2023-06-08T16:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: how to sumerize the number column with of identical value per row in jmp</title>
      <link>https://community.jmp.com/t5/Discussions/how-to-sumerize-the-number-column-with-of-identical-value-per/m-p/596016#M79980</link>
      <description>&lt;P&gt;Assuming you are running an interactive JMP session, simply double click on the column header of the column in question, and change the name to whatever name it should have.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 17:05:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/how-to-sumerize-the-number-column-with-of-identical-value-per/m-p/596016#M79980</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2023-02-01T17:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: how to sumerize the number column with of identical value per row in jmp</title>
      <link>https://community.jmp.com/t5/Discussions/how-to-sumerize-the-number-column-with-of-identical-value-per/m-p/596094#M79984</link>
      <description>&lt;P&gt;thanks. but I didn't explain my question well.&lt;/P&gt;&lt;P&gt;I need to summarize the number of &lt;SPAN&gt;columns with&amp;nbsp;&lt;/SPAN&gt;identical occurrence for each row.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to create columne same as "SUM" at my example&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 19:10:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/how-to-sumerize-the-number-column-with-of-identical-value-per/m-p/596094#M79984</guid>
      <dc:creator>Cheli</dc:creator>
      <dc:date>2023-02-01T19:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: how to sumerize the number column with of identical value per row in jmp</title>
      <link>https://community.jmp.com/t5/Discussions/how-to-sumerize-the-number-column-with-of-identical-value-per/m-p/596104#M79985</link>
      <description>&lt;P&gt;If you have only three columns you could use Choose with checking of how many unique values there are. I'm using (&lt;CODE class=" language-jsl"&gt;N Items(Associative Array(Eval List({:A,:B,:C})) &amp;lt;&amp;lt; get keys)&lt;/CODE&gt;) for that here&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = New Table("Untitled",
	Add Rows(6),
	Compress File When Saved(1),
	New Column("Movie", Character, "Nominal", Set Values({"Ocean's Eleven", "Airport", "Armageddon", "Batman", "Batman &amp;amp; Robin", "Batman Forever"})),
	New Column("Year", Numeric, "Continuous", Format("Best", 12), Set Values([2001, 1970, 1998, 1989, 1997, 1995])),
	New Column("A", Numeric, "Continuous", Set Values([183.4, 100.5, 201.6, 251.2, 107.3, 335])),
	New Column("B", Numeric, "Continuous", Set Values([444.3, 100.5, 554.6, 413, 237.3, 335])),
	New Column("C", Numeric, "Continuous", Set Values([183.4, 100.5, 271.6, 413, 107.3, 335])),
	New Column("SUM", Numeric, "Continuous", Format("Best", 12), Set Values([2, 3, 0, 2, 2, 3]))
);

dt &amp;lt;&amp;lt; New Column("SUM2", Numeric, Continuous, Formula(
	Choose(N Items(Associative Array(Eval List({:A,:B,:C})) &amp;lt;&amp;lt; get keys),
		3,
		2,
		0
	)
));
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1675278445048.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/49708iA9CC41AE8EA2CDC2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1675278445048.png" alt="jthi_1-1675278445048.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1675278411403.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/49707i4E66B7044AE69D6D/image-size/large?v=v2&amp;amp;px=999" role="button" title="jthi_0-1675278411403.png" alt="jthi_0-1675278411403.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edit:&lt;/P&gt;
&lt;P&gt;As &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt; said, Associative Array doesn't really work with non integer numeric values unless you transform the values somehow (you could try converting them to characters first or multiply). With three columns it will be short to write a formula with comparisons (like Jim did). Also instead of Associative Array you could use Design&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt &amp;lt;&amp;lt; New Column("SUM2", Numeric, Continuous, Formula(
	val = Max(V Sum(Design(Eval List({:A,:B,:C}))));
	If(val &amp;gt; 1,
		val
	,
		0
	);
));&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 01 Feb 2023 20:54:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/how-to-sumerize-the-number-column-with-of-identical-value-per/m-p/596104#M79985</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-02-01T20:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: how to sumerize the number column with of identical value per row in jmp</title>
      <link>https://community.jmp.com/t5/Discussions/how-to-sumerize-the-number-column-with-of-identical-value-per/m-p/596134#M79987</link>
      <description>&lt;P&gt;An issue arises with&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp;code when the comparison values in the Associative Array are not integers.&amp;nbsp; The keys for Associative Arrays are forced to integer values.&amp;nbsp; The decimal values are truncated.&amp;nbsp; Therefore, A=100,4, B=100.5, C=100.4 returns a 3, not a 2 as it should be.&amp;nbsp; If the significant number of decimal values are known, a multiplier can be added to the formula to force the values to be integers&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Choose(N Items((Associative Array(Eval List({:A*10,:B*10,:C*10})) &amp;lt;&amp;lt; get keys)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;or a restructuring of the code to use Boolean math.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt &amp;lt;&amp;lt; New Column( "SUM2",
	Numeric,
	Continuous,
	Formula( If( :A == :B &amp;amp; :B == :C , 3, :A == :B | :A == :C | :B == :C, 2, 0 )
));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 20:11:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/how-to-sumerize-the-number-column-with-of-identical-value-per/m-p/596134#M79987</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2023-02-01T20:11:39Z</dc:date>
    </item>
  </channel>
</rss>

