Blank properties are treated as "Doesn't contain any of: " in bases

What I’m trying to do

Having a status property with the following options:
In progress
To do
Done

When I create a base having this property then I filter by Status → “Doesn’t contain any of: Done”
Any note with the status property blank, like newly created notes don’t show under this filter, why is that?
When I hit “New” in the base, the note gets created but is not visible in the list although it has Status → “Doesn’t contain any of: Done”

Things I have tried

Multiple tries regarding changing properties, recreating base, another vault, disabling all plugins

So I think this could be due to the fact that there’s a slight difference in how Obsidian evaluate Empty values :blush: .

I mean, there’s a difference between having:

---
Status: 
---

and

---
Status: ""
---

… while both appear as Empty in Properties in Live Preview.

The 1st one correspond to null (so the key exists but doesn’t bear any real value) while the 2nd one is actually blank (the key also exists and actually has a value: an empty string).

At least, if I remember correctly my previous tests :sweat_smile: :innocent:

When you create a new note, from your base and the Status key is added, it’s probably not added with a blank value (""), so underneath the value for the Status key is null which then get filtered out by the “does not contain any” :blush:

Something you could do, I think (again :smile: ), if you want the new notes with the Status key appearing could be to use a filter such as:

file has property Status
and Status is not Done 

This should keep all the notes which don’t have a Status key set to Done, including the ones where the value would either be null or blank.
(There probably are other ways to get there though :smile:)

1 Like

Thank you for your thoroughly reply :smiley:

If I’m getting this right, here’s your suggested solution:

I tried this and still the freshly created note with “status:” (not status: “”) disappears from the base. :confused:

EDIT: I tried the following and for some reason it works!

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