All I'm trying to do is get a total value for the Shape.STLength() field for a feature class. I've selected the records I care about, but when I right click on the field and choose statistics, I get the statistics for all records. The attribute table is only showing selected records, and the only filter option is by extent.
What am I missing here? This should be very simple (and it is in ArcMap, which I am seriously wishing I could just use forever).
Screenshot attached.
Christopher - what ArcGIS Pro release are you using? I'm using ArcGIS Pro 3.x and have the Selection Filter on my distribution statistics as seen below. It does honor selections and shows the dataset statistics as well.
Thanks for the reply, Robert.
I'm using ArcPro 3.0.2 as well. I just tried again on a different dataset, and same issue as before. My process is to 1) open the attribute table 2) select by attributes 3) right click on the field and pick Statistics. I have tried other fields as well, with the same results.
That's very odd. It seems your ArcGIS Pro 3.0.2 is missing the Selection Filter for the chart. I know this sounds strange but give it a go - close ArcGIS Pro, rename the Esri folder in your C:\users\<user_profile>\appdata\local and C:\users\<user_profile>\appdata\roaming to ESRI_OLD. Then restart ArcGIS Pro, load your data in a new Pro project and try the workflow again. Does the Selection Filter show?
@Robert_LeClair - Did you try creating the chart using a connection to an EGDB feature class layer? It appears the problem only happens with SDE connections.
@Robert_LeClair I have tried renaming the ESRI directory to ESRI_OLD in both AppData directories with no change to the issue.
I'm seeing this same issue but only with enterprise geodatabases/sde connections. If I export the EGDB feature class to a File Geodatabase, the issue goes away. I'm using ArcGIS Pro 3.0.3.
Feeling like this is a bug, because the "Selection" filter appears when the Chart is first being created and is loading the data, but as soon as the data is loaded, the button disappears. Makes no sense for the Selection filter to disappear just because the layer is in an EGDB by design.
Thanks @alex_friant. I can confirm that exporting to a file geodatabase produces the correct charts/statistics. Connecting directly to an EGDB or using an SDE connection both produce the same issue.
I can confirm this is BUG-000153835 - Incorrect statistics are displayed for a selection of features if the selection is made prior to creating the field statistics chart and the data resides in an eGDB. I created a PosgreSQL eGDB and saw the same behavior as you as well as the term "selection" briefly appearing before it disappears.
Current workaround is:
The BUG is currently under review by Esri Support Services and the Geodata team.