<?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 Summary Report - Inspections passed/failed by year and month in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/summary-report-inspections-passed-failed-by-year/m-p/1020059#M32107</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am trying to create a summary report that will group inspections by year and month and report how many passed and how many failed.&lt;/P&gt;&lt;P&gt;Report Fields:&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;InspectionDate(Date DataType)&lt;/LI&gt;&lt;LI&gt;FunctionStatus(Text DataType) -- This field defines pass or fail.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have used the following syntax which reports every inspection by every inspection date.&amp;nbsp; I'd rather group by just year and month and report the total count..&amp;nbsp; THEN I'd like to be able to know how many passed and how many failed within that year and month.&lt;/P&gt;&lt;TABLE width="680px"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="534px"&gt;&lt;P&gt;${#Emergency_Light_Inspections | stats:"count,OBJECTID,inspectionCount":"&lt;STRONG&gt;InspectionDate&lt;/STRONG&gt;": "" | where:"1=1" | orderByFields:"&lt;STRONG&gt;InspectionDate &lt;/STRONG&gt;DESC" }${&lt;STRONG&gt;InspectionDate&lt;/STRONG&gt;| format:”YYYY MMMM”}&lt;/P&gt;&lt;/TD&gt;&lt;TD width="145px"&gt;&lt;P&gt;${inspectionCount }${/}&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;I'm looking for the result&amp;nbsp; to look something like:&lt;/P&gt;&lt;P&gt;2020 January&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;60 Inspected&amp;nbsp; &amp;nbsp;(10 passed&amp;nbsp; &amp;nbsp; &amp;nbsp;50 failed)&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;2020 February&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 15 Inspected&amp;nbsp; &amp;nbsp;(5 passed&amp;nbsp; &amp;nbsp; &amp;nbsp; 10 failed)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;2020 March&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 130 Inspected&amp;nbsp; (50 Passed&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;80 Failed)&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help with Syntax would be much appreciated!!&lt;/P&gt;</description>
    <pubDate>Wed, 27 Jan 2021 19:07:04 GMT</pubDate>
    <dc:creator>Andrew-Bowne</dc:creator>
    <dc:date>2021-01-27T19:07:04Z</dc:date>
    <item>
      <title>Summary Report - Inspections passed/failed by year and month</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/summary-report-inspections-passed-failed-by-year/m-p/1020059#M32107</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am trying to create a summary report that will group inspections by year and month and report how many passed and how many failed.&lt;/P&gt;&lt;P&gt;Report Fields:&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;InspectionDate(Date DataType)&lt;/LI&gt;&lt;LI&gt;FunctionStatus(Text DataType) -- This field defines pass or fail.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have used the following syntax which reports every inspection by every inspection date.&amp;nbsp; I'd rather group by just year and month and report the total count..&amp;nbsp; THEN I'd like to be able to know how many passed and how many failed within that year and month.&lt;/P&gt;&lt;TABLE width="680px"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="534px"&gt;&lt;P&gt;${#Emergency_Light_Inspections | stats:"count,OBJECTID,inspectionCount":"&lt;STRONG&gt;InspectionDate&lt;/STRONG&gt;": "" | where:"1=1" | orderByFields:"&lt;STRONG&gt;InspectionDate &lt;/STRONG&gt;DESC" }${&lt;STRONG&gt;InspectionDate&lt;/STRONG&gt;| format:”YYYY MMMM”}&lt;/P&gt;&lt;/TD&gt;&lt;TD width="145px"&gt;&lt;P&gt;${inspectionCount }${/}&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;I'm looking for the result&amp;nbsp; to look something like:&lt;/P&gt;&lt;P&gt;2020 January&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;60 Inspected&amp;nbsp; &amp;nbsp;(10 passed&amp;nbsp; &amp;nbsp; &amp;nbsp;50 failed)&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;2020 February&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 15 Inspected&amp;nbsp; &amp;nbsp;(5 passed&amp;nbsp; &amp;nbsp; &amp;nbsp; 10 failed)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;2020 March&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 130 Inspected&amp;nbsp; (50 Passed&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;80 Failed)&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help with Syntax would be much appreciated!!&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 19:07:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/summary-report-inspections-passed-failed-by-year/m-p/1020059#M32107</guid>
      <dc:creator>Andrew-Bowne</dc:creator>
      <dc:date>2021-01-27T19:07:04Z</dc:date>
    </item>
  </channel>
</rss>

