<?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: Survey123 report template: inserting a zero when number question type is blank in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-report-template-inserting-a-zero-when/m-p/1499315#M57627</link>
    <description>&lt;P&gt;I'm posting a solution to an issue I had with inserting a zero when an integer or decimal question type was blank in a report template. Hope this saves someone hours of troubleshooting, despair, and frustration.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CharlottePeters95540_0-1719602590032.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/108324iC2F25064F4BC18CE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CharlottePeters95540_0-1719602590032.jpeg" alt="CharlottePeters95540_0-1719602590032.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following expression worked for me on a feature report for a survey that had nested repeats (e.g. Project main--&amp;gt;Site repeat--&amp;gt;Feature repeat). In my case, the report ran calculations on all the features within a single project.&amp;nbsp;&lt;SPAN&gt;If the question is blank a zero is inserted; otherwise, a calculated value is returned.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Syntax:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;${#FeatureRepeat | stats:"sum,Question name to sum,Variable name to hold sum result"}${Variable name&lt;STRONG&gt;+0&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;| format:"#,##0"}${/}&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;${#rptFeature | stats:"sum,RoadMilesDecomm,RdMi"}${RdMi&lt;STRONG&gt;+0&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;| format:"#,##0"}${/}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;The variable name can be whatever you want it to be. The number format is optional.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 28 Jun 2024 19:23:31 GMT</pubDate>
    <dc:creator>CharlottePeters95540</dc:creator>
    <dc:date>2024-06-28T19:23:31Z</dc:date>
    <item>
      <title>Survey123 report template: inserting a zero when number question type is blank</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-report-template-inserting-a-zero-when/m-p/1496924#M57507</link>
      <description>&lt;P&gt;I'm posting a solution to an issue I had with inserting a zero when an integer or decimal question type was blank in a report template. Hope this saves someone hours of troubleshooting, despair, and frustration. &lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rptnull.jpg" style="width: 273px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/107835iA6567FAE22BD0FE3/image-size/large?v=v2&amp;amp;px=999" role="button" title="rptnull.jpg" alt="rptnull.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The following expression worked for me on a feature report for a survey that had nested repeats (e.g. Project main--&amp;gt;Site repeat--&amp;gt;Feature repeat). In my case, the report ran calculations on all the features within a single project.&amp;nbsp;&lt;SPAN&gt;If the question is blank a zero is inserted; otherwise, a calculated value is returned.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Syntax:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;${#FeatureRepeat | stats:"sum,Question name to sum,Variable name to hold sum result"}${Variable name&lt;STRONG&gt;+0&lt;/STRONG&gt; | format:"#,##0"}${/}&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;${#rptFeature | stats:"sum,RoadMilesDecomm,RdMi"}${RdMi&lt;STRONG&gt;+0&lt;/STRONG&gt; | format:"#,##0"}${/}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;The variable name can be whatever you want it to be. The number format is optional.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2024 00:19:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-report-template-inserting-a-zero-when/m-p/1496924#M57507</guid>
      <dc:creator>CharlottePeters95540</dc:creator>
      <dc:date>2024-06-25T00:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 report template: inserting a zero when number question type is blank</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-report-template-inserting-a-zero-when/m-p/1497052#M57509</link>
      <description>&lt;P&gt;Thanks for sharing. Can you please post your solution and mark it as the answer?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2024 10:28:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-report-template-inserting-a-zero-when/m-p/1497052#M57509</guid>
      <dc:creator>ChristopherCounsell</dc:creator>
      <dc:date>2024-06-25T10:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 report template: inserting a zero when number question type is blank</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-report-template-inserting-a-zero-when/m-p/1499315#M57627</link>
      <description>&lt;P&gt;I'm posting a solution to an issue I had with inserting a zero when an integer or decimal question type was blank in a report template. Hope this saves someone hours of troubleshooting, despair, and frustration.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CharlottePeters95540_0-1719602590032.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/108324iC2F25064F4BC18CE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CharlottePeters95540_0-1719602590032.jpeg" alt="CharlottePeters95540_0-1719602590032.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following expression worked for me on a feature report for a survey that had nested repeats (e.g. Project main--&amp;gt;Site repeat--&amp;gt;Feature repeat). In my case, the report ran calculations on all the features within a single project.&amp;nbsp;&lt;SPAN&gt;If the question is blank a zero is inserted; otherwise, a calculated value is returned.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Syntax:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;${#FeatureRepeat | stats:"sum,Question name to sum,Variable name to hold sum result"}${Variable name&lt;STRONG&gt;+0&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;| format:"#,##0"}${/}&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;${#rptFeature | stats:"sum,RoadMilesDecomm,RdMi"}${RdMi&lt;STRONG&gt;+0&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;| format:"#,##0"}${/}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;The variable name can be whatever you want it to be. The number format is optional.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 19:23:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-report-template-inserting-a-zero-when/m-p/1499315#M57627</guid>
      <dc:creator>CharlottePeters95540</dc:creator>
      <dc:date>2024-06-28T19:23:31Z</dc:date>
    </item>
  </channel>
</rss>

