Apr 05, 2024 12:52 PM
I generate records through the week that all pertain to an event on Saturday. For organising these records into a week-by-week historical view (and for ease of human use on Saturday), I want to be able to automatically tag all of these records for the Saturday they pertain to.
I have searched and tried a few things - this is the formula I got closest with:
Solved! Go to Solution.
Apr 05, 2024 02:49 PM - edited Apr 05, 2024 02:56 PM
If you create the record on a Saturday, do you want it to show that Saturday or the next one?
DATEADD(Created, 6-WEEKDAY(Created), ‘days’)
^^^if you create it on Saturday 6 April it will show 6 April
IF(
WEEKDAY(Created)=6,
DATEADD(Created, 7, ‘days’),
DATEADD(Created, 6-WEEKDAY(Created), ‘days’)
)
^^^if you create it on 6 April it will show 13 April
Apr 05, 2024 02:49 PM - edited Apr 05, 2024 02:56 PM
If you create the record on a Saturday, do you want it to show that Saturday or the next one?
DATEADD(Created, 6-WEEKDAY(Created), ‘days’)
^^^if you create it on Saturday 6 April it will show 6 April
IF(
WEEKDAY(Created)=6,
DATEADD(Created, 7, ‘days’),
DATEADD(Created, 6-WEEKDAY(Created), ‘days’)
)
^^^if you create it on 6 April it will show 13 April
Apr 05, 2024 08:08 PM
Thanks! That works 🙂