Dataview query to show all re-reads of book notes

I use Obsidian to track what books I read. I have a system where I create a new note for each book I read. If I re-read a book then I use a number after the title to indicate that it is a re-read.

  • For example, I recently re-read Letter to a Christian Nation by Sam Harris. The re-read note has a title of “Letter to a Christian Nation 1”.
  • I want to create a dataview query that can be put into my book note template that shows you if a book has any re-reads.
  • I already have a slight workaround for this in the below code:
dataview
table Date_Started as "Started", Date_Finished as "Finished", Rating
Where contains(file.name, this.file.name)
  • This query, on the note titled “Letter to a Christian Nation”, i.e. the original book log, will show me that I have read:

    • Letter to a Christian Nation
    • Letter to a Christian Nation 1.
  • However, the same query on the page titled “Letter to a Christian Nation 1” will not show the original book entry.

  • Is there any work-around for this where I can place one query into my book note template which will show all versions (re-reads) of the book? I want to be able to click on the original note and see all subsequent re-reads and also click on the re-read pages and see the original book note as well.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.