I am very new to Arcade and having a lot of trouble trying to write an expression. I have a Survey123 form that users are filling out. It shows if a valve is open or closed, and one valve can have many entries based on when it was surveyed.
The fields that are relevant are ScanAssetTag (valve id), OpenClosed (status of valve), and CreationDate (when survey was completed).
I was wondering if there was a way to use an Arcade expression to evaluate which valve has the most recent date and then symbolize only that point, and show if that valve is Open or Closed.
I found this thread which is sort of what I'm looking for, but I can't use the FeatureSetName function because those are only for popups and I'm writing an expression for Style. Also, I don't know if I'm able to create a new field to visualize valve status using numerical values.
Thanks!