Dataview Query on 'Creating a List of notes that are NOT currently linked to 'universal note A'

First, search the help docs and this forum. Maybe your question has been answered! The debugging steps can help, too. Still stuck? Delete this line and proceed.

What I’m trying to do

I’m trying to create a dataview LIST that queries all notes that do NOT have a “linked mention” to “universal note A”

The purpose of this:

Universal Note A is a MOC (map of content) I created. (P.S MOC is a PKM organization strategy developed my Nick Milo)

Universal Note A will have all the notes in my obsidian linked inside of it.

However, to help with my “workflow” I need a dataview list of all notes NOT yet linked into universal note A.

So that I can quickly know which notes I need to still “link” into universal note A

Things I have tried

I’ve tried searching for this in the forums but I don’t think anyone has had the exact same question or need as me so I haven’t found a dataview query formula that will accomplish what I need

1 Like

Impossible to give an exact query when the structure and metadata aren’t known. But in the sample below, the first query lists the files (a, b, and d) that link to the MoC, and the second query lists the file (c) that doesn’t link to the MoC. Both queries are in the MoC file.

### files that link to MoC

```dataview
LIST
FROM ([[#]])
WHERE file.name != this.file.name
SORT file.name ASC
```
### files that don’t link to MoC
```dataview
LIST
FROM -([[#]])
WHERE file.name != this.file.name
SORT file.name ASC
```

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