Obsidian Dataview Examples

These Obsidian Dataview Examples are built for Obsidian users who want practical DQL patterns they can copy, paste, and adapt. Start with a TABLE, LIST, or TASK example, then adjust the folder, tag, field names, and sort rules for your vault.

This Obsidian Dataview Examples collection covers TABLE dashboards, LIST indexes, and TASK reviews, with practical patterns you can adapt to real vaults.

Open the visual Dataview query builder

How to use these Dataview query examples

Paste an example into an Obsidian note inside a dataview code block. If the result is empty, first confirm that the Dataview plugin is enabled, then check the folder path and field names. Most empty results come from a mismatch between the query and your frontmatter or inline fields.

TASK examples

Query type: TASK

Open project tasks

Collect unfinished tasks from project notes and sort them by due date.

Required fields: completed, due

```dataview
TASK
FROM "Projects"
WHERE completed = false
SORT due ASC
```

How to customize: Dataview task queries can read task-level fields if you add inline metadata to tasks.

Query type: TASK

Habit tracking tasks

Review habit-related tasks from daily notes.

Required fields: Tags

```dataview
TASK
FROM "Daily"
WHERE contains(tags, "habit")
SORT file.path DESC
LIMIT 20
```

How to customize: Use a folder such as Daily, Journal, or Logs depending on where your habit notes live.

Query type: TASK

Overdue task review

Find unfinished tasks where the due date is before today.

Required fields: completed, due

```dataview
TASK
FROM "Projects"
WHERE completed = false AND due < date(today)
SORT due ASC
```

How to customize: If your due field is named deadline, replace due with deadline.

Query type: TASK

Meeting follow-up tasks

Collect open tasks from meeting notes for a weekly review.

Required fields: completed

```dataview
TASK
FROM "Meetings"
WHERE completed = false
SORT file.mtime DESC
```

How to customize: Use this when meeting action items are written as Markdown tasks inside meeting notes.

Dataview examples FAQ

Can I copy these examples directly into Obsidian?

Yes, every query is valid DQL. Paste it into a code block with `dataview` as the language.

How do I customize a query for my own vault?

Click Open in Builder on any example to adjust filters, FROM path, and columns for your vault.

What if a query returns no results?

Check that the folder path or tag in the FROM clause exists in your vault, field names match your frontmatter exactly, and the Dataview plugin is enabled.

Next steps