Hi everyone,
I'm using ArcGIS Enterprise Web AppBuilder with the Infographic Widget and I'm trying to display the percentage of selected features where an attribute has a specific value.
The workflow is:
- The user selects features using the Select Widget.
- The Infographic updates based on the current selection.
- I would like to display the following value:
(Count of selected features where Attribute = "Arbitrary" / Total count of selected features) × 100
In other words:
COUNT(Attribute = "Arbitrário") / COUNT(selected features) * 100
I've looked through the Infographic Widget options but couldn't find a way to perform calculations between two statistics (conditional count and total count).
My data is stored in a Hosted Feature Layer on ArcGIS Enterprise.
Is there any way to achieve this using the standard Infographic Widget (configuration, Arcade, SQL expression, or another workaround)?
Any suggestions would be greatly appreciated. Thanks!