Count how many time Y is greater than NIs there a formula that can be used to determine the number of rows that contain a value greater than a predetermined number, like > 65%?
I guess it would be similar to a countif formula in excel. I want to count if the value is greater than 65%.
Thank you
Re: Count how many time Y is greater than NThis is great - thanks!
Re: Count how many time Y is greater than NThat 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, <
Col Number( :Binned Temperature )<BR /> - Col Rank( :Binned Temperature, <<TIE></TIE> - Col Number( :Binned Temperature, :Binned Temperature )<BR /> + 1
Re: Count how many time Y is greater than Nyes except I have the complication that the target column is the same as the percentage column. So as I go down the row - I want the value int hat row to act as the threshold for the column
I attached an example data file. I have gotten it to work with summation but it's terribly slow/inefficient and won't work on my real data of >3M rows.
The second column is the summation formula. The third column is the one I want to work. The fourth and fifth columns are variations of the third using fixed values and those evaluate properly for that particular value I put in.
Re: Count how many time Y is greater than NDo you want to only add up the rows where the target column's value is greater than a percentage columns value?
col sum( If(:target column > :percentage column, :target column, 0 );
Re: Count how many time Y is greater than NIs there a way to do this where 0.65 is not a fixed value but rather the ith value in an adjacent row? 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?
Something like:
<SPAN class="token function">col sum</SPAN><SPAN class="token punctuation">(</SPAN><SPAN class="token punctuation">:</SPAN>your target column <SPAN class="token operator">></SPAN> percentage column<SPAN class="token punctuation">)</SPAN><SPAN class="token punctuation">;</SPAN>
Re: Count how many time Y is greater than NOf 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 Data Filter (Rows->Data Filter) 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.
Re: Count how many time Y is greater than Ncol sum(if(:your target column > .65, 1, 0));
and this can be shortened to:
col sum(:your target column > .65);