<?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: output statistics count returns all fields in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/output-statistics-count-returns-all-fields/m-p/1044519#M3775</link>
    <description>&lt;P&gt;I doubt you can get what you're after in the OOTB query operation, as outStatistics won't support parameter other than&amp;nbsp;&lt;EM&gt;&lt;SPAN class="usertext"&gt;groupByFieldsForStatistics&lt;/SPAN&gt;,&amp;nbsp;&lt;SPAN class="usertext"&gt;orderByFields&lt;/SPAN&gt;,&amp;nbsp;&lt;SPAN class="usertext"&gt;time&lt;/SPAN&gt;, and&amp;nbsp;&lt;SPAN class="usertext"&gt;where &lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN class="usertext"&gt;as outlined in doc. That means&amp;nbsp;&lt;STRONG&gt;outFields &lt;/STRONG&gt;which you're after not working.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;When using&amp;nbsp;&lt;SPAN class="usertext"&gt;outStatistics&lt;/SPAN&gt;, the only other parameters that can be used are&amp;nbsp;&lt;SPAN class="usertext"&gt;groupByFieldsForStatistics&lt;/SPAN&gt;,&amp;nbsp;&lt;SPAN class="usertext"&gt;orderByFields&lt;/SPAN&gt;,&amp;nbsp;&lt;SPAN class="usertext"&gt;time&lt;/SPAN&gt;, and&amp;nbsp;&lt;SPAN class="usertext"&gt;where&lt;/SPAN&gt;.&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 07 Apr 2021 03:30:48 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2021-04-07T03:30:48Z</dc:date>
    <item>
      <title>output statistics count returns all fields</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/output-statistics-count-returns-all-fields/m-p/1043600#M3767</link>
      <description>&lt;P&gt;I am trying to run a query with some output statistics to determine a count of the numbers of copies I have of each item based on the 'Call_Number' this seems to work okay but it only returns the count and the call number, not the rest of the attributes for each item. Here is a simple example of what I am looking to do:&lt;/P&gt;&lt;P&gt;Title: sheet1, Date: 1900, Call Number: 1234&lt;/P&gt;&lt;P&gt;Title: sheet1, Date: 1900, Call Number: 1234&lt;/P&gt;&lt;P&gt;Title: sheet1, Date: 1900, Call Number: 1234&lt;/P&gt;&lt;P&gt;In this case, there are 3 versions of an identical record. I would like it&amp;nbsp; to show in the query, 1 record, the number of copies, and all of the attributes. For example it would return:&lt;/P&gt;&lt;P&gt;Title: sheet1, Date: 1900, Call Number: 1234, Copies: 3&lt;/P&gt;&lt;P&gt;Here are the outputstatistics I am using. Any help would be appreciated!&amp;nbsp;&lt;/P&gt;&lt;P&gt;[{&lt;BR /&gt;"statisticType": "count",&lt;BR /&gt;"onStatisticField": "Call_Number",&lt;BR /&gt;"outStatisticFieldName": "Copies"&lt;BR /&gt;}]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Apr 2021 17:31:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/output-statistics-count-returns-all-fields/m-p/1043600#M3767</guid>
      <dc:creator>bcasu</dc:creator>
      <dc:date>2021-04-03T17:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: output statistics count returns all fields</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/output-statistics-count-returns-all-fields/m-p/1043604#M3768</link>
      <description>&lt;P&gt;Perhaps you could create a custom field and use Arcade to concatenate the fields you want into it.&amp;nbsp; Then run the statistics COUNT against that field, but just a shot in the dark.&lt;/P&gt;</description>
      <pubDate>Sat, 03 Apr 2021 19:53:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/output-statistics-count-returns-all-fields/m-p/1043604#M3768</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2021-04-03T19:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: output statistics count returns all fields</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/output-statistics-count-returns-all-fields/m-p/1044519#M3775</link>
      <description>&lt;P&gt;I doubt you can get what you're after in the OOTB query operation, as outStatistics won't support parameter other than&amp;nbsp;&lt;EM&gt;&lt;SPAN class="usertext"&gt;groupByFieldsForStatistics&lt;/SPAN&gt;,&amp;nbsp;&lt;SPAN class="usertext"&gt;orderByFields&lt;/SPAN&gt;,&amp;nbsp;&lt;SPAN class="usertext"&gt;time&lt;/SPAN&gt;, and&amp;nbsp;&lt;SPAN class="usertext"&gt;where &lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN class="usertext"&gt;as outlined in doc. That means&amp;nbsp;&lt;STRONG&gt;outFields &lt;/STRONG&gt;which you're after not working.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;When using&amp;nbsp;&lt;SPAN class="usertext"&gt;outStatistics&lt;/SPAN&gt;, the only other parameters that can be used are&amp;nbsp;&lt;SPAN class="usertext"&gt;groupByFieldsForStatistics&lt;/SPAN&gt;,&amp;nbsp;&lt;SPAN class="usertext"&gt;orderByFields&lt;/SPAN&gt;,&amp;nbsp;&lt;SPAN class="usertext"&gt;time&lt;/SPAN&gt;, and&amp;nbsp;&lt;SPAN class="usertext"&gt;where&lt;/SPAN&gt;.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 03:30:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/output-statistics-count-returns-all-fields/m-p/1044519#M3775</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-04-07T03:30:48Z</dc:date>
    </item>
  </channel>
</rss>

