Dataview of all values for a field used in YAML

Is it possible to have dataview output a list of all values entered in the vault for a field in YAML?

For instance, would it be possible to have a list that displays all the different aliases that I have assigned to pages? So instead of having it show me all the pages with a certain alias, it would show me all the aliases used?

Thanks

Hi.
If we consider the yaml syntax key: value, you want a list of all “values” used in you vault?
A list without any relation to the files/pages/notes where they are placed?

```dataview
LIST
WHERE file.aliases
FLATTEN file.aliases
GROUP BY file.aliases
```

Thanks. Will that work for any key, just replacing .aliases with the name of the key?

No. file.aliases it’s an implicit field, i.e., if you use in yaml aliases: other title automatically Obsidian read it as aliases (the same for tags: tag1).
If you use another key, you need to change the query:

```dataview
LIST
WHERE key
FLATTEN key
GROUP BY key
```

(file.<something> only for implicit fields)

1 Like

Thanks so much! Really appreciate the help.

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