<?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: Summary Report: by Day of the Week in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/summary-report-by-day-of-the-week/m-p/1094280#M36872</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/197680"&gt;@DanteLee&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Of course you can!&lt;/P&gt;&lt;P&gt;Since I don't really see your survey, please take a look at my syntax and table.&lt;/P&gt;&lt;P&gt;Here is my syntax in a summary section in feature report :&lt;/P&gt;&lt;P&gt;${&lt;SPAN&gt;Form_14&lt;/SPAN&gt; | stats:&lt;SPAN&gt;”&lt;/SPAN&gt;sum, pump1&lt;SPAN&gt;”|where:”dayofweek=’Monday’”&lt;/SPAN&gt;}&lt;/P&gt;&lt;P&gt;My goal for this syntax is to sum up the value for&amp;nbsp; pump1 when it is Monday.&lt;/P&gt;&lt;P&gt;Besides syntax, I think it could also help you to understand better if I posted my table for the summary report as below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alison_gou_0-1630481515622.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/22156i57A16537ED958B1A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="alison_gou_0-1630481515622.png" alt="alison_gou_0-1630481515622.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Give it a go to see if this can help you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Alison&lt;/P&gt;</description>
    <pubDate>Wed, 01 Sep 2021 07:33:01 GMT</pubDate>
    <dc:creator>alison_gou</dc:creator>
    <dc:date>2021-09-01T07:33:01Z</dc:date>
    <item>
      <title>Summary Report: by Day of the Week</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/summary-report-by-day-of-the-week/m-p/1091773#M36673</link>
      <description>&lt;P&gt;Is it possible to filter a summary report by day of the week? I've tried the following "legal SQL" in the where clause, but I get an error when generating the report&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;An error occurred when querying data from the feature layer. 400: Cannot perform query. Invalid query parameters. 'where' parameter is invalid The expression leads to this error: &lt;I&gt;${# layername | orderByFields:"objectid ASC" | &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;where: "DATEPART(WEEKDAY, contact_date) = 'Monday'"&lt;/FONT&gt;&lt;/STRONG&gt;}&lt;/I&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Tue, 24 Aug 2021 16:05:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/summary-report-by-day-of-the-week/m-p/1091773#M36673</guid>
      <dc:creator>DanteLee</dc:creator>
      <dc:date>2021-08-24T16:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: Summary Report: by Day of the Week</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/summary-report-by-day-of-the-week/m-p/1094280#M36872</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/197680"&gt;@DanteLee&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Of course you can!&lt;/P&gt;&lt;P&gt;Since I don't really see your survey, please take a look at my syntax and table.&lt;/P&gt;&lt;P&gt;Here is my syntax in a summary section in feature report :&lt;/P&gt;&lt;P&gt;${&lt;SPAN&gt;Form_14&lt;/SPAN&gt; | stats:&lt;SPAN&gt;”&lt;/SPAN&gt;sum, pump1&lt;SPAN&gt;”|where:”dayofweek=’Monday’”&lt;/SPAN&gt;}&lt;/P&gt;&lt;P&gt;My goal for this syntax is to sum up the value for&amp;nbsp; pump1 when it is Monday.&lt;/P&gt;&lt;P&gt;Besides syntax, I think it could also help you to understand better if I posted my table for the summary report as below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alison_gou_0-1630481515622.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/22156i57A16537ED958B1A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="alison_gou_0-1630481515622.png" alt="alison_gou_0-1630481515622.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Give it a go to see if this can help you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Alison&lt;/P&gt;</description>
      <pubDate>Wed, 01 Sep 2021 07:33:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/summary-report-by-day-of-the-week/m-p/1094280#M36872</guid>
      <dc:creator>alison_gou</dc:creator>
      <dc:date>2021-09-01T07:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: Summary Report: by Day of the Week</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/summary-report-by-day-of-the-week/m-p/1094409#M36886</link>
      <description>&lt;P&gt;Ah, looks like you calculate the day of the week into a separate field in the survey form? I was hoping to run that on the fly in the summary using the SQL DATEPART() function&lt;/P&gt;</description>
      <pubDate>Wed, 01 Sep 2021 14:49:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/summary-report-by-day-of-the-week/m-p/1094409#M36886</guid>
      <dc:creator>DanteLee</dc:creator>
      <dc:date>2021-09-01T14:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: Summary Report: by Day of the Week</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/summary-report-by-day-of-the-week/m-p/1096269#M37026</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/197680"&gt;@DanteLee&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to reproduce with&amp;nbsp;&lt;SPAN&gt;SQL DATEPART() function, however, I don't&amp;nbsp; think this is supported, to be specific, not by feature server.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I tried to use&amp;nbsp;&lt;SPAN&gt;SQL DATEPART() function directly on feature layer where parameter,&amp;nbsp; feature layer returned error "'where' parameter is invalid".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In order for&amp;nbsp;SQL DATEPART() to work in Survey123 report,&amp;nbsp; it has to be supported by feature layer.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I would encourage you to contact Esri Support to proceed on confirming whether&amp;nbsp;SQL DATEPART() is supported by feature layer. If it is supported, I would love to hear back from you to work it out on survey123; if it is not supported and needed for your workflow, then you may ask Esri Support to log an enhancement.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Alison&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Sep 2021 08:42:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/summary-report-by-day-of-the-week/m-p/1096269#M37026</guid>
      <dc:creator>alison_gou</dc:creator>
      <dc:date>2021-09-08T08:42:15Z</dc:date>
    </item>
  </channel>
</rss>

