Select to view content in your preferred language

How to Link Filter with Dynamic Text Count in ArcGIS Experience Builder (Enterprise 10.9)

215
1
08-02-2024 12:07 AM
Labels (1)
ve360
by
Emerging Contributor

Hi community! I am working on a visualization in ArcGIS Experience Builder. I have a map, a filter, and dynamic text. The filter filters entities by year, and the dynamic text displays the count of entities. Currently, the text shows the total number of entities based on the map extent, but I also want it to display the total number of entities for the selected year in the count. Would you know how I can achieve this?

Viz: https://venezuela360.org/arcgis/apps/experiencebuilder/experience/?id=589a9125043f4c8ebfe1de7a220c61...

Thanks!

1 Reply
NicoleJohnson
Occasional Contributor

FYI I'm not seeing the count change as the map extent changes, so I'll start with that:

  1. Add a text widget. Connect it to your data (choose the default data view). 
  2. Click inside the text widget and find the cylinder icon on the far right. The "dynamic content" window opens. For the operator, choose COUNT. For the field, choose OBJECTID.
  3. On your map widget, go to the Action tab. Choose the "Extent changes" trigger, then select the framework as the target. Choose the action "filter data records." For the action data, choose the data you're wanting to count. Leave the "query by current extent" option on. 

To get the count once you've filtered, the dynamic text set up above should respond to the filter since the filter automatically works with the framework. I would double-check your filter. I happen to have a similar filter where a user selects a year from a pre-defined list, using the "contains" operator for the year:

NicoleJohnson_0-1722953029694.png

In my case, I've got a text field with years separated by commas (e.g., "2024, 2023, 2018, 2011"), but I think the contains operator should work with an actual date field too. 

NicoleJohnson_0-1722953520253.png

 

If you run into issues, I don't mind helping you troubleshoot. =]

0 Kudos