Hi,
I want to use a inline-variable inside a dataview-query, to be able to filter it.
e.g. I have these three notes:
Apple-note:
---
Library: [[nutrition]]
category: fruit
effect: healthy
color:
---
tomato-note:
---
Library: [[nutrition]]
category:
effect: healthy
color: red
---
cigarettes-note:
---
Library:
category: drug
effect: not healthy
---
Now I want to use one dataview to query for both, for files, that have values inside the property “effect” and for files, that have values inside the property “color”.
For that, I would define a inline-metadata-variable, like:
var:: effect (or var:: color, if I would like to filter for files with that property)
with this dataview…
```dataview
Table category, effect
Where this.var
```
and var:: effect, I would have expected, to get a table with three entries, apple, tomato and cigarettes (all three notes do have values in the effect-property)
With var:: color, I would have expected, to get a table with only one entry: tomato, because this file is the only one with a value in it.
… unfortunately, it seems like the Where expression doesn’t work at all… do you have an explanation for that?
Thanks in advance,
kind regards,
Silias