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
-
- 154
- 0
- 2 days ago
-
- 1268
- 1
- Apr 4
-
- 402
- 1
- Mar 20
-
- 406
- 0
- Mar 14
-
- 339
- 0
- Feb 21
-
- 324
- 1
- Feb 14
-
- 411
- 0
- Feb 13
-
- 394
- 0
- Feb 11
- see all
Recent Activities
joeythelemur commented 2 days ago
How can I better organize a LOT of properties?amandabee asked 2 days ago
Can I see all inbound broken links in a public not…amandabee selected an answer 2 days ago
Adding a basic feedback form to pages in a Notion…amandabee answered 2 days ago
In Notion, I want the “Title” column to be filled …amandabee answered 2 days ago
How can I better organize a LOT of properties?
...