Hi,
Is it possible to pass/access the data selector variable(s) in a lists data expression?
- If possible how do you set it up in the date selector?
- How do you retrieve it in the data expression?
var portal_ = Portal("https://myportal.com/portal");
var fromDate = <date_selector.minDate> //'2025-01-25'
var toDate = <date_selector.maxDate> //'2025-02-01'
var expression = "date_captured > '" + fromDate + "' and date_captured < '" + 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')
Thanks for any help,
Elliott