<?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: Getting Statistics on a field in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-statistics-on-a-field/m-p/846354#M4101</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Colin,&lt;/P&gt;&lt;P&gt;We are using UniqueValues, min, max. Please accelerate exposing of this functionality&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Nov 2017 13:39:35 GMT</pubDate>
    <dc:creator>GKmieliauskas</dc:creator>
    <dc:date>2017-11-29T13:39:35Z</dc:date>
    <item>
      <title>Getting Statistics on a field</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-statistics-on-a-field/m-p/846351#M4098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In ArcObjects I would use Geodatabase.IDataStatistics to get stats on a field.&amp;nbsp; Does anyone know if an equivalent exists in ArcPro SDK??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Nov 2017 13:48:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-statistics-on-a-field/m-p/846351#M4098</guid>
      <dc:creator>BrianBulla</dc:creator>
      <dc:date>2017-11-24T13:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Statistics on a field</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-statistics-on-a-field/m-p/846352#M4099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Brian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ArcGIS Pro Core.Data has not exposed this functionality yet. We will look to do so in a future release.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you utilize the simple stats (count, min\max etc) or standard deviation?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Colin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2017 22:11:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-statistics-on-a-field/m-p/846352#M4099</guid>
      <dc:creator>ColinZwicker</dc:creator>
      <dc:date>2017-11-27T22:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Statistics on a field</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-statistics-on-a-field/m-p/846353#M4100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Colin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just simple stats is all I am looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2017 20:21:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-statistics-on-a-field/m-p/846353#M4100</guid>
      <dc:creator>BrianBulla</dc:creator>
      <dc:date>2017-11-28T20:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Statistics on a field</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-statistics-on-a-field/m-p/846354#M4101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Colin,&lt;/P&gt;&lt;P&gt;We are using UniqueValues, min, max. Please accelerate exposing of this functionality&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Nov 2017 13:39:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-statistics-on-a-field/m-p/846354#M4101</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2017-11-29T13:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Statistics on a field</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-statistics-on-a-field/m-p/846355#M4102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Colin any word on when this might be exposed? Could do with an easy way of getting unique values from a field. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2018 11:22:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-statistics-on-a-field/m-p/846355#M4102</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2018-07-12T11:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Statistics on a field</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-statistics-on-a-field/m-p/846356#M4103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good timing &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the release of 2.2 check out:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/esri/arcgis-pro-sdk/wiki/ProConcepts-Geodatabase#calculating-statistics" title="https://github.com/esri/arcgis-pro-sdk/wiki/ProConcepts-Geodatabase#calculating-statistics"&gt;ProConcepts Geodatabase · Esri/arcgis-pro-sdk Wiki · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: totally missed your unique value statement, let me check with the team.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Colin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2018 16:49:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-statistics-on-a-field/m-p/846356#M4103</guid>
      <dc:creator>ColinZwicker</dc:creator>
      <dc:date>2018-07-13T16:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Statistics on a field</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-statistics-on-a-field/m-p/846357#M4104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Colin, yes please confirm if unique vals can be retrieved&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2018 15:56:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-statistics-on-a-field/m-p/846357#M4104</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2018-07-17T15:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Statistics on a field</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-statistics-on-a-field/m-p/846358#M4105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Luke,&lt;/P&gt;&lt;P&gt;Yes, it is possible to get the unique values of a field, but the way to do so isn't obvious.&lt;/P&gt;&lt;P&gt;As Colin pointed out, the key is to use the Table.CalculateStatistics() routine. This will allow you to generate statistics on one or more fields and includes the ability to execute a group by on these statistics. To get the unique values, you execute this code, passing in a "dummy" statistic to calculate.&lt;/P&gt;&lt;P&gt;In the example below, I build a list of unique values for the SUB_REGION field of a States table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; color: #0000ff;"&gt;// Get field for Region&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; color: #0000ff;"&gt;Field regionField = featureClassDefinition.GetFields().First(x =&amp;gt; x.Name.Equals("SUB_REGION"));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; color: #0000ff;"&gt;// Create a "fake" StatisticsDescription object&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; color: #0000ff;"&gt;StatisticsDescription statisticsDescription = new StatisticsDescription(regionField, new List&amp;lt;StatisticsFunction&amp;gt;() { StatisticsFunction.Count });&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; color: #0000ff;"&gt;// Create a TableStatisticsDescription that will return unique Region values (and a &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; color: #0000ff;"&gt;// count of how many rows have that value)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; color: #0000ff;"&gt;TableStatisticsDescription tableStatisticsDescription = new TableStatisticsDescription(new List&amp;lt;StatisticsDescription&amp;gt;() { statisticsDescription });&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; color: #0000ff;"&gt;tableStatisticsDescription.GroupBy = new List&amp;lt;Field&amp;gt;(){ regionField };&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; color: #0000ff;"&gt;// Generate the statistics (and list of unique values)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; color: #0000ff;"&gt;IReadOnlyList&amp;lt;TableStatisticsResult&amp;gt; results = statesFeatureClass.CalculateStatistics(tableStatisticsDescription);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; color: #0000ff;"&gt;// Table.CalculateStatistics() returns one TableStatisticsResult object for each unique&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; color: #0000ff;"&gt;// GroupBy tuple.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; color: #0000ff;"&gt;// If you pass one field into the TableStatisticsDescription.GroupBy object, you'll get&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; color: #0000ff;"&gt;// one TableStatisticsResult object for each unique value of that field&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; color: #0000ff;"&gt;foreach(TableStatisticsResult result in results)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; color: #0000ff;"&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; color: #0000ff;"&gt;&amp;nbsp; // TableStatisticsResult.GroupBy returns one KeyValuePair&amp;lt;Field,object&amp;gt; for each field&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; color: #0000ff;"&gt;&amp;nbsp; // in the TableStatisticsDescription.GroupBy list&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; color: #0000ff;"&gt;&amp;nbsp; // If you only pass one field into that list, we only get one&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; color: #0000ff;"&gt;&amp;nbsp; // KeyValuePair&amp;lt;Field,object&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; color: #0000ff;"&gt;&amp;nbsp; KeyValuePair&amp;lt;Field, object&amp;gt; groupByPair = result.GroupBy.First();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; color: #0000ff;"&gt;&amp;nbsp; // groupByPair.Field is the Field you passed into TableStatisticsDescription.GroupBy&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; color: #0000ff;"&gt;&amp;nbsp; // groupByPair.Value is a unique value of that field&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; color: #0000ff;"&gt;&amp;nbsp; string myFieldValue = (string) groupByPair.Value;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; color: #0000ff;"&gt;&amp;nbsp; Console.WriteLine(myFieldValue);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; color: #0000ff;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We'll take a look at providing a more obvious way this to do in a future version of ArcGIS Pro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2018 17:49:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-statistics-on-a-field/m-p/846358#M4105</guid>
      <dc:creator>RichRuh</dc:creator>
      <dc:date>2018-07-23T17:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Statistics on a field</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-statistics-on-a-field/m-p/1293584#M9875</link>
      <description>&lt;P&gt;Did you ever provide a more obvious way to do this in the API, Rich?&amp;nbsp; I am running into some issues with this not working so well, for example, with&amp;nbsp;type CIMXYEventDataConnection and when CIMSqlQueryDataConnection becomes CIMRelQueryTableDataConnection via joining to a local table (it does work with a join when the data are all in the file geodatabase).&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2023 18:05:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-statistics-on-a-field/m-p/1293584#M9875</guid>
      <dc:creator>DaveFullerton</dc:creator>
      <dc:date>2023-05-26T18:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Statistics on a field</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-statistics-on-a-field/m-p/1331154#M10436</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/114916"&gt;@RichRuh&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/129401"&gt;@KoryKramer&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1326"&gt;@ColinZwicker&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Repeating this question and tagging you guys in case you didn't see it before.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Did Esri ever provide a more obvious way to do this in the API, Rich?&amp;nbsp; I am running into some issues with this not working so well, for example, with&amp;nbsp;type CIMXYEventDataConnection and when CIMSqlQueryDataConnection becomes CIMRelQueryTableDataConnection via joining to a local table (it does work with a join when the data are all in the file geodatabase).&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 16:41:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-statistics-on-a-field/m-p/1331154#M10436</guid>
      <dc:creator>DaveFullerton</dc:creator>
      <dc:date>2023-09-21T16:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Statistics on a field</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-statistics-on-a-field/m-p/1331175#M10437</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/36532"&gt;@DaveFullerton&lt;/a&gt;&amp;nbsp;No changes here.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not familiar with the CIM*** classes, but if you have a reproducible case you can share with tech support, they can send it to us for investigation.&lt;/P&gt;&lt;P&gt;--Rich&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 17:16:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-statistics-on-a-field/m-p/1331175#M10437</guid>
      <dc:creator>RichRuh</dc:creator>
      <dc:date>2023-09-21T17:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Statistics on a field</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-statistics-on-a-field/m-p/1331215#M10438</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/114916"&gt;@RichRuh&lt;/a&gt;&amp;nbsp;.&amp;nbsp; It has been a while since I looked at this (was interrupted by other priorities).&amp;nbsp; I will probably contact tech support as you suggest.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 18:23:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-statistics-on-a-field/m-p/1331215#M10438</guid>
      <dc:creator>DaveFullerton</dc:creator>
      <dc:date>2023-09-21T18:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Statistics on a field</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-statistics-on-a-field/m-p/1357715#M10817</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I have looked this over more carefully now and have worked around this as much as I think I need to.&amp;nbsp; I am just using it to get a unique list of values, so in case anyone else is trying to do that or anyone has any further insights that they would be able to share, this is what I have concluded so far:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It is not surprising that I was unable to use Rich Ruh’s code snippet with XY Event Layers since in the Pro GUI you cannot run the “Summarize Statistics'' tool on fields in these layers.&amp;nbsp; You get an error message about there being no OID field.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You can run the “Summarize Statistics” tool on a field in a layer with a joined table.&amp;nbsp; However, for using the code snippet, FeatureClass.GetDefinition() and Table.GetDefinition() are expected to throw an exception if called when there is a table join.&amp;nbsp; This can be found in the API documentation here:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/3/2/sdk/api-reference/topic7713.html" target="_blank"&gt;&lt;SPAN&gt;https://pro.arcgis.com/en/pro-app/latest/3.2/api-reference/topic7713.html&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/3.2/sdk/api-reference/topic7014.html" target="_blank"&gt;&lt;SPAN&gt;https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic7014.html&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So it seems that this is a known limitation and there is a reasonable sounding explanation provided for it, but since “Summarize Statistics” can be done through the Pro GUI when there is a joined table, it is surprising that we cannot do this using the SDK too.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;To be clear, in my code, I start with a BasicFeatureLayer, get a Table from it with GetTable() and then use Table.GetDefinition().&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The thing that initially confused me was that Table.GetDefinition() didn’t throw an exception when the data source of the BasicFeatureLayer was a FGDB feature class and it was joined with a table within that same FGDB.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For now, I want to allow users the opportunity to use my addin in the above mentioned FGDB joined table case (or any case that Table.GetDefinition() happens to work), so I decided to do something like this at the beginning when getting the TableDefinition:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;            Table table = myBasicFeatureLayer.GetTable();

            TableDefinition tableDefinition;
            try
            {
                tableDefinition = table.GetDefinition();
            }
            catch (Exception e)
            {
                 if (table.IsJoinedTable())
                {
                    ArcGIS.Desktop.Framework.Dialogs.MessageBox.Show("Won't work with join…");
                }
                else
                {
                    MessageBox.Show("Please contact GIS staff…" + e.ToString());
                }

                return;
            }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 21:48:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-statistics-on-a-field/m-p/1357715#M10817</guid>
      <dc:creator>DaveFullerton</dc:creator>
      <dc:date>2023-12-06T21:48:24Z</dc:date>
    </item>
  </channel>
</rss>

