<?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 How to use Count expression with no selection? in ArcGIS Experience Builder Questions</title>
    <link>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-use-count-expression-with-no-selection/m-p/1328714#M8300</link>
    <description>&lt;P&gt;I want to have a count of selected features, but sometimes there is no selection. If I use a text widget, connected to my layer, using Selected instead of Default, this will work fine as long as there is at least one feature selected. If there is none, the Count formula just displays the formula. Is there a workaround to display something when there is no selection to count?&lt;/P&gt;</description>
    <pubDate>Thu, 14 Sep 2023 15:00:52 GMT</pubDate>
    <dc:creator>AndyWells</dc:creator>
    <dc:date>2023-09-14T15:00:52Z</dc:date>
    <item>
      <title>How to use Count expression with no selection?</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-use-count-expression-with-no-selection/m-p/1328714#M8300</link>
      <description>&lt;P&gt;I want to have a count of selected features, but sometimes there is no selection. If I use a text widget, connected to my layer, using Selected instead of Default, this will work fine as long as there is at least one feature selected. If there is none, the Count formula just displays the formula. Is there a workaround to display something when there is no selection to count?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2023 15:00:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-use-count-expression-with-no-selection/m-p/1328714#M8300</guid>
      <dc:creator>AndyWells</dc:creator>
      <dc:date>2023-09-14T15:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Count expression with no selection?</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-use-count-expression-with-no-selection/m-p/1328739#M8303</link>
      <description>&lt;P&gt;I attempted using IIF() from Arcade and setting an empty data view. Neither one worked in my quick trial, but if it's possible in OOTB text widget, I feel like it would be down one of those roads.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/experience-builder/guide/select-data/#data-details-and-data-views" target="_blank"&gt;https://developers.arcgis.com/experience-builder/guide/select-data/#data-details-and-data-views&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/arcade/function-reference/logical_functions/#iif" target="_blank"&gt;https://developers.arcgis.com/arcade/function-reference/logical_functions/#iif&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2023 15:46:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-use-count-expression-with-no-selection/m-p/1328739#M8303</guid>
      <dc:creator>JeffreyThompson2</dc:creator>
      <dc:date>2023-09-14T15:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Count expression with no selection?</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-use-count-expression-with-no-selection/m-p/1328742#M8304</link>
      <description>&lt;P&gt;I thought maybe I could check "View for empty selection" and then give it&amp;nbsp; filter like OBJECTID = -1, but that doesn't work. And I don't see anyway to get an Arcade expression to work in ExB.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2023 15:53:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-use-count-expression-with-no-selection/m-p/1328742#M8304</guid>
      <dc:creator>AndyWells</dc:creator>
      <dc:date>2023-09-14T15:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Count expression with no selection?</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-use-count-expression-with-no-selection/m-p/1328750#M8305</link>
      <description>&lt;P&gt;Well, I just realized if I use the "Expression" tab under Dynamic Content for the text widget, instead of "Statistics", then I can give the expression a name, something like "No current selection" and it will display that text when there is no selection.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;It would still be great if we could use Arcade expressions though, or at least have some sort of logic functions built into the expression editors.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2023 16:12:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-use-count-expression-with-no-selection/m-p/1328750#M8305</guid>
      <dc:creator>AndyWells</dc:creator>
      <dc:date>2023-09-14T16:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Count expression with no selection?</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-use-count-expression-with-no-selection/m-p/1328766#M8307</link>
      <description>&lt;P&gt;Could you post your syntax? I tried the Expression tab and didn't get it to work. What happens with a blank name? Maybe you could even try grabbing an invisible unicode character?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2023 16:31:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-use-count-expression-with-no-selection/m-p/1328766#M8307</guid>
      <dc:creator>JeffreyThompson2</dc:creator>
      <dc:date>2023-09-14T16:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Count expression with no selection?</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-use-count-expression-with-no-selection/m-p/1328777#M8308</link>
      <description>&lt;P&gt;I created an expression to display the words "Parcels Selected: " and then the number currently selected. Above it, where it normally says "Expression 1", I changed that to "No Parcels Selected"&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AndyWells_0-1694709586227.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/80688i4FD1CE99D5246AFA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AndyWells_0-1694709586227.png" alt="AndyWells_0-1694709586227.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So when there is a selection the text displays:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AndyWells_1-1694709623713.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/80689iDEF80CD9343DEA0B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AndyWells_1-1694709623713.png" alt="AndyWells_1-1694709623713.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And when there is no selection, the text displays:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AndyWells_2-1694709655854.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/80690i0D03837E9FB8EF7A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AndyWells_2-1694709655854.png" alt="AndyWells_2-1694709655854.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2023 16:41:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-use-count-expression-with-no-selection/m-p/1328777#M8308</guid>
      <dc:creator>AndyWells</dc:creator>
      <dc:date>2023-09-14T16:41:09Z</dc:date>
    </item>
  </channel>
</rss>

