Skip to content

Instantly share code, notes, and snippets.

@smarkwell
Last active January 13, 2023 18:58
Show Gist options
  • Save smarkwell/9a1ffe0459af93e378e544e67e9ccb88 to your computer and use it in GitHub Desktop.
Save smarkwell/9a1ffe0459af93e378e544e67e9ccb88 to your computer and use it in GitHub Desktop.
Sample Dataview Faction
---
status: Alive
factions:
- name: This File
role: Leader
---
I am the Leader of This File faction
#character
# Members
```dataview
table
map(filter(factions,
(f) => link(f.name) = this.file.link
),(f) => f.role) as "Role(s)",
status as "Status"
from #character
where contains(map(factions.name,(n) => link(n)), this.file.link)
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment