How to retrieve dynamically a block with Dataview?

Hello there.

What I’m trying to do

I’m new to Obsidian and trying to setup files to follow OKR guide lines. All is working pretty well except one call with Dataview. I have two files which was automatically created by QuickAdd and named like this :

  • Monthly Review 2023 - 06
  • Weekly Review 2023 - W23
    I would like to retrieve a specific block (for example : #TODOs) from my “Monthly Review” file and list tasks on my “Weekly Review” file. But I would like to find a way that work every time, not only with those files. Block I want to retrieve is always from the previous month.

Things I have tried

I tried many codes by reading documentation or with examples found on Internet / reddit, etc. but was a fail. I also tried website named Basic Dataview Query builder (a nice website btw).
I even try to add some YAML info like the created date of the file to trigger the file like that :

List from [[]]
WHERE Created date = <%"YYYY-MM-DD", "P-1M") %>

I need some help, please.


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