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
-
- 81
- 0
- 1 day ago
-
- 71
- 0
- 4 days ago
-
- 479
- 0
- Apr 29
-
- 444
- 1
- Mar 20
-
- 445
- 0
- Mar 14
-
- 400
- 0
- Feb 21
-
- 390
- 1
- Feb 14
-
- 447
- 0
- Feb 13
- see all
Recent Activities
jcarminio asked 1 day ago
Thoughts on adding Notion AI's web search access i…amandabee asked 4 days ago
Display backlinks in a block or page?amandabee answered 5 days ago
Counting Stars?polle answered 6 days ago
Counting Stars?amandabee answered 6 days ago
settings of font colour changed?
...