I just learned how to use Dataview plugin with Obsidian.MD to automate these lists of my characters and oh my fucking jesus christ, I am absolutely going BALLISTIC at the possibilities of everything righ tnow, i need to calm down and process the things,
would you be willing to talk more about how you use dataview to organize data in obsidian? (i am referring to the fact that you kind of mentioned that you do that in this post, but didn't go into any detail about how.) i appreciate your running this blog! đđ
hello :) gladly!
i'm still a super beginner with dataview, but i'd be happy to walk through the ways i currently use it with obsidian :)
under each daily page, i have a stats section, which is a sort of automatically updating part of my diary.
this day last year: it links me to a diary page from the year previous (i only started using obsidian in the summer so i don't have enough entries for that yet)
upcoming bdays: on pages for my friends / family etc. i have a section on the page's YAML frontmatter for their birthdays - if the birthday is within the month, it'll appear in this section
notes created today: lists all the notes created today
notes modified today: lists all the notes modified today
the only other use of dataview i have atm is that when i create checkboxes like the fofllowing:
i have a page in my vault called 'tasks' that just rounds up all my incomplete tasks in one place so that i can keep all my notes to myself in one spot and to address them later. my rule for this is that these are things / thoughts that i need to process later on, like a short idea for something, or something that needs to be turned into a legit task, etc.
here's a preview of the task page :)
that's honestly it atm - i'd love to incorporate it more into my workflow, but haven't done it yet!
This just took me literal hours to figure out, but my new sewing journal in Obsidian will now auto-list the fabric information for each fabric used in a project.
(Note: Every fabric has an assigned ID that is YY000 format).
Inside the dataview lines:
TABLE WITHOUT ID file.link AS "ID", content_percentages as "Content", weight as "Weight"
FLATTEN this.fabric_id as ids
WHERE contains(file.name, ids)
---
Table without ID just means that they don't add a column for file name.
The items after that are my columns: the link to the fabric's page, the content percentages, and the weight. These are all items in the fabric's metadata
Now, fabric_id is a List item in my metadata. Since a project can contain more than one fabric, you have to FLATTEN the list. That way, each fabric is separated onto its own row. Also, the "this." part is very important because queries are looking at your entire vault and not just a section (unless you limit it with 'from' which I didn't here as I wanted to pull from multiple parts of my vault).
My "where" is where I limit so that my table only shows the fabric information for those fabrics in that project. Since my fabrics are all listed by their ID number, I can just match the two using contains (basically, in the file name, look for the id).
At least, that is how I understand what I've done.
Dans cette zone de code on va saisir notre requĂȘte. Comme on veut un tableau, on va saisir le mot clef "TABLE" et indiquer par la suite les champs de cette table.
```dataview
TABLE Nom, Prenom, Login, Password, Domaine
FROM "Import"
```
```dataview
TABLE WITHOUT ID TPH,rows.Nom AS Nom, rows.Prenom AS Prenom, rows.Login AS User, rows.Password AS MdP, rows.Domaine AS URL
FROM "Import"
SORT TPH ASC
GROUP BY TPH
```
```dataview
TABLE WITHOUT ID TPH,join(rows.Nom,"") AS Nom,join(rows.Prenom,"") AS Prenom,join(rows.Login,"") AS User,join(rows.Password,"") AS MdP,join(rows.Domaine,"") AS URL
FROM "Import"
SORT TPH ASC
GROUP BY TPH
```
YES ! on y est... Pas tout à fait, car là on a toutes les valeurs hors on veut filtrer de façon à n'avoir que les renseignements complets :
```dataview
TABLE WITHOUT ID TPH,join(rows.Nom,"") AS Nom,join(rows.Prenom,"") AS Prenom,join(rows.Login,"") AS User,join(rows.Password,"") AS MdP,join(rows.Domaine,"") AS URL
FROM "Import"
SORT TPH ASC
GROUP BY TPH
WHERE length(rows.Nom)=3
```
Obsidian Hub is a guide to using Obsidian personal wiki or personal knowledge management (PKM) software. It includes an intro to the Dataview plugin, which Iâve been trying to figure out.