Display w/Dynamic Yearly Calc Values

I am trying to figure out the best way to create a display that would calculate and display the number of operations of an element per year. I have the operation counter coming in as a datapoint, so the math is easy, but not sure about having it create a new yearly field every year.

Ex:

2020 - 200

2021 - 210

2022 - 178

2023 - ???

.....

....

....

Thanks

Andy