How do you use multi-word YAML fields?

I am trying to figure out how to work with multi-word YAML fields in dataview.

This is one of my notes with the YAML metadata.

This is my attempt to create a table that display the values in the “Loc Name” field.

This is the resulting table.

I’m not sure what I’m doing wrong. According to the documentation, I should be able to call multi-word fields by making them all lowercase and replacing the spaces with hyphens.

Hi.
Using fields as expressions (key with multiple words) isn’t the best practice. It’s possible, but not the best way.
My advice is: avoid them.
If used in yaml, for dataview you need to target the field in this way:

row["Loc Name"] AS "Loc Name"
1 Like

Thanks, that worked.

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