Call out explicit file name instead of this.file.links

What I’m trying to do

I would like to run this query against a different file then the current one. In effect I want to replace “this.file.link” by an explicit note name “Week XX”.file.link.

TABLE eval, file
where contains(file.inlinks, this.file.link)

Things I have tried

TABLE eval, file
where contains(file.inlinks, "Week XX".link)

I get:

Dataview: Every row during operation 'where' failed with an error; first 3:
- string indexing requires a numeric index (string[index])
- string indexing requires a numeric index (string[index])
- string indexing requires a numeric index (string[index])

I feel this is something simple I am missing. Thanks for your help.

Try using contains(file.inlinks, link("Week XX")), or contains(file.inlinks, [[Week XX]]).

In some cases you might also consider doing FROM [[Week XX]], or FROM outgoing([[Week XX]]). These work, but I always confuse my self with the direction… :slight_smile: