<?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: Count no of entry in column to calculate yield. in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Count-no-of-entry-in-column-to-calculate-yield/m-p/915088#M107536</link>
    <description>&lt;P&gt;You can use Tabulate:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1764018558530.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/87644i4B28640D5509E5F6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1764018558530.png" alt="hogi_0-1764018558530.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Drag lot onto the vertical axis and Result onto the header. Then drag &lt;FONT face="courier new,courier"&gt;Row%&lt;/FONT&gt; onto the main drop zone.&lt;BR /&gt;In Column "Pass", you can read the yield in %.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Tabulate(
	Add Table(
		Column Table( Grouping Columns( :Result ), Add Aggregate Statistics( :Result ), Statistics( Row % ) ),
		Row Table( Grouping Columns( :Lot ), Add Aggregate Statistics( :Lot ) )
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 24 Nov 2025 21:10:59 GMT</pubDate>
    <dc:creator>hogi</dc:creator>
    <dc:date>2025-11-24T21:10:59Z</dc:date>
    <item>
      <title>Count no of entry in column to calculate yield.</title>
      <link>https://community.jmp.com/t5/Discussions/Count-no-of-entry-in-column-to-calculate-yield/m-p/915075#M107533</link>
      <description>&lt;P&gt;How can I Count no of fail and pass by Lot to calculate yield. I want to do this using formula. (Tabulate function is working just fine. But I like to know how to do that using formula)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ConfidenceOwl94_0-1764016783922.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/87643iD8737D5DAEEB18A8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ConfidenceOwl94_0-1764016783922.png" alt="ConfidenceOwl94_0-1764016783922.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Nov 2025 20:40:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Count-no-of-entry-in-column-to-calculate-yield/m-p/915075#M107533</guid>
      <dc:creator>ConfidenceOwl94</dc:creator>
      <dc:date>2025-11-24T20:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: Count no of entry in column to calculate yield.</title>
      <link>https://community.jmp.com/t5/Discussions/Count-no-of-entry-in-column-to-calculate-yield/m-p/915085#M107534</link>
      <description>&lt;P&gt;Select Lot as "Group By" variable (right click on this column, and you'll find this option after "new formula column"), and then right-click on "Result" column, "Group By" and then choose "Count".&lt;/P&gt;</description>
      <pubDate>Tue, 25 Nov 2025 08:01:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Count-no-of-entry-in-column-to-calculate-yield/m-p/915085#M107534</guid>
      <dc:creator>Victor_G</dc:creator>
      <dc:date>2025-11-25T08:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: Count no of entry in column to calculate yield.</title>
      <link>https://community.jmp.com/t5/Discussions/Count-no-of-entry-in-column-to-calculate-yield/m-p/915086#M107535</link>
      <description>&lt;P&gt;This will "count" the non-missing entries.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;edit: "count?"&lt;BR /&gt;JMP can only count Number - not Strings.&lt;BR /&gt;... at least bast on the available options in the right-click-menu.&lt;/P&gt;
&lt;P&gt;From JMP19 onwards, JMP can also count &lt;STRONG&gt;unique&lt;/STRONG&gt; Strings:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1764019611891.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/87645i2007ABF85DB1CD46/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1764019611891.png" alt="hogi_0-1764019611891.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;But still: no 1-click-appraoch to count strings.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.jmp.com/t5/Discussions/Collection-of-quot-funny-quot-Jmp-newbie-questions/m-p/910592/highlight/true#M106966" target="_blank"&gt;https://community.jmp.com/t5/Discussions/Collection-of-quot-funny-quot-Jmp-newbie-questions/m-p/910592/highlight/true#M106966&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Nov 2025 21:28:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Count-no-of-entry-in-column-to-calculate-yield/m-p/915086#M107535</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-11-24T21:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: Count no of entry in column to calculate yield.</title>
      <link>https://community.jmp.com/t5/Discussions/Count-no-of-entry-in-column-to-calculate-yield/m-p/915088#M107536</link>
      <description>&lt;P&gt;You can use Tabulate:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1764018558530.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/87644i4B28640D5509E5F6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1764018558530.png" alt="hogi_0-1764018558530.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Drag lot onto the vertical axis and Result onto the header. Then drag &lt;FONT face="courier new,courier"&gt;Row%&lt;/FONT&gt; onto the main drop zone.&lt;BR /&gt;In Column "Pass", you can read the yield in %.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Tabulate(
	Add Table(
		Column Table( Grouping Columns( :Result ), Add Aggregate Statistics( :Result ), Statistics( Row % ) ),
		Row Table( Grouping Columns( :Lot ), Add Aggregate Statistics( :Lot ) )
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 24 Nov 2025 21:10:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Count-no-of-entry-in-column-to-calculate-yield/m-p/915088#M107536</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-11-24T21:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: Count no of entry in column to calculate yield.</title>
      <link>https://community.jmp.com/t5/Discussions/Count-no-of-entry-in-column-to-calculate-yield/m-p/915089#M107537</link>
      <description>&lt;P&gt;to calculate the yield via a column formula, you can use:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Column( "yield_",
	Format( "Percent", 9, 2 ),
	Formula( Col Sum( :Result == "Pass", :Lot ) / Col Number( 1, :Lot ) )
)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 24 Nov 2025 21:23:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Count-no-of-entry-in-column-to-calculate-yield/m-p/915089#M107537</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-11-24T21:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: Count no of entry in column to calculate yield.</title>
      <link>https://community.jmp.com/t5/Discussions/Count-no-of-entry-in-column-to-calculate-yield/m-p/915155#M107549</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/26800"&gt;@hogi&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;It is possible but require some work on the datatable:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Recode Pass to value "0" and Fail to value "1"&lt;/LI&gt;
&lt;LI&gt;Change column "Result" data type to Numeric and Modeling type to "Nominal"&lt;/LI&gt;
&lt;LI&gt;Add a column property "Value Labels" to identify what the 0s and 1s mean (and display it in the datatable directly).&lt;/LI&gt;
&lt;LI&gt;Finally, use "Group by" Lot and "Group by" Result, and create a new formula column based on "Result" column : New Formula Column&amp;gt;Aggregate&amp;gt;Sum. This will lead to this formula in the new column:&lt;BR /&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Col Number( :Result, :Lot, :Result )&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/55080"&gt;@ConfidenceOwl94&lt;/a&gt;&amp;nbsp;please find attached the datatable with the newly created column for the count of Pass/Fail. You can then use this column to calculate %Yield or directly transform the formula in this column to the following formula to get your Yield directly calculated :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;(Col Number( :Result, :Lot, :Result ) / Col Number( :Result, :Lot )) * 100&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Hope this solution may help you,&lt;/P&gt;</description>
      <pubDate>Tue, 25 Nov 2025 07:57:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Count-no-of-entry-in-column-to-calculate-yield/m-p/915155#M107549</guid>
      <dc:creator>Victor_G</dc:creator>
      <dc:date>2025-11-25T07:57:26Z</dc:date>
    </item>
  </channel>
</rss>

