I am working with Heat Index values and I want to be able to only send emails when a heat index value, for example enters into the range of 88 to 93, but I don't want to send an email if the subsequent attribute value updates are within the same range as the previous value. Anybody have any helpful ideas on what tools or combination of Arcade to make something like this function?
Solved! Go to Solution.
I would combine either an Incident Detection node with a Filter By Express (Start, Stop, Ongoing) and Control Event Volume node, or simply a Filter By expression (Between x and y) with a Control Event Volume. Probably the Incident Detection would work best based on your description.
I would combine either an Incident Detection node with a Filter By Express (Start, Stop, Ongoing) and Control Event Volume node, or simply a Filter By expression (Between x and y) with a Control Event Volume. Probably the Incident Detection would work best based on your description.
@ArmstKP I can envision two ways to achieve this:
First, as @JeffSilberberg suggested you can use the Detect Incidents tool and set an attribute expression that identifies the incident criteria. Then, add a Filter by Expression tool following to only let pass incidents where $feature.IncidentStatus == "Started" || $feature.IncidentStatus == "Ended" (if desired)
Another option is to use the Calculate Fields tool followed by a Filter by Expression. Your Calculate Fields tool can calculate a numeric or boolean value to indicate if the prior value was in the defined range. This would leverage the TrackFieldWindow track function. Then the Filter by Expression tool could follow to filter out unwanted values. Additional doc on track functions.