TABLE
sum(default(rows.sport.kettlebell,0)) AS "Kettlebell",
sum(default(rows.sport.freelitics,0)) AS "Freelitics",
sum(default(rows.sport.pushups,0)) AS "Pushups",
sum(default(rows.sport.abs,0)) AS "Abs"
FROM "daily"
GROUP BY file.day.month + "-" + file.day.week AS pipo
TABLE
sum(default(rows.sport.kettlebell,0)) AS "Kettlebell",
sum(default(rows.sport.freelitics,0)) AS "Freelitics",
sum(default(rows.sport.pushups,0)) AS "Pushups",
sum(default(rows.sport.abs,0)) AS "Abs"
FROM "daily"
GROUP BY file.day.month AS pipo
Hello there, I’m very new to this forum but have been reading some on this topic.
I use Obsidian mainly for Bible study, and have started to put Bible verses as seperate notes in my Vault. Their title is like this: “Mt. 5.3”
I thought the dataview plugin would be nice to query for a list or a table of Bible verses in a specific book (grouped by chapter if that would be possible).
Now when trying to write a query to do this, dataview doesn’t seem to recognize the chapter number very well and it doesn’t sort correctly (sorts as 1, 10, 101, 11, 2, 21, …).
This is my current code snippet:
LIST FROM "Bijbelverzen"
WHERE contains(file.name, "Ps.")
SORT file.name ASC
And personally, I wouldn’t have any idea on how to group by chapter. The verses don’t contain any YAML frontmatter for the reason of simplicity when taking notes.
Would anyone have an idea of how to solve this and how to write a query that correctly searches for and sorts verses of a specific book?
“econtains” is the wrong operator. This query works:
```dataview
LIST
WHERE contains(company,"Disney")
```
====================
I’ve seen several examples on here of using the WHERE clause in interesting ways but none seem to address my use case. I’d like to use a WHERE LIKE style phrase. I understand that the closest to a “LIKE” operator is the “contains” clause in Dataview.
Use Case follows.
I use meta fields to create a lite CRM in Obsidian.
I have “company” notes spread across multiple folders in Obsidian. When I create a note for a person I will add a YAML field for “company” and use internal linking to insert the company name property.
I have a field for “company” that looks like this for each “person” note:
I’d like to use Dataview to display all notes with the company “Disney” meta field. I don’t want to worry about the folder that the “Disney” note is in. I’ve tried variations of this Dataview query but they all fail:
```dataview
LIST
WHERE econtains(company,"Disney")
```
Hello,
Yes weeks numbers are per month and not yearly week number so I concatenate month and week number to get unique weeks groups.
The frontmatter needs to use 2 spaces to indent. Is it working with 2 spaces?
Is it possible to use Dataview to get all pharagraphs (in all documents) that contains a tag? Example of paragraphs I have in several notes:
Note 1:
Today I had a meeting with #John
I discussed an interesting topic with #Lizz
I bought a house
Note 2:
#Tom and #John are now doing a new project together.
#Lizz wants a raise
And so on…
Now, I want to add a note called [[John]] to my vault, that fetches all pharagraphs (from all notes) with the tag #John in them. In other words: The output should be all sentences/paragraphs concerning #John.
Is this even possible with Dataview? I have tried this code, but obviously it doesn´t work:
LIST FROM #John
The above lists all the notes where #john exists, but I want the surrounding text. Is it possible?
Hi, I need some help for something that I can’t figure out by myself: I have a very metadata heavy organizational system that benefits from having maps of content using breadcrumbs.
I have not seen a way to do that directly in Dataview but you may consider the Obsidian query language. For example, this query may do what you want:
```query
path:"Notes/" block: (#John)
```
This will find all blocks that have the string “#John” in a folder named “Notes”.
This will only work with tags that use an octothorp. If the tag is set in the YAML without an octothorp then this query will skip those because it is an exact string match.
```` dataview
TABLE
without id
join(doctype, "") as docType,
rows.file.link as File
FROM "Notes/Zettle/References"
WHERE
doctype
AND file.name != this.file.name
flatten doctype
group by doctype
SORT doctype asc
````
This produces a table that lists every stored value in docType.
Bonus: As a happy accident I discovered that using without id in the first line after declaring a table hides the first column, allowing for more customization!