<?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: Formula for scoring defect counts in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Formula-for-scoring-defect-counts/m-p/454230#M70086</link>
    <description>&lt;P&gt;I cannot really convert the question to what is needed. Seeing some mock-up of the first table and the desired result would most likely clear the question at least for me.&lt;/P&gt;
&lt;P&gt;Do you want to get allowed defect count back to first table as column formula? Is the first tables "count of things" somehow related to range of parts?&lt;/P&gt;</description>
    <pubDate>Tue, 25 Jan 2022 19:37:12 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2022-01-25T19:37:12Z</dc:date>
    <item>
      <title>Formula for scoring defect counts</title>
      <link>https://community.jmp.com/t5/Discussions/Formula-for-scoring-defect-counts/m-p/454141#M70082</link>
      <description>&lt;P&gt;I need a little help with a formula&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this scenario I have a column of counts, the number of things included in a lot. In a second column I have the count of defects.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In another table I have the number of allowed defects for a range of parts in the lot.&lt;/P&gt;
&lt;P&gt;for example:&lt;/P&gt;
&lt;P&gt;parts, allowed defects&lt;/P&gt;
&lt;P&gt;1-10, &amp;nbsp; 1&lt;/P&gt;
&lt;P&gt;11-20, 2&lt;/P&gt;
&lt;P&gt;21-30, 3&lt;/P&gt;
&lt;P&gt;31-40, 4&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using JSL, this is pretty easy. I can just make the max parts column and allowed defects column in to a matrix and do this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;xx=39; //number of defects
//count and limit must have the same number of items
count=[10,20,30,40,50,60];  //max for the bin
limit=[1,2,3,4,5,6];		//count limit
for (i=1, i&amp;lt;=nitems(count),i++,
if (xx&amp;gt;=count[i],yy=limit[i]);
);
show(yy)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;What I need is a column in the data table that reports the maximum number of defects allowed. Then I can use that to make other columns to show the percent of limit and another to show text, like, "whoa, that's too many" or something like that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm stuck converting this into a table formula,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please send help,&lt;/P&gt;
&lt;P&gt;Byron&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 20:48:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Formula-for-scoring-defect-counts/m-p/454141#M70082</guid>
      <dc:creator>Byron_JMP</dc:creator>
      <dc:date>2023-06-10T20:48:46Z</dc:date>
    </item>
    <item>
      <title>Re: Formula for scoring defect counts</title>
      <link>https://community.jmp.com/t5/Discussions/Formula-for-scoring-defect-counts/m-p/454230#M70086</link>
      <description>&lt;P&gt;I cannot really convert the question to what is needed. Seeing some mock-up of the first table and the desired result would most likely clear the question at least for me.&lt;/P&gt;
&lt;P&gt;Do you want to get allowed defect count back to first table as column formula? Is the first tables "count of things" somehow related to range of parts?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 19:37:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Formula-for-scoring-defect-counts/m-p/454230#M70086</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-01-25T19:37:12Z</dc:date>
    </item>
  </channel>
</rss>

