Hey everyone. New user here. Been trying to do the following scenario:
What I’m trying to do
So in my Daily Notes, I like writing my Habits and Financial Records like this:
Habits
#habit
name:: [[Morning Routine]]
boolean:: 0
description:: “Stuff”
props::
#habit
name:: [[Daily exercise]]
boolean:: 0
description:: “Description”
props::
#habit
name:: [[Financial Tracker]]
boolean:: 0
description:: “Description”
props::
#habit
name:: [[Night Routine]]
boolean:: 0
description:: “Description”
props::
Financial Tracking
#finance-record
name:: “Finance Record”
account:: “Account Name”
credit:: 0
debit:: 0
payee:: “Payee”
description:: “Description”
props::
So essentially, I populate my Daily Notes with these “records” of habits or financial-records.
After doing so, I am trying to query a table that will list all of my financial records, so that I can perform some calculations on them.
Things I have tried
TABLE name, name.account, name.credit, name.debit, name.payee, name.description, name.props
FROM #finance-record and -"template"
FLATTEN name
After running this, however, I get a table like this:
My query is also including blocks with the #habit tag.
Now, I understand that such query will query for all files that contain the given task, but how can I limit my query to return actual blocks that begin with the given task I want?
Thanks!