Notion Formulas: Show The Most Recent Database Entry & ANY of Its Properties
This YouTube insight note was created with LilysAI. Sign up free and get 10× faster, deeper insights from videos.
Q: How to display the most recent Notion database entry and its properties?
Q: What key Notion formula functions are used to identify the latest date?
This video reveals how to use Notion's `find` and `map` formulas to display the most recent entry from a related database, along with any of its other properties. You'll learn to dynamically pull specific data points, like an AI summary, and present them cleanly within your Notion workspace.
1. Displaying the Most Recent Database Entry and its Properties
1.1. The Value of Showing Recent Entries
- This technique is useful when you have many related database entries and want to see specific information, like a property or status, from the very latest entry based on time.
- This can be based on any time-related property, such as a date property, creation date, or last edited time.
1.2. Setting Up the Formula with let
- The
letformula function is used to define variables, which saves time and effort by allowing you to reuse complex formulas or terms. - A
letformula starts by defining a variable name, followed by the variable's value, and then the output that uses that variable. - For example, defining
recentas5and then outputtingrecentresults in5.
1.3. Finding the Most Recent Entry with find and map
- The
findformula function is a new tool that helps match an array or relation to specific criteria. - To find the most recent entry, you can use the
findfunction on a relation (like "tasks") and set a condition where the current date of a task matches the most recent date available in that relation. - Previously,
lastandsortfunctions were used for this, but they can now be applied within amapformula to match criteria. - The process involves mapping the tasks and their dates, sorting them to find the last (most recent) condition, and then using
findto locate that specific entry. - This formula effectively finds the related task whose date is equal to the most recent date.
1.4. Demonstrating the Formula's Functionality
- When a task's date is June 8th, it is recognized as the most recent entry.
- If a task's date is changed to May 28th, the formula quickly updates to show June 1st as the most recent entry.
2. Displaying Additional Properties of the Most Recent Entry
2.1. Adding More Properties to the Output
- After defining the most recent entry using the
letformula, you can reference any of its properties for the output. - To add another property, like an "AI summary," you can include a line break (
\n) in the formula output. - This line break separates the name of the most recent task entry from its AI summary, creating a cleaner presentation.
- The formula can be updated to include the AI summary as an additional output after the name of the most recent task.
2.2. Formatting and Verification
- The formula output includes a clickable link to the most recent entry, which can be expanded to verify the displayed information.
- Adding more line breaks can further enhance the formatting and spacing between different pieces of text in the output.
- This approach allows you to display the name of the entry and any other related property that can be defined within the formula.
Understand massive materials like a genius — with LilysAI
Over 1,000,000 knowledge seekers use Lilys AI.
