jadoff
1
I am trying to create a table that shows every page that has a yaml value for status of either closed or archived and I have tried
WHERE contains(status, "Closed") AND !contains(status, "Archived")
For some reason, this only shows the pages that are labeled as closed. How can I get it to show both values
I am not 100% familiar with dataview, but I am pretty sure:
-
!contains
means “does not contain”.
- AND would mean it needs both criteria to be true. If you want either closed or archived, you’d want OR.
table
WHERE contains(status, "Closed") OR contains(status, "Archived")
jadoff
3
Wonderful! thanks. I kept finding answers with the !contains but I must have misread them
system
Closed
4
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.