DVJS - Field-based progress tracker
Summary
This query will
- check a note's frontmatter for fields (properties) starting with a certain string - in the example with "habit"
- count how many such fields are there
- check how many of them are set to "true"
- calculate the percentage of "true" fields versus total fields
Setup
This is a DataviewJS query to find files that have "bad" - i.e. corrupt - frontmatter.
Code
Don't forget to start and end the code block with three backticks.
Total habit fields: 0
True habit fields: 0
Completion percentage: 0.00%
## Effect