<?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: Calculate average of x highest hourly values per day in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Calculate-average-of-x-highest-hourly-values-per-day/m-p/512353#M73989</link>
    <description>&lt;P&gt;Works great - any suggestions on how best to do it by "group" (or location, for example)? I have several sampling locations that have hourly values on the same date.&lt;/P&gt;</description>
    <pubDate>Wed, 22 Jun 2022 15:18:44 GMT</pubDate>
    <dc:creator>FourPeaks</dc:creator>
    <dc:date>2022-06-22T15:18:44Z</dc:date>
    <item>
      <title>Calculate average of x highest hourly values per day</title>
      <link>https://community.jmp.com/t5/Discussions/Calculate-average-of-x-highest-hourly-values-per-day/m-p/512329#M73987</link>
      <description>&lt;P&gt;We are looking to average the highest x hourly values in a given day across large data sets. For example, the average of the 12 highest hourly values within a given calendar day over a five-year period. The data include date, hour, and value for various metrics. Thank you for any suggestions.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:50:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Calculate-average-of-x-highest-hourly-values-per-day/m-p/512329#M73987</guid>
      <dc:creator>FourPeaks</dc:creator>
      <dc:date>2023-06-10T23:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate average of x highest hourly values per day</title>
      <link>https://community.jmp.com/t5/Discussions/Calculate-average-of-x-highest-hourly-values-per-day/m-p/512337#M73988</link>
      <description>&lt;P&gt;There are many options for this:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Summary tables (and formulas)&lt;/LI&gt;
&lt;LI&gt;Formulas with Col functions&lt;/LI&gt;
&lt;LI&gt;Scripting&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Attached is one option on how to do it with couple of formulas, first calculate rank of data for date (col number and col rank) and then based on that take top x (in example 3) and calculate average of those (col mean with if statement)&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 14:50:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Calculate-average-of-x-highest-hourly-values-per-day/m-p/512337#M73988</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-06-22T14:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate average of x highest hourly values per day</title>
      <link>https://community.jmp.com/t5/Discussions/Calculate-average-of-x-highest-hourly-values-per-day/m-p/512353#M73989</link>
      <description>&lt;P&gt;Works great - any suggestions on how best to do it by "group" (or location, for example)? I have several sampling locations that have hourly values on the same date.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 15:18:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Calculate-average-of-x-highest-hourly-values-per-day/m-p/512353#M73989</guid>
      <dc:creator>FourPeaks</dc:creator>
      <dc:date>2022-06-22T15:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate average of x highest hourly values per day</title>
      <link>https://community.jmp.com/t5/Discussions/Calculate-average-of-x-highest-hourly-values-per-day/m-p/512357#M73990</link>
      <description>&lt;P&gt;You should be able to add more grouping variables to the Col functions&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1655911289161.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/43471i8C60855039B4BE92/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1655911289161.png" alt="jthi_0-1655911289161.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 15:21:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Calculate-average-of-x-highest-hourly-values-per-day/m-p/512357#M73990</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-06-22T15:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate average of x highest hourly values per day</title>
      <link>https://community.jmp.com/t5/Discussions/Calculate-average-of-x-highest-hourly-values-per-day/m-p/512384#M73995</link>
      <description>&lt;P&gt;Thanks for the help &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt; - don't know if I'm too novice but I can't seem to get it right.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the formula that I'm attempting to group by "Site" in addition to date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(1 + Col Number( 1, :Date )) - Col Rank( :"Gas"n, :Date )&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 15:52:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Calculate-average-of-x-highest-hourly-values-per-day/m-p/512384#M73995</guid>
      <dc:creator>FourPeaks</dc:creator>
      <dc:date>2022-06-22T15:52:27Z</dc:date>
    </item>
  </channel>
</rss>

