<?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 values in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Count-values/m-p/404689#M65520</link>
    <description>&lt;P&gt;In most of the cases with JMP you will end up with something like this with all rows getting the same value depending on grouping you use:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1627453815103.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/34600iAC3E812C0620A687/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1627453815103.png" alt="jthi_0-1627453815103.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Col Sum(If(:Result == "Good", 1, 0), :Part)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I would most likely suggest using Tabulate or Summary.&amp;nbsp;Using the same table:&lt;/P&gt;&lt;P&gt;With tabulate you can get this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1627453883557.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/34601iFF2EF79E1E392551/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1627453883557.png" alt="jthi_1-1627453883557.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and with summary:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_2-1627453982806.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/34602i77839944C7BDA76E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_2-1627453982806.png" alt="jthi_2-1627453982806.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If these are not sufficient enough, could you provide example table (and use case if possible), so better answer can be given.&lt;/P&gt;</description>
    <pubDate>Wed, 28 Jul 2021 06:35:40 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2021-07-28T06:35:40Z</dc:date>
    <item>
      <title>Count values</title>
      <link>https://community.jmp.com/t5/Discussions/Count-values/m-p/404669#M65519</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 2 columns, 1st column is for the parts name (sample: parts 1 and parts 2) then 2nd column is the judgement whether is good or no good.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is is possible to count all the good parts and place the total good parts for parts 1 &amp;amp; 2 on the next column?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 20:46:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Count-values/m-p/404669#M65519</guid>
      <dc:creator>29755</dc:creator>
      <dc:date>2023-06-10T20:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: Count values</title>
      <link>https://community.jmp.com/t5/Discussions/Count-values/m-p/404689#M65520</link>
      <description>&lt;P&gt;In most of the cases with JMP you will end up with something like this with all rows getting the same value depending on grouping you use:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1627453815103.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/34600iAC3E812C0620A687/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1627453815103.png" alt="jthi_0-1627453815103.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Col Sum(If(:Result == "Good", 1, 0), :Part)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I would most likely suggest using Tabulate or Summary.&amp;nbsp;Using the same table:&lt;/P&gt;&lt;P&gt;With tabulate you can get this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1627453883557.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/34601iFF2EF79E1E392551/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1627453883557.png" alt="jthi_1-1627453883557.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and with summary:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_2-1627453982806.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/34602i77839944C7BDA76E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_2-1627453982806.png" alt="jthi_2-1627453982806.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If these are not sufficient enough, could you provide example table (and use case if possible), so better answer can be given.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 06:35:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Count-values/m-p/404689#M65520</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2021-07-28T06:35:40Z</dc:date>
    </item>
  </channel>
</rss>

