Hi
I hope you guys can help me out.
So I am developing an application to asses recovery. It is very simple really.
It gives you five questions, and the points you get are stored into a databe. At the end of the five questions you get the score for the day wich is basically the average off the five questions. So far no problem.
Where I am finding problems is that I like the start screen to show the average of five days of recovery. But i can’t get it to work.
So far I have accomplished so that it saves the daily value the total of that day into a separate database where all the totals are saved. It would be easy if I just wanted an average of all the totals. But I only need and average of the last five inputs. Is this possible?
Also - is there a way to make the ”totals” database always delete the oldest post, so that the database only is 5 post long?
Thank you in advance!!