up::[[obsidian plugin dataview]] title::"cound tasks completed in a file" #obsidian --- - simple solution : - `= length(filter(this.file.tasks.completed, (t) => t = true))` tasks completed - with html styling : - `= " tasks are " + round(length(filter(this.file.tasks.completed, (t) => t = true)) / length(this.file.tasks) * 100) + "% done "` - with minimal's `` tag : - `= "" + "" + round((length(filter(this.file.tasks.completed, (t) => t = true)) / length(this.file.tasks)) * 100) + "% completed"` # Tasks - [ ] foo - [x] bar - [ ] foobar - [ ] thing - [x] those - [x] then - [ ] therefore