<?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 30 day rolling average ... Best way? in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/30-day-rolling-average-best-way/m-p/791718#M8377</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Asking for the best way to accomplish this. Here's what we are doing. We have a survey that is used twice daily for water calculations. The field personnel would like to see a 30 day rolling average of what has been collected. Also if no collection is done we need to know that it's actually a null value day. Example: So if we collected Sunday through Wednesday, skipped Thursday, and collected for the next 26 days you'd actually have 30 out of 31 days of collection. But since we did not collect on that Thursday, the first day I mentioned in the example (Sunday) would be outside of the 30 day rolling calculation, so it wouldn't be included. But now we have 29 out of 30 (Monday through Wednesday, a skipped Thursday, and 26 days straight starting on that Friday). So the final calculation for our 30 day rolling average would need to readjust itself to take everything, add it together, and divide by 29 and not 30 when skips happen. Most of the time it will be nonstop. That's what they're supposed to do, but I want that safeguard just in case there is the chance of a day being skipped. Would anyone at Esri know how to accomplish this? The most important part is how to track a 30 day rolling average on Survey123 collected data. Is Operations Dashboard the only viable option?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#30 Day #Rolling Average&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Oct 2018 11:59:02 GMT</pubDate>
    <dc:creator>TonyStrothers</dc:creator>
    <dc:date>2018-10-19T11:59:02Z</dc:date>
    <item>
      <title>30 day rolling average ... Best way?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/30-day-rolling-average-best-way/m-p/791718#M8377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Asking for the best way to accomplish this. Here's what we are doing. We have a survey that is used twice daily for water calculations. The field personnel would like to see a 30 day rolling average of what has been collected. Also if no collection is done we need to know that it's actually a null value day. Example: So if we collected Sunday through Wednesday, skipped Thursday, and collected for the next 26 days you'd actually have 30 out of 31 days of collection. But since we did not collect on that Thursday, the first day I mentioned in the example (Sunday) would be outside of the 30 day rolling calculation, so it wouldn't be included. But now we have 29 out of 30 (Monday through Wednesday, a skipped Thursday, and 26 days straight starting on that Friday). So the final calculation for our 30 day rolling average would need to readjust itself to take everything, add it together, and divide by 29 and not 30 when skips happen. Most of the time it will be nonstop. That's what they're supposed to do, but I want that safeguard just in case there is the chance of a day being skipped. Would anyone at Esri know how to accomplish this? The most important part is how to track a 30 day rolling average on Survey123 collected data. Is Operations Dashboard the only viable option?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#30 Day #Rolling Average&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2018 11:59:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/30-day-rolling-average-best-way/m-p/791718#M8377</guid>
      <dc:creator>TonyStrothers</dc:creator>
      <dc:date>2018-10-19T11:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: 30 day rolling average ... Best way?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/30-day-rolling-average-best-way/m-p/791719#M8378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tony,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How is the data organized? &amp;nbsp;If the inspection information is in a related table (modeled as a repeat in the form), then this could be possible when opening a survey from the inbox. &amp;nbsp;In the repeat's question, you would need to specify a query to retrieve the last 30 days of records in the bind::esri:parameters cell ( query="InspectionDate BETWEEN CURRENT_TIMESTAMP - 30 and CURRENT_TIMESTAMP" ) see &lt;A class="link-titled" href="http://doc.arcgis.com/en/arcgis-online/reference/sql-agol.htm" title="http://doc.arcgis.com/en/arcgis-online/reference/sql-agol.htm"&gt;Standardized SQL functions in ArcGIS Online—ArcGIS Online Help | ArcGIS&lt;/A&gt;&amp;nbsp;for details on this query and &lt;A class="link-titled" href="http://doc.arcgis.com/en/survey123/desktop/create-surveys/prepareforediting.htm#ESRI_SECTION1_80CFFC9C38654DC293D4F36C5376C62E" title="http://doc.arcgis.com/en/survey123/desktop/create-surveys/prepareforediting.htm#ESRI_SECTION1_80CFFC9C38654DC293D4F36C5376C62E"&gt;Prepare for editing existing survey data—Survey123 for ArcGIS | ArcGIS&lt;/A&gt;&amp;nbsp;for setting up repeats. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You would then have a field in the form (outside the repeat section) that would have &lt;EM&gt;sum(${value}) div count(${value})&lt;/EM&gt; to calculate the average - this will automatically account for empty entries. &amp;nbsp;See&amp;nbsp;&lt;A class="link-titled" href="http://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformrepeats.htm#ESRI_SECTION1_045B883052D844E89F8EEFF8C2EA638A" title="http://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformrepeats.htm#ESRI_SECTION1_045B883052D844E89F8EEFF8C2EA638A"&gt;Repeats—Survey123 for ArcGIS | ArcGIS&lt;/A&gt;&amp;nbsp;for information on sum() and count().&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2018 16:56:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/30-day-rolling-average-best-way/m-p/791719#M8378</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2018-10-19T16:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: 30 day rolling average ... Best way?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/30-day-rolling-average-best-way/m-p/791720#M8379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks James that seems like it might just work. I’ll let you know for sure next week.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Oct 2018 06:38:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/30-day-rolling-average-best-way/m-p/791720#M8379</guid>
      <dc:creator>TonyStrothers</dc:creator>
      <dc:date>2018-10-20T06:38:04Z</dc:date>
    </item>
  </channel>
</rss>

