<?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 how many time Y is greater than N in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Count-how-many-time-Y-is-greater-than-N/m-p/110291#M39761</link>
    <description>&lt;P&gt;That sounds a lot like the rank. Col Rank() basically give you the number of items less than a given item (plus 1). For ties, you'd have to use Col Rank(:x, &amp;lt;&amp;lt;tie("minimum")). But you want greater than, so you could subtract the rank from the total number and also substract off the number of equal values:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Col Number( :Binned Temperature )&lt;BR /&gt;    - Col Rank( :Binned Temperature, &amp;lt;&amp;lt;tie( "minimum" ))&lt;BR /&gt;    - Col Number( :Binned Temperature, :Binned Temperature )&lt;BR /&gt;    + 1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 12 Feb 2019 03:38:08 GMT</pubDate>
    <dc:creator>XanGregg</dc:creator>
    <dc:date>2019-02-12T03:38:08Z</dc:date>
    <item>
      <title>Count how many time Y is greater than N</title>
      <link>https://community.jmp.com/t5/Discussions/Count-how-many-time-Y-is-greater-than-N/m-p/57124#M32045</link>
      <description>&lt;P&gt;Is there a formula that can be used to determine the number of rows that contain a value greater than a predetermined number, like &amp;gt; 65%?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess it would be similar to a countif formula in excel. I&amp;nbsp; want to count if the value is greater than 65%.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2018 00:39:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Count-how-many-time-Y-is-greater-than-N/m-p/57124#M32045</guid>
      <dc:creator>ark1019</dc:creator>
      <dc:date>2018-05-17T00:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: Count how many time Y is greater than N</title>
      <link>https://community.jmp.com/t5/Discussions/Count-how-many-time-Y-is-greater-than-N/m-p/57128#M32049</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;col sum(if(:your target column &amp;gt; .65, 1, 0));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;and this can be shortened to:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;col sum(:your target column &amp;gt; .65);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 17 May 2018 13:09:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Count-how-many-time-Y-is-greater-than-N/m-p/57128#M32049</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-05-17T13:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: Count how many time Y is greater than N</title>
      <link>https://community.jmp.com/t5/Discussions/Count-how-many-time-Y-is-greater-than-N/m-p/57139#M32056</link>
      <description>&lt;P&gt;Of course, if you really only care about knowing the number – as opposed to using it in a further formula – the fastest way to find this is to use the &lt;A href="https://www.jmp.com/support/help/14/the-data-filter.shtml" target="_blank"&gt;Data Filter&lt;/A&gt;&amp;nbsp;(&lt;STRONG&gt;Rows&lt;/STRONG&gt;-&amp;gt;&lt;STRONG&gt;Data Filter&lt;/STRONG&gt;) and then use the filter to select the rows where the value is greater that 65%. You can then see the number of selected rows in the data table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-RsaXNjZjE6pJO0HoT50Bw_1G2u2Sp6HYw320h248r744" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6064698258001" data-account="6058004218001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6058004218001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-RsaXNjZjE6pJO0HoT50Bw_1G2u2Sp6HYw320h248r744');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://community.jmp.com/t5/video/gallerypage/video-id/RsaXNjZjE6pJO0HoT50Bw_1G2u2Sp6HY"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2018 13:46:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Count-how-many-time-Y-is-greater-than-N/m-p/57139#M32056</guid>
      <dc:creator>Jeff_Perkinson</dc:creator>
      <dc:date>2018-05-17T13:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: Count how many time Y is greater than N</title>
      <link>https://community.jmp.com/t5/Discussions/Count-how-many-time-Y-is-greater-than-N/m-p/109803#M39705</link>
      <description>&lt;P&gt;Is there a way to do this where 0.65 is not a fixed value but rather the ith value in an adjacent row?&amp;nbsp; Meaning - could I have another cloumn that is a list of percentages and for every row I calculate the sum of the target column greater than the percentage of the ith row of the percentage column?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Something like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class=" language-jsl"&gt;&lt;CODE class="  language-jsl"&gt;&lt;SPAN class="token function"&gt;col sum&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;:&lt;/SPAN&gt;your target column &lt;SPAN class="token operator"&gt;&amp;gt;&lt;/SPAN&gt; percentage column&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Feb 2019 05:51:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Count-how-many-time-Y-is-greater-than-N/m-p/109803#M39705</guid>
      <dc:creator>tamirlance</dc:creator>
      <dc:date>2019-02-11T05:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: Count how many time Y is greater than N</title>
      <link>https://community.jmp.com/t5/Discussions/Count-how-many-time-Y-is-greater-than-N/m-p/109804#M39706</link>
      <description>&lt;P&gt;Do you want to only add up the rows where the target column's value is greater than a percentage columns value?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;col sum( If(:target column &amp;gt; :percentage column, :target column, 0 );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 Feb 2019 06:00:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Count-how-many-time-Y-is-greater-than-N/m-p/109804#M39706</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2019-02-11T06:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: Count how many time Y is greater than N</title>
      <link>https://community.jmp.com/t5/Discussions/Count-how-many-time-Y-is-greater-than-N/m-p/109877#M39747</link>
      <description>&lt;P&gt;yes except I have the complication that the target column is the same as the percentage column.&amp;nbsp; So as I go down the row - I want the value int hat row to act as the threshold for the column&amp;nbsp;&lt;/P&gt;&lt;P&gt;I attached an example data file.&amp;nbsp; I have gotten it to work with summation but it's terribly slow/inefficient and won't work on my real data of &amp;gt;3M rows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The second column is the summation formula.&amp;nbsp; The third column is the one I want to work.&amp;nbsp; The fourth and fifth columns are variations of the third using fixed values and those evaluate properly for that particular value I put in.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Feb 2019 18:34:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Count-how-many-time-Y-is-greater-than-N/m-p/109877#M39747</guid>
      <dc:creator>tamirlance</dc:creator>
      <dc:date>2019-02-11T18:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: Count how many time Y is greater than N</title>
      <link>https://community.jmp.com/t5/Discussions/Count-how-many-time-Y-is-greater-than-N/m-p/110291#M39761</link>
      <description>&lt;P&gt;That sounds a lot like the rank. Col Rank() basically give you the number of items less than a given item (plus 1). For ties, you'd have to use Col Rank(:x, &amp;lt;&amp;lt;tie("minimum")). But you want greater than, so you could subtract the rank from the total number and also substract off the number of equal values:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Col Number( :Binned Temperature )&lt;BR /&gt;    - Col Rank( :Binned Temperature, &amp;lt;&amp;lt;tie( "minimum" ))&lt;BR /&gt;    - Col Number( :Binned Temperature, :Binned Temperature )&lt;BR /&gt;    + 1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 Feb 2019 03:38:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Count-how-many-time-Y-is-greater-than-N/m-p/110291#M39761</guid>
      <dc:creator>XanGregg</dc:creator>
      <dc:date>2019-02-12T03:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: Count how many time Y is greater than N</title>
      <link>https://community.jmp.com/t5/Discussions/Count-how-many-time-Y-is-greater-than-N/m-p/112433#M39842</link>
      <description>&lt;P&gt;This is great - thanks!&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Thu, 14 Feb 2019 00:36:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Count-how-many-time-Y-is-greater-than-N/m-p/112433#M39842</guid>
      <dc:creator>tamirlance</dc:creator>
      <dc:date>2019-02-14T00:36:50Z</dc:date>
    </item>
  </channel>
</rss>

