I have a similar request. I need to symbolize valves on three fields, Valve type, Valve Position and Valve Exercise date. I've got an Arcade expression that groups the date into year, but I would love to add the Valve Type, and the Valve Position.
This is what my Arcade expression looks like:
var timestamp2021 = Date($feature.LASTSERVICE)
if (timestamp2021 >= Date(2021,01,01) && timestamp2021 < Date(2022,01,01)){return "2021-01-01 - 2022-01-01"}
var timestamp2020 = Date($feature.LASTSERVICE)
if (timestamp2020 >= Date(2020,01,01) && timestamp2020 < Date(2021,01,01)){return "2020-01-01 - 2021-01-01"}
var timestamp2019 = Date($feature.LASTSERVICE)
if (timestamp2019 >= Date(2019,01,01) && timestamp2019 < Date(2020,01,01)){return "2019-01-01 - 2020-01-01"}
else {return "Some earlier date range"}
Is this at all possible?