<?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 Pass date selector variables to list item using data expression? in ArcGIS Dashboards Questions</title>
    <link>https://community.esri.com/t5/arcgis-dashboards-questions/pass-date-selector-variables-to-list-item-using/m-p/1589293#M10802</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Is it possible to pass/access the data selector variable(s) in a lists data expression?&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;If possible how do you set it up in the date selector?&lt;/LI&gt;&lt;LI&gt;How do you retrieve it in the data expression?&lt;/LI&gt;&lt;/OL&gt;&lt;LI-CODE lang="javascript"&gt;var portal_ = Portal("https://myportal.com/portal");

var fromDate = &amp;lt;date_selector.minDate&amp;gt; //'2025-01-25'
var toDate = &amp;lt;date_selector.maxDate&amp;gt; //'2025-02-01'
var expression = "date_captured &amp;gt; '" + fromDate + "' and date_captured &amp;lt; '" + toDate + "'"

var fs = Filter(FeatureSetByPortalItem(portal_,"9f45d78ed9034d9fb45ab84066f9c1de",2,['name','date_captured','number'],false),expression);

var grBy =  GroupBy(fs, 'name',{name: 'Total', expression: '1', statistic: 'COUNT'});

return OrderBy(grBy, 'Total DESC')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any help,&lt;/P&gt;&lt;P&gt;Elliott&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 26 Feb 2025 06:22:32 GMT</pubDate>
    <dc:creator>ECarson</dc:creator>
    <dc:date>2025-02-26T06:22:32Z</dc:date>
    <item>
      <title>Pass date selector variables to list item using data expression?</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/pass-date-selector-variables-to-list-item-using/m-p/1589293#M10802</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Is it possible to pass/access the data selector variable(s) in a lists data expression?&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;If possible how do you set it up in the date selector?&lt;/LI&gt;&lt;LI&gt;How do you retrieve it in the data expression?&lt;/LI&gt;&lt;/OL&gt;&lt;LI-CODE lang="javascript"&gt;var portal_ = Portal("https://myportal.com/portal");

var fromDate = &amp;lt;date_selector.minDate&amp;gt; //'2025-01-25'
var toDate = &amp;lt;date_selector.maxDate&amp;gt; //'2025-02-01'
var expression = "date_captured &amp;gt; '" + fromDate + "' and date_captured &amp;lt; '" + toDate + "'"

var fs = Filter(FeatureSetByPortalItem(portal_,"9f45d78ed9034d9fb45ab84066f9c1de",2,['name','date_captured','number'],false),expression);

var grBy =  GroupBy(fs, 'name',{name: 'Total', expression: '1', statistic: 'COUNT'});

return OrderBy(grBy, 'Total DESC')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any help,&lt;/P&gt;&lt;P&gt;Elliott&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2025 06:22:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/pass-date-selector-variables-to-list-item-using/m-p/1589293#M10802</guid>
      <dc:creator>ECarson</dc:creator>
      <dc:date>2025-02-26T06:22:32Z</dc:date>
    </item>
  </channel>
</rss>

