<?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: Report Template Summarize repeats on geometry, format stats values, sort rows in repeats in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/report-template-summarize-repeats-on-geometry/m-p/1183786#M43296</link>
    <description>&lt;P&gt;Well, I got a bit closer today, grokked some of the documentation a little better, but it still feels a bit like throwing spaghetti... I think a clear explanation of the behavior of ${# within and outside of the summary section and in combination with different functions, primarily stats and getValue would be helpful.&lt;/P&gt;&lt;P&gt;Progress:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;${#Planting_Unit | stats: “sum,Acres_Planting_Unit, PU_Acres”}${PU_Acres | round:2} ${/}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;in the summary section will sum a numeric field and round to two decimals. I have this placed in a single cell in the above tables.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;${#MonitoringEvent_PlantingUnit | stats: “first, Date_Unit_Monitored_PUME, MostRecent_PUME” | orderByFields:"Date_Unit_Monitored_PUME DESC”}${MostRecent_PUME | format:"DD/MM/YYYY”} ${/}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Will give the most recent date formatted as a date placed in a single cell of a table in the summary section.&lt;/P&gt;&lt;P&gt;Still stuck:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;${#Invasive_Vegetation_Unit} ${Invasive_Veg_Unit_polygon | getValue: “area”:”acres”:”geodesic”} ${/}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The syntax checker will accept this, but no value is returned. I was hoping for a comma delimited list of the acres of the polygons as a step towards a solution. I'd love the ability to create a variable from the getValue function that could be passed into the stats function, or access to sum(), or something, please. Otherwise, best practice might be to maintain a user-defined acres field and sum on that (as I did in the first row in the original post). As there is no trigger function in table management for auto-populating this on creation of the record, it is less satisfying as the acres field would rely on manual or scheduled updates.&lt;/P&gt;&lt;P&gt;Regress with progress:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;${#Planting_Unit | orderByFields: “Planting_Unit_ID ASC”} ${Planting_Unit_ID}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;In the first cell of a table will list the rows sorted on Unit id (an alpha id). HOWEVER, the statement&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;${Planting_Unit_polygon | getValue:"area":"acres":"geodesic”} ${/}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;In the last cell of the row no longer produces the acres value, while it will with an unsorted table--I double checked by removing the sort and the acres appeared again. I would like to be able to sort the table based on one field while still having the getValue function return acres.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TIA for any help. Any thoughts&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2929"&gt;@IsmaelChivite&lt;/a&gt;&amp;nbsp;?&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/16421"&gt;@DougBrowning&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 17 Jun 2022 00:38:08 GMT</pubDate>
    <dc:creator>DavidRichey</dc:creator>
    <dc:date>2022-06-17T00:38:08Z</dc:date>
    <item>
      <title>Report Template Summarize repeats on geometry, format stats values, sort rows in repeats</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/report-template-summarize-repeats-on-geometry/m-p/1183380#M43279</link>
      <description>&lt;P&gt;So, I’m finally getting the hang of some aspects of generating Survey 123 reports, but there are a couple of items still eluding me. Any help appreciated.&lt;/P&gt;&lt;P&gt;Summarizing repeat areas or lengths based on geometry&lt;/P&gt;&lt;P&gt;If I have a field that I calculate area or length into, I can summarize on that field with a stats function. If I am listing the number of rows in a repeat, I can calculate the area from a getValue function. But I cannot figure out the syntax to summarize the area or length for all repeats based on geometry.&lt;/P&gt;&lt;P&gt;Rounding values or formatting dates derived from the stats function&lt;/P&gt;&lt;P&gt;I’d like help on how to format the output of the stats function to get date formatting and round to a decimal place.&lt;/P&gt;&lt;P&gt;Sorting repeats&lt;/P&gt;&lt;P&gt;If I am generating a listing of all rows in a repeat, how do I control the order in which it is displayed?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Desired output:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DavidRichey_0-1655343705886.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/43581iFA6A98522DB2C6FC/image-size/large?v=v2&amp;amp;px=999" role="button" title="DavidRichey_0-1655343705886.png" alt="DavidRichey_0-1655343705886.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;DavidRichey_0-1655343705886.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DavidRichey_1-1655343774282.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/43582i72CD572140FFD729/image-size/large?v=v2&amp;amp;px=999" role="button" title="DavidRichey_1-1655343774282.png" alt="DavidRichey_1-1655343774282.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;DavidRichey_1-1655343774282.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Current template:&lt;/P&gt;&lt;P&gt;$&amp;lt;$summary&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Revegetation and Monitoring Site Report&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H1&gt;Site Features Summary&lt;/H1&gt;&lt;TABLE width="112%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="28%"&gt;&lt;P&gt;&lt;STRONG&gt;Feature&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="21%"&gt;&lt;P&gt;&lt;STRONG&gt;Count&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="49%"&gt;&lt;P&gt;&lt;STRONG&gt;Total Acres&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="28%"&gt;&lt;P&gt;Planting Units&lt;/P&gt;&lt;/TD&gt;&lt;TD width="21%"&gt;&lt;P&gt;Get value count: ${Planting_Unit | getValue:"count"}&lt;BR /&gt;Stats count: ${Planting_Unit | stats: “count, objectid”}&lt;/P&gt;&lt;/TD&gt;&lt;TD width="49%"&gt;&lt;P&gt;${Planting_Unit | stats: “sum,Acres_Planting_Unit”}&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="28%"&gt;&lt;P&gt;Invasive Vegetation Units&lt;/P&gt;&lt;/TD&gt;&lt;TD width="21%"&gt;&lt;P&gt;${Invasive_Vegetation_Unit &amp;nbsp;| stats: “count, objectid”}&lt;/P&gt;&lt;/TD&gt;&lt;TD width="49%"&gt;&lt;P&gt;Sum the area in acres based on geometry.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="28%"&gt;&lt;P&gt;Observation Units&lt;/P&gt;&lt;/TD&gt;&lt;TD width="21%"&gt;&lt;P&gt;${Observation_Unit | stats: “count, objectid”}&lt;/P&gt;&lt;/TD&gt;&lt;TD width="49%"&gt;&lt;P&gt;Sum the area in acres based on geometry.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;H1&gt;&amp;nbsp;&lt;/H1&gt;&lt;H1&gt;Monitoring Events Summary&lt;/H1&gt;&lt;TABLE width="112%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="28%"&gt;&lt;P&gt;&lt;STRONG&gt;Event&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="21%"&gt;&lt;P&gt;&lt;STRONG&gt;Count&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="49%"&gt;&lt;P&gt;&lt;STRONG&gt;Most Recent Event&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="28%"&gt;&lt;P&gt;Planting Unit Monitoring Event&lt;/P&gt;&lt;/TD&gt;&lt;TD width="21%"&gt;&lt;P&gt;${MonitoringEvent_PlantingUnit | stats: “count, objectid”}&lt;/P&gt;&lt;/TD&gt;&lt;TD width="49%"&gt;&lt;P&gt;${MonitoringEvent_PlantingUnit | stats: “first, Date_Unit_Monitored_PUME” | orderByFields:"Date_Unit_Monitored_PUME DESC”}&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="28%"&gt;&lt;P&gt;Invasive Veg Monitoring Events&lt;/P&gt;&lt;/TD&gt;&lt;TD width="21%"&gt;&lt;P&gt;${MonitoringEvent_Invasive_Veg | stats: “count, objectid”}&lt;/P&gt;&lt;/TD&gt;&lt;TD width="49%"&gt;&lt;P&gt;Show the most recent monitoring event date.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;$&amp;lt;/&amp;gt;&lt;/P&gt;&lt;H2&gt;Planting Units&lt;/H2&gt;&lt;TABLE width="112%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="27%"&gt;&lt;P&gt;&lt;STRONG&gt;IV Unit ID&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="30%"&gt;&lt;P&gt;&lt;STRONG&gt;Note&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="42%"&gt;&lt;P&gt;&lt;STRONG&gt;Acres&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="27%"&gt;&lt;P&gt;${#Planting_Unit} ${Planting_Unit_ID}&lt;/P&gt;&lt;/TD&gt;&lt;TD width="30%"&gt;&lt;P&gt;${Planting_Unit_Note}&lt;/P&gt;&lt;/TD&gt;&lt;TD width="42%"&gt;&lt;P&gt;${Planting_Unit_polygon | getValue:"area":"acres":"geodesic"} ${/}&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;H2&gt;&amp;nbsp;&lt;/H2&gt;&lt;H2&gt;Invasive Vegetation Units&lt;/H2&gt;&lt;TABLE width="112%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="27%"&gt;&lt;P&gt;&lt;STRONG&gt;IV Unit ID&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="30%"&gt;&lt;P&gt;&lt;STRONG&gt;Cover Ratio&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="42%"&gt;&lt;P&gt;&lt;STRONG&gt;Acres&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="27%"&gt;&lt;P&gt;${#Invasive_Vegetation_Unit}&lt;BR /&gt;${objectid}&lt;/P&gt;&lt;/TD&gt;&lt;TD width="30%"&gt;&lt;P&gt;${Invasive_Veg_CoverRatio_IVU_ | getValue:""}&lt;/P&gt;&lt;/TD&gt;&lt;TD width="42%"&gt;&lt;P&gt;${Invasive_Veg_Unit_polygon | getValue:"area":"acres":"geodesic"} ${/}&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H2&gt;Planting Unit Monitoring Event&lt;/H2&gt;&lt;TABLE width="112%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="27%"&gt;&lt;P&gt;&lt;STRONG&gt;Planting Unit Monitoring Event ID&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="30%"&gt;&lt;P&gt;&lt;STRONG&gt;Survival Rate&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="42%"&gt;&lt;P&gt;&lt;STRONG&gt;Acres&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="27%"&gt;&lt;P&gt;${#MonitoringEvent_PlantingUnit}&lt;BR /&gt;${Planting_Unit_ME_ID}&lt;/P&gt;&lt;/TD&gt;&lt;TD width="30%"&gt;&lt;P&gt;${Survival_Rate_PUME | getValue:""}&lt;/P&gt;&lt;/TD&gt;&lt;TD width="42%"&gt;&lt;P&gt;${Date_Unit_Monitored_PUME} ${/}&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 01:45:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/report-template-summarize-repeats-on-geometry/m-p/1183380#M43279</guid>
      <dc:creator>DavidRichey</dc:creator>
      <dc:date>2022-06-16T01:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: Report Template Summarize repeats on geometry, format stats values, sort rows in repeats</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/report-template-summarize-repeats-on-geometry/m-p/1183786#M43296</link>
      <description>&lt;P&gt;Well, I got a bit closer today, grokked some of the documentation a little better, but it still feels a bit like throwing spaghetti... I think a clear explanation of the behavior of ${# within and outside of the summary section and in combination with different functions, primarily stats and getValue would be helpful.&lt;/P&gt;&lt;P&gt;Progress:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;${#Planting_Unit | stats: “sum,Acres_Planting_Unit, PU_Acres”}${PU_Acres | round:2} ${/}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;in the summary section will sum a numeric field and round to two decimals. I have this placed in a single cell in the above tables.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;${#MonitoringEvent_PlantingUnit | stats: “first, Date_Unit_Monitored_PUME, MostRecent_PUME” | orderByFields:"Date_Unit_Monitored_PUME DESC”}${MostRecent_PUME | format:"DD/MM/YYYY”} ${/}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Will give the most recent date formatted as a date placed in a single cell of a table in the summary section.&lt;/P&gt;&lt;P&gt;Still stuck:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;${#Invasive_Vegetation_Unit} ${Invasive_Veg_Unit_polygon | getValue: “area”:”acres”:”geodesic”} ${/}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The syntax checker will accept this, but no value is returned. I was hoping for a comma delimited list of the acres of the polygons as a step towards a solution. I'd love the ability to create a variable from the getValue function that could be passed into the stats function, or access to sum(), or something, please. Otherwise, best practice might be to maintain a user-defined acres field and sum on that (as I did in the first row in the original post). As there is no trigger function in table management for auto-populating this on creation of the record, it is less satisfying as the acres field would rely on manual or scheduled updates.&lt;/P&gt;&lt;P&gt;Regress with progress:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;${#Planting_Unit | orderByFields: “Planting_Unit_ID ASC”} ${Planting_Unit_ID}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;In the first cell of a table will list the rows sorted on Unit id (an alpha id). HOWEVER, the statement&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;${Planting_Unit_polygon | getValue:"area":"acres":"geodesic”} ${/}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;In the last cell of the row no longer produces the acres value, while it will with an unsorted table--I double checked by removing the sort and the acres appeared again. I would like to be able to sort the table based on one field while still having the getValue function return acres.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TIA for any help. Any thoughts&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2929"&gt;@IsmaelChivite&lt;/a&gt;&amp;nbsp;?&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/16421"&gt;@DougBrowning&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2022 00:38:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/report-template-summarize-repeats-on-geometry/m-p/1183786#M43296</guid>
      <dc:creator>DavidRichey</dc:creator>
      <dc:date>2022-06-17T00:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: Report Template Summarize repeats on geometry, format stats values, sort rows in repeats</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/report-template-summarize-repeats-on-geometry/m-p/1303061#M50253</link>
      <description>&lt;P&gt;Thanks for brining us for your ride. I was able to fix some of my method formatting thanks to your follow up post. Cheers.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 16:19:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/report-template-summarize-repeats-on-geometry/m-p/1303061#M50253</guid>
      <dc:creator>BugPie</dc:creator>
      <dc:date>2023-06-26T16:19:42Z</dc:date>
    </item>
  </channel>
</rss>

