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.

  • Does the data contain a field that records when the attribute is changed?
    – kenbuja
    Dec 16, 2019 at 16:49
  • It does not. It's possible that this could be added Dec 16, 2019 at 18:04

1 Answer 1


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";

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.