Function or command for accumulated balance

91 views
Skip to first unread message

Javier Sejas

unread,
Feb 15, 2025, 5:40:23 PM2/15/25
to mementodatabase
Hello!
Does anybody could help me how to create a fast function or know a command  for accumulated balance (the accumulated sum of a  field). Best woulñd be if before the accumulated sum the records would be ordered by datetime (not creation date time of the record)
Thanks too much.

Bill Crews

unread,
Feb 15, 2025, 6:01:29 PM2/15/25
to Javier Sejas, mementodatabase
The most straightforward answer for this is to go into Edit Library, tap the Aggregation tab, and add a sum function for the field you want to sum. 

Then go into the entries list, open the right-side menu, select sort, and identify your date-time field. 

That should do it. Your sum will be at the bottom. If you need more, there are other ways to do it, but they're more complicated. 


--
You received this message because you are subscribed to the Google Groups "mementodatabase" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mementodataba...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/mementodatabase/94b93105-b3d3-44c6-88cd-5640d2c467a6n%40googlegroups.com.

Mmm

unread,
Feb 16, 2025, 2:14:38 AM2/16/25
to mementodatabase
Шаблон с вариантом решения:
воскресенье, 16 февраля 2025 г. в 02:01:29 UTC+3, bill....@gmail.com:
IC_16022025.jpg

Bill Crews

unread,
Feb 16, 2025, 2:47:01 AM2/16/25
to Mmm, mementodatabase
If you use Mmm's template, create your new library and the go into the right-side menu and sort by date. Maybe also group by date. If you need finer precision, you might want to substitute aDateTime field for the Date field. 


Mmm

unread,
Feb 16, 2025, 4:16:54 AM2/16/25
to mementodatabase
Верное дополнение. 
К сожалению, MDB при создании шаблона библиотеки не сохраняет исходную сортировку. 
В примере я использовал обратную сортировку по полю "date". 

воскресенье, 16 февраля 2025 г. в 10:47:01 UTC+3, bill....@gmail.com:

David Gilmore

unread,
Feb 16, 2025, 11:57:31 AM2/16/25
to mementodatabase
Are you talking about having a "running total" in each entry, or an overall total?

Creating a "running total" can be found in this thread:

Reply all
Reply to author
Forward
0 new messages