I have a table with 5K+ rows of data as such:
table1
Date - Year(formula of date) - Month(formula of date) - DataPoint
1/1/2020 2020 01 546
1/2/2020 2020 02 45
...
I'm pulling this data occasionally to an external dashboard with paginated API calls and would rather not have that latency.....which is fine, as I don't need all 5K+ records....I really just need the grouped and summed yearly and monthly totals such as:
Year - Month - DataPoint (a rollup sum)
2020 1 1,400
2020 2 1,122
2020 3 1,300
...
So, I figured I should try to just create a new table summarizing the data and do API calls to that table.
I made a table2. I made a new column on the far right of table1 "yearLink". This column was setup to be a link to table2. I then pasted the "Year" column date into "yearLink" and table2 was populated with unique year values (2020, 2021, 2022, 2023, 2024). Then I can put a rollup field in table2 and sum the dataPoint values.
Issues: It doesn't give me months..though I'm sure I could work that in somehow. Bigger issue, when I add new records, how do I keep the link populating? And, obviously, once I hit 2025 I'll need that year 'migrated over' to table2 from table1.
But mostly, this all feels like it must be unneccessarily complex. I know a bit of javascript, so I can tinker into scripting if that's the best path..but seems there should also be a much more elegant solution through the UI.
I appreciate any thoughts and the time!
Best,
Brady