Filter tasks by "due" and "completed"

Things I have tried

I’ve tried to merge these quires together, but I don’t know how.

`= length(filter(this.file.tasks.due, (t) => t >= date(som) & t<= date(eom)))`
`= length(filter(this.file.tasks.completed, (t) => t))`

I also tried the next code, but I can’t add length() function to it.

WHERE due >= date(som) & due <= date(eom) & completed = true

What I’m trying to do

I wanna write inline dataview query to filter tasks by “due” and “completed”, I can write Inline dataview query with “due” or “completed”, but I can’t write both in the same query.

Try this:

`=length(filter(this.file.tasks, (t) => t.due >= date(som) AND t.due <= date(eom) AND t.completed))`

Thanks @mnvwvnm for your reply.

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