I have a database for members that calculates their attendance via roll up from another events database. How can I filter the rollup to count the number of events a member goes to after a certain date? I've tried using tags and using a formula to restrict the attended members at each event and I'm stuck.
Connect
1 Answer
You can try this formula instead of using rollup.
prop("Events")
.filter(current.prop("Date").formatDate("YYYY") == formatDate(now(), "YYYY"))
.length()
It's currently filtering and counting how many events the member has participated for this year. You can simply change the now() to the year you desire.
Here's the template and the formula inside:
https://thomasyang.notion.site/Notion-Calendar-Filter-11cf60eceaf680c0b765f88badb5ac06?pvs=4
Related questions
- Counting the number of days in a date range based on the year (how to split day between 2023 and 2024)
- Is it possible to return the name of every day within a time range via formula?
- Show every three years date and it is today with Notion formulas
- How to apply a filter to every view on a database ?
- "Show calendar by" using formula?
Without Answer
-
- 220
- 0
- May 19
-
- 114
- 0
- May 16
-
- 500
- 0
- Apr 29
-
- 464
- 1
- Mar 20
-
- 473
- 0
- Mar 14
-
- 416
- 0
- Feb 21
-
- 405
- 1
- Feb 14
-
- 471
- 0
- Feb 13
- see all
Recent Activities
amandabee asked May 16
Display backlinks in a block or page?amandabee answered May 15
Counting Stars?polle answered May 14
Counting Stars?amandabee answered May 13
settings of font colour changed?
...