<?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: Dashboard data expression not showing when map filtering is enabled in ArcGIS Dashboards Questions</title>
    <link>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-data-expression-not-showing-when-map/m-p/1488557#M9790</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/435132"&gt;@SkiNail&lt;/a&gt;&amp;nbsp;I'm having the same problem, have you found the solution?&lt;/P&gt;</description>
    <pubDate>Mon, 10 Jun 2024 22:36:09 GMT</pubDate>
    <dc:creator>Bloomers3166</dc:creator>
    <dc:date>2024-06-10T22:36:09Z</dc:date>
    <item>
      <title>Dashboard data expression not showing when map filtering is enabled</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-data-expression-not-showing-when-map/m-p/1184507#M6454</link>
      <description>&lt;P&gt;The issue: I have a bunch of data expressions in a dashboard. The indicator widget is used to display the result from the data expression. However, when I enable Map Actions to filter based on the map frame extent, the indicators stop returning a result and say "no data".&lt;/P&gt;&lt;P&gt;The data expressions: I have 3. Each one is different but they all have the same basic principle. There are a bunch of similar layers in the map, and the data expressions sum a field in each layer, or count the features in each layer and returns the result. Here is an example of one of them.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;// Number of events
var portal = Portal('https://www.arcgis.com/');

// S003_zone
var S003_zone = FeatureSetByPortalItem(portal,'2a719b3952dc4d399e5d8ec4905236df',8,['OBJECTID'],true);
var S003_Count = COUNT(S003_zone);

// S004_zone
var S004_zone = FeatureSetByPortalItem(portal,'2a719b3952dc4d399e5d8ec4905236df',7,['OBJECTID'],true);
var S004_Count = COUNT(S004_zone);

// S005_zone
var S005_zone = FeatureSetByPortalItem(portal,'2a719b3952dc4d399e5d8ec4905236df',6,['OBJECTID'],true);
var S005_Count = COUNT(S005_zone);

// S006_zone
var S006_zone = FeatureSetByPortalItem(portal,'2a719b3952dc4d399e5d8ec4905236df',5,['OBJECTID'],true);
var S006_Count = COUNT(S006_zone);

// Total number of spray events
var Number_of_events = S003_Count + S004_Count + S005_Count + S006_Count

// create data schema
var Dict = {
    'fields': [
        {'name': 'Number_of_events', 'type': 'esriFieldTypeInteger'}],
    'geometryType': '',   
    'features': []};
    
// fill the data schema with the data
Dict.features[0] = {
            'attributes': {
                'Number_of_events': Number_of_events
            }}

// return the featureset
return FeatureSet(Text(Dict));&lt;/LI-CODE&gt;&lt;P&gt;As you can see, it is by portal ID. I have also tried Group By with the same result.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd really appreciate some guidance on this. I understand that filtering by map extent might impact performance. I'll cross that bridge when I get to it!&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2022 22:37:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-data-expression-not-showing-when-map/m-p/1184507#M6454</guid>
      <dc:creator>SkiNail</dc:creator>
      <dc:date>2022-06-20T22:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard data expression not showing when map filtering is enabled</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-data-expression-not-showing-when-map/m-p/1488557#M9790</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/435132"&gt;@SkiNail&lt;/a&gt;&amp;nbsp;I'm having the same problem, have you found the solution?&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2024 22:36:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-data-expression-not-showing-when-map/m-p/1488557#M9790</guid>
      <dc:creator>Bloomers3166</dc:creator>
      <dc:date>2024-06-10T22:36:09Z</dc:date>
    </item>
  </channel>
</rss>

