Dataview and frontmatter properties

I’ve a note template that includes a property called Ämne:

Ämne:
  - "[[Artificiell intelligens]]"
  - "[[Juridik]]"

I’m trying to create a query to list all instances of the inline field t from files with Juridik as value for Ämne:

TABLE t AS Tanke 
FROM "05 Källor"
WHERE contains(Ämne, "[[Juridik]]")

But this query returns an empty table. Why?

1 Like

Could you try this syntax:

```dataview
TABLE t AS Tanke 
FROM "05 Källor"
WHERE contains(Ämne, [[Juridik]])
```
1 Like

Thanks! I thought I already had tried all variants – but apparently not! :slight_smile:

1 Like

Alternatively, you could also use contains(Ämne, link("Juridik"))