I'm looking for a way to add a card to an Operations Dashboard, Sites, or Hub site that will dynamically count down the days until an event. It looks like it should be possible if I use an Indicator in Operations Dashboard because of the example they have on this page.
I can't figure out how to put in a formula that will dynamically subtract today's date from the date of the event and put that count of days in the Indicator.
That helps -- I wasn't able to make sense of the documentation, but you've clarified how it is supposed to work.
I wonder my problem is that Portal 10.7.1 doesn't support date fields in Indicators? When I click the drop-down to choose a field for my reference value, it tells me that I have "No matching options" in the feature:
I don't have any numeric fields in this feature class -- just text and dates -- so I'm guessing that it's looking for a short, long, or double field.
EDITED TO ADD: Looks like dates aren't supported, if this post on Geonet is correct. If that's the case, I wonder how they did the card in the example in my screenshot? There has to be math involved somewhere, or the ticker wouldn't be dynamic.
Maybe try using Statistic as the Reference Type instead of Feature. I'm using Operations Dashboard through ArcGIS Online and it is allowing me to use date fields as long as I use Statistic as the Value Type.
Is your data coming from a Feature Layer? I'm wondering now if I need to republish the service in a different format because I can't get any of the fields to come up via Statistic. (I switched to AGOL, but the web service is coming from my server/portal)
The layer I used to test to see if the date would work is a feature layer. However, it is a hosted layer and not on my server, but I wouldn't think that would make a difference.