TransWikia.com

Displaying a device which has changed it's connection ID in the last week using Arcade Expression in ArcGIS Online?

Geographic Information Systems Asked by Jake Caldwell on December 21, 2020

I have about 250 devices in a map, but I want to only display devices that have had a certain attribute change within the past week.

I have minimal experience with Arcade expressions and cannot find guidance for this particular query online.

One Answer

If you had a field containing the date the attribute was changed ("DateField"), you could use something like this

var days = DateDiff(Date($feature.DateField), Now(), 'days');
if (days <= 7) {
  return "Changed last week";
}

Answered by kenbuja on December 21, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP