<?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 Complex calculations using the stats function in Report Templates in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/complex-calculations-using-the-stats-function-in/m-p/1596799#M61738</link>
    <description>&lt;P&gt;I would like to calculate some stats in my report bason the stats function:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="sql"&gt;${mainLayer | where:"status='Pass'" | stats:"count,objectId"} / (${mainLayer | where:"status='Pass'" | stats:"count,objectId"} + ${mainLayer | where:"status='Fail'" | stats:"count,objectId"})&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not sure where to add the operator or if you can only calculate fields and not stats.&lt;/P&gt;</description>
    <pubDate>Tue, 18 Mar 2025 20:28:45 GMT</pubDate>
    <dc:creator>TL2</dc:creator>
    <dc:date>2025-03-18T20:28:45Z</dc:date>
    <item>
      <title>Complex calculations using the stats function in Report Templates</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/complex-calculations-using-the-stats-function-in/m-p/1596799#M61738</link>
      <description>&lt;P&gt;I would like to calculate some stats in my report bason the stats function:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="sql"&gt;${mainLayer | where:"status='Pass'" | stats:"count,objectId"} / (${mainLayer | where:"status='Pass'" | stats:"count,objectId"} + ${mainLayer | where:"status='Fail'" | stats:"count,objectId"})&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not sure where to add the operator or if you can only calculate fields and not stats.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Mar 2025 20:28:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/complex-calculations-using-the-stats-function-in/m-p/1596799#M61738</guid>
      <dc:creator>TL2</dc:creator>
      <dc:date>2025-03-18T20:28:45Z</dc:date>
    </item>
  </channel>
</rss>

