-
Notifications
You must be signed in to change notification settings - Fork 83
Description
Is your feature request related to a problem? Please describe.
Calling update on Period Stats uses current date to calculate e.g. “last 7 days” no matter where the summary is located. If I update summary for inside my 2023-05-08 note on 29th of May I’ll get stats from 22nd of May not 1st of May.
Describe the solution you'd like
I would like to have an option where current date was inherited from the node date (if a calendar note) so stats inside 7th of May note should run up to 7th of May, even if updated 5 months later.
Describe alternatives you've considered
Having an option to specify period range so I could go and hardcode date for past summaries e.g.:
{ “period”: “2023-05-01…2023-05-07” }
Additional context
I use period stats inside my weekly notes to see e.g. my sleep and habit patterns. If forget to tag a habit and update it on a later date the updated stats are for the current (future relative to the week) date not that original week period destroying the averages that should be based on past not present.
Currently I’m considering deleting all past summaries as many of them are based on wrong time periods and therefore misleading.
CC: @jgclark