Dataview and meta bind

What I’m trying to do

I’m trying to get a relatively simple filter with a metabind-input to work in dataview:

INPUT[number:itemprice]

table without id
file.link as "Item", itemraritytype as "Typ", itemprice as "Preis", itemmerchant as "Händler"
from "Items"
where itemprice=this.itemprice

But somehow that filter gets no results. The problem seems to be the “where itemprice =…”, cause if i use “where itemprice=200” everything works just fine.

There seems to be something that i’m missing.

Is this.itemprice exactly “200”, or it’s possible that it is also “200,01”? :smiling_face: … try to play with >= and/or <=.

Cheers, Marko :nerd_face:

everything should be exactly 200 in that example. I’ve tried <= and >= as well. No changes.

dataview does not seem to get the this.property correctly. I’ve tried different things and nothing seems to work…

contains(tag,this.tag) won’t do it either, but contains(tag,“something”) works like a charm

frustrating, because i would really love to filter those things in a number of dataviews.

Is it possible itemprice is set for a text string and not a number in types.json?
Otherwise I’m too lazy to look up DV docs…sorry…

first thing i’ve looked up :smiley: everything is number. but even =this.file.name wont return anything… something is just wrong with my setup.

Ok. I seem to have a bigger issue here. Nothing gets updated anymore in my dataviews.

I just uninstalled dataview and installed it again. Now everything works just fine. Sometimes I just hate Obsidian :smiley:

1 Like

:shushing_face: … it can hear you!

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