I have a big data analytic that is summarizing statistics for a real-time data feed database where data in the database is from 2020-current. I'd like to summarize the data by year, quarter, etc so eventually it would run every week or something. However, I can't seem to figure out how to do that. Summarize within doesn't seem to have a "summarize by" distinct values. When I run it - I just get one row of data for all the years. Any suggestions? Is this possible in ArcGIS Velocity? Looks like the Summary fields type of (Any) option just pushes a random entry through.
Solved! Go to Solution.
Hi @Teresa_Blader is your goal to do a spatial summary by year (multiple counties, different results for each county)? Or are you just trying to do summary analysis on attributes based on time like year.
If the latter, from what I can see, I might propose the following:
The Summarize Within tool is used to summarize and calculate attribute values of the records that fall within various spatial boundaries.
Thanks!! That seemed to get me where I needed to be, just had to add the geometry with Map Fields which worked since each area is for the same location.
Hi @Teresa_Blader is your goal to do a spatial summary by year (multiple counties, different results for each county)? Or are you just trying to do summary analysis on attributes based on time like year.
If the latter, from what I can see, I might propose the following:
The Summarize Within tool is used to summarize and calculate attribute values of the records that fall within various spatial boundaries.
Both, but just for one county - so it still is associated to a county boundary polygon, but I am trying to summarize by the year and quarter.... I suppose I could just do tabular data though. Probably why I didn't try the summarize attributes tool! I'll give that a try.
Thanks!! That seemed to get me where I needed to be, just had to add the geometry with Map Fields which worked since each area is for the same location.
Now that I got this working, just wanted to share the dashboard I made using this workflow - instead of using the feed data which would have exposed public health information like name, date of birth, and address - I am able to summarize the data at the county level by year, quarter, and week which is shared with the public 🎉
https://www.arcgis.com/apps/dashboards/5f94573ed8da4cb5a07ec3c01907fb24
Things I learned:
1. Categorical Data is kind of painful to summarize from the feed, but with arcade and the iff function I made it through. Each record essentially got a 1 if it contained this category or 0 if it didn't. So a new field for each category I summarized.
2. I originally created a view off of the final output in AGOL, and had that connected to the dashboard, however the view quickly breaks if you are replacing the features and the schema when it runs and do any changes to the database, like adding more category fields. I would do that differently, but can't seem to change that setting after Velocity has created that new output feature layer... assuming that the other settings wouldn't cause the view to break.