Forum Discussion
CourtneyRapp
7 years agoQrew Cadet
Hi! Follow up question: is there a formula for a field to do this so that it shows up in a grid edit report?
- QuickBaseCoachD7 years agoQrew CaptainYes, there is a way, actually. I will post back in a few hours.
- QuickBaseCoachD7 years agoQrew Captain.So here is an idea.
Using Excel, Load up a table with all the consecutive days between now and say 10 years from now. Set the key feild to be the date field.
Make a formula field on the table which calculates the previous day from that key date field.
[Date] - Days(1)
Make a relationship of the table to itself and on the right side of the relationship for the reference field use that formula field. QuickBase will let you make a relationship of a table to itself it will just doublecheck with you to make sure that�s what you really mean.
So now you can make another relationship of the state table down to your detailed records. Of course on the right-hand side of the relationship you will need to have a formula field if you don�t already have a clean date field on the detail table. It looked from your example that you had a date time field.
So now the data table can have that relationship do a summary of the Production numbers for that day. And then based on the relationship of the data table to itself can look up the previous days total production into the current days total production to have a running total. So now that running total can be locked up back down into your production dates table.
Of course somehow you will have to decide when the running total starts at zero. - CourtneyRapp7 years agoQrew CadetHello again,
I wasn't able to make the comment directly above work for what I need, however, I was able to make the original formula for the cumulative sum to work.
My next question is then how do I get those results to convert to numbers for formula use? Basically if I want to subtract the cumulative results from another summary field number, is there a way to do that?
Based on a preliminary search I'm not seeing anything on like a 'ToNumber' for rich text formula fields...