Gemini can't find an answer to why Dataview not working...help please

Can’t get dataview to display anything

I am trying to get dataview to display something. Currently, there is no change when I toggle between the edit and read panels after painstakingly following every Gemini piece of advice. AI has given up on me and sent me to the experts in the community. Any help would be appreciated.

Things I have tried

  • I have copy and pasted queries exactly as provided.
  • I have turned off all other community plug-ins.
  • I have created a new vault and tried in there.
  • I have reinstalled obsidian.

Gemini says everything is correct but the reading pane appears not to be rendering correctly.

In my most simple test case. This is the code for my Note:

---
testKey: testValue
---

This is the test data note.

This is the code for my query in a different Note:

LIST WHERE testKey = "testValue"

Nothing changes when I toggle back and forth between reading and editing using either Ctrl+E or clicking on the icon.

It’s difficult or impossible to help with code-related questions if you don’t show the actual code. Show the entire Dataview query, and use backticks to format it as code. Show the code with 3 backticks, and then surround it with 4 backticks so it also shows the 3-backticks. I’ll show an example below:

````
```dataview
LIST WHERE testKey = "testValue"
```
````

(Also it would be more sensible to start with the help docs rather than asking Gemini. Dataview)

1 Like

To use inline fields you’ll need to use double colons, and in most cases it’s advisable to surround the expression with either square or normal parentheses.

If you’re aming for properties make sure the very first line is just the triple dashes, then a line with your property key and value. And then a line with triple dashes at the end.

They aren’t using inline fields. They just didn’t format the post with code. I’ll edit it so you can see what it actually is.

The text below works as a complete test note.

---
testKey: testValue
---

```dataview
LIST 
WHERE testKey = "testValue"
```

Dataview is enabled in settings? See any errror message?

Thank you all for trying to help. I am very new to this so am fumbling around a bit to even figure out how to best ask the question.

Rigmarole is correct, I tried to create it using YAML vs inline fields.

I tried to upload an image below but not sure if it will work. Regardless, this is what I have typed using the guidance from Rigmarole.

‘’‘’
‘’‘LIST
WHERE testKey = “testValue”
‘’’
‘’‘’

The TestQuery page doesn’t change at all when I toggle between read and edit.

backtick ` not quote ’

I think the problem is you aren’t adding the line at the beginning:

```dataview

That line is what tells the Dataview code to trigger. Otherwise you are just typing the word “LIST” and Obsidian doesn’t know what to do with that. You need the backticks at both the top and the bottom, and the dataview keyword

Exactly (exactly) what Guapa typed:

```dataview
LIST 
WHERE testKey = "testValue"
```
2 Likes