What am I doing wrong with Dataview?

I’m trying to create a table where I track how far I’ve run and my average pace. I’m getting this error message…

This is the snippet in my daily notes:

Screen Shot 2022-01-12 at 4.39.40 pm

This is the snippet in the note I want to add the table to:

Screen Shot 2022-01-12 at 4.39.50 pm

This is the error message:

Screen Shot 2022-01-12 at 4.39.55 pm

Space in the YAML? See sample note attached.

Daily Notes.md.zip (789 Bytes)

Angel

It seems like u r putting the values outside of yaml. If that’s the case the key:: value should be separated with two colons. Also as Angel noted, no spacing for key name

If in yaml…

---
Distance: 3.8
Average-pace: 6.3
---

If in note/body/content…

Distance:: 3.8
Average-pace:: 6.3

Hi to the community,

I have troubles with the table view in dataview.

table from #impt
SORT file.mtime DESC

However, when i change it to list, there is no issue.

list from #impt
SORT file.mtime DESC

note: #impt is a tag that I use.

Am i missing something here? Apologies for the basic question

Hello.

The table needs one or more field values (with optional column names).

Does the following work?

dataview
TABLE file.name, file.mtime
FROM #impt
SORT file.mtime DESC

Angel

BIG Thanks Angel! Really appreciate it.

I’m now looking at this forum page for some showcase use of dataview: Dataview plugin snippet showcase - #393 by tomhaley

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