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 '19 at 16:49
  • It does not. It's possible that this could be added – Jake Caldwell Dec 16 '19 at 18:04

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";
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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