After some tests, here is what I have for now.
-
= link(this.file.link, regexreplace(this.file.name, " - \d+", "")) truncates the name of the current note and re-constructs it as a link again. Therefore, [[Note A - 202108131821]] becomes [[Note A]], which is the desired result.
- However, when I try to apply this to a Dataview table, I got some errors.
table link(rows.file.link, regexreplace(rows.file.name, " - \d+", "")) as Film
from #Film
where rating != null
group by rating as Rating
sort rating desc
The error message:
Dataview: Every row during final data extraction failed with an error; first 3:
- No implementation of 'link' found for arguments: link, array
Does this indicate that some operations cannot be performed on Dataview arrays? Can this be resolved by using DataviewJS?
Any help would be really appreciated.