What I’m trying to do
Hi.
I’m new to obsidian and I would like to use the plugin Dataview.
However, I cannot seem to make queries work the way I want.
More specifically, they seem to display everything I did not ask them to display.
This seems to be a general problem, as I have tested it with several criteria and the results always seem “inverted”.
Here is a test environnement I created to test it out.
File structure
For this test, I would like Dataview to display a table in “Dataview overview test”, with a single line refering to “Data to display”.
To achieve this, I added the following lines at the top of the “Data to display” file.
I read that this creates metadata which I can look for in my overview file
First query
---
title: Test data
author: Cesar
content: data
---
I then tried to generate a view in the “Dataview overview test” using the following lines.
```dataview
TABLE author, title
FROM "Workspace"
WHERE content = data
```
However, here is the result I get
I’m confused because it did not detect the tag I added in “Data to display”, but rather the tagless file that contains this query.
Second query
I also tried this code
```dataview
TABLE author, title
FROM "Workspace"
WHERE content != data
```
Which returned the view I want. However I feel like it sould not as I use != instead of =.
Is the second query the “normal” syntax for this tipe of request? It feels like a bug to me but has anyone else encountered this?
Sorry if this is a know issue/an error on my part/not the right forum. I tried solving this myself but could not as I’m pretty new to this.