#
Views
Views allow you to organize the information in a Base in multiple ways. A base can contain several views, and each view can have a unique configuration to display, sort, and filter files.
For example, you may want to create a base called "Books" that has separate views for "Reading list" and "Recently finished".
#
Toolbar
At the top of a base is a toolbar that lets you interact with views and their results.
View menu — create, edit, and switch views.
- Results — limit, copy and export files.
Sort — sort and group files.
Filter — filter files.
Properties — choose properties to display and create formulas.
New — create a new file in the current view.
#
Add and switch views
There are two ways to add a view to a base:
- Click the view name in the top left and select
Add view.
- Use the command palette and select Bases: Add view.
The first view in your list of views will load by default. Drag views by their icon to change their order.
#
View settings
Each view has its own configuration options. To edit view settings:
- Click the view name in the top left.
- Click the right arrow next to the view you want to configure.
Alternatively right-click the view name in the base's toolbar to quickly access the view settings.
#
Layout
Views can be displayed with different layouts including as table,
list,
cards, and
map. Additional layouts can be added by Community plugins. Some layouts are still being developed and require early access versions of Obsidian.
#
Filters
Open the Filter menu at the top of a base to add filters.
A base without filters shows all the files in your vault. Filters narrow down the results to only show files that meet specific criteria. For example, you can use filters to only display files with a specific tag or within a specific folder. Many filter types are available.
Filters can be applied to all views in a base, or just a single view by choosing from the two sections in the Filter menu.
- All views applies filters to all views in the base.
- This view applies filters to the active view.
#
Components of a filter
Filters have three components:
- Property — lets you choose a property in your vault, including file properties.
- Operator — lets you choose how to compare the conditions. The list of available operators depends on the property type (text, date, number, etc)
- Value — lets you choose the value you are comparing to. Values can include math and functions.
#
Conjunctions
- All the following are true is an
andstatement — results will only be shown if all conditions in the filter group are met. - Any of the following are true is an
orstatement — results will be shown if any of the conditions in the filter group are met. - None of the following are true is a
notstatement — results will not be shown if any of the conditions in the filter group are met.
#
Filter groups
Filter groups allow you to create more complex logic by creating combinations on conjunctions.
#
Advanced filter editor
Click the code button to use the advanced filter editor. This displays the raw syntax for the filter, and can be used with more complex functions that cannot be displayed using the point-and-click interface.
#
Sort and group results
Open the Sort menu to sort and group the results in a view.
You can arrange results by one or more properties in ascending or descending order. This makes it easy to list notes by name, last edited time, or any other property — including formulas.
You can also group results by a property to organize similar items into visually distinct sections. Currently, Obsidian supports grouping by only one property.
#
Add a sort
- Open the
Sort menu at the top of the view.
- Choose the property you want to sort (or group) by.
- If you have multiple sorts, drag them up or down using the
grip handle to change their priority.
The options for ordering results depend on the property type:
- Text: sort alphabetically (A→Z) or in reverse alphabetical order (Z→A).
- Number: sort from smallest to largest (0→1) or largest to smallest (1→0).
- Date and time: sort by old to new, or new to old.
#
Remove a sort
- Open the
Sort menu at the top of the view.
- Click the
trash can button next to the sort or group you want to remove.
#
Limit, copy, and export results
#
Limit results
The results menu shows the number of results in view. Click the results button to limit the number of results, and access additional actions.
#
Copy to clipboard
This action copies the view to your clipboard. Once in your clipboard you can paste it into a Markdown file, or into other document apps including spreadsheets like Google Sheets, Excel, and Numbers.
#
Export CSV
This action saves a CSV of your current view.
#
Embed a view
You can embed base files in any other file using the ![[File.base]] syntax. The first view in the list will be used. You can change the order by dragging views in the view menu.
To specify the default view for an embed use ![[File.base#View]].
See also
This page provides an introduction to Bases syntax in Obsidian.
Cards is a type of view you can use in Bases.
Bases let you create database-like views of your notes. Here's how you can create a base and embed it in a note. Every base can have one or more
Formulas allow you to create calculated properties using data from other properties. You can perform calculations, manipulate text, work with dates,
This page details the functions used in Obsidian Bases to manipulate data from properties in filters and formulas.
Create database-like views of your notes, formatted as tables or cards. Edit, sort, and filter files using their properties.
List is a type of view you can use in Bases.
Map is a type of view you can use in Bases. It requires installing the Maps plugin.
Table is a type of view you can use in Bases.