I'm trying to create a project status, but don't want to store the status in the data. I want the status to automatically change when the date passes to be complete. I was able to set up my map and symbolize the features based on this new status. I now want to use the same status within my dashboard as a category picker. How would I use this code within a dashboard?
var started = $feature.Startdate_time
var closed = $feature.Enddate_time
var present = Now()
If (present >= started && present <= closed) {
return "Active"
}
If (present <= started) {
return "Planned"
}
else {
return "Closed"
}