Is there something like a record counter?
Let me try to explain this.
Right now I have a sheet/table where I have a field with a date.
This is the date of entry.
I have some columns in which I count the last 7 days and use the values of that date in a template, so I can use it for Quickchart.
This works great if every day I input a new record with a date and a value.
But now I was thinking, how about if I skip one or two days, then the counting of the last 7 entries is not working.
So I was looking for something like a record counter.
That every time a new record is added, the counter increases.
Then I could use that counter to count the last 7 entries.
Then I am sure I always have the last seven entries.
Somewhere I saw something with a rollup and count.
And a column that adds a 1 to that count.
But then, how would I place the new number in the newly created row?
Or maybe someone has another idea on how to get the last 7 entries.
I hope my question is clear.
Many thanks in advance for your tips.
(I am still busy learning Glide, so please be as clear and detailed as possible. Thanks)
this is very simple… create a number column, call it counter…
add another column rollup maximum value from counter column
add another math column call it max counter plus 1… and the function will be rollup maximum + 1, now every time you make a new record, set the counter column with the value from the column max counter plus 1.
@Uzo, thanks but it is only working half.
I have created the number column and called it counter
Then I created the rollup column and called it RollupMax and pointed it to the counter column
Then I created the math column and called it “Counter+1”
In there, for the configuration, I had put “counter+1” and for the replacements, I had put counter and let it point to the counter column.
And then it stops.
In the counter column in the first row, I placed the number 1
In the “Counter+1” column it shows 2
But how do I get that number 2 to the counter column every time a new row is added?
As a test, I had 4 rows and place the number 1 to 4 in that column
When I added a new row, nothing happened.
The Rollup column goes to 5, and the “counter+1” goes to 6
And the counter column stays at 4 and the next row is empty.
I had made a screenshot and hopes it shows what I am trying to explain
I see that you did not follow my instruction precisely, your mistake is that you should add 1 to the rollup max column not to counter… change that and it will work well… column Counter+1 should have all numbers the same.