Map Viewer - Date Filter (today/after today/Date Range)

1857
11
09-20-2023 11:15 AM
Status: Open
SteveCole
Frequent Contributor

The new Map Viewer (both AGOL and Enterprise) should have the ability to filter a layer's data by a date relative to the current date. For example, I have a layer of construction closures that have a start and endate as attributes. I want to apply a filter such that only records where the closing date occurs in the future would be displayed. With Map Viewer Classic, I believe you could edit the map's JSON in AGOL Assistant to implement this but I don't know if this is still possible with the new Map Viewer. Either way, users should have to hack their maps for a pretty standard date filter option.

The choices would be something like:

"occurs on.."   <Specific Date | Today>

"occurs on or after.." <Specific Date | Today>

"occurs on or before.." <Specific Date | Today>

It would be nice to also have some addition variants like "within the next week | within the next month" but a relative option like "today" should be the absolute minimum.

11 Comments
Amanda__Huber

@JörgMoosmeier  where are you seeing these additional expression filters? 

We're using ArcGIS Online and only see these options  for date time fields: 

Amanda__Huber_0-1714504769771.png

We're looking for an expression that is "in the current year". I don't think that exists yet so maybe that should be a separate idea post? 

 

Thanks,

Amanda Huber