I would prefer to use ‘Bool’ for this column, but the Bool doesn’t seem to support Null/None (it gets converted to False).
So I am using a Choice list (True, False).
In the attached image, you can see i have a column called $ENERGY. I have a rule:
$ENERGY is None
and another
$ENERGY == 'True'
each should set the background colour. But, it seems to be ignored. What am I doing wrong?
my conclusion here, you need to set the styles on the individual choice list items, and this works. Using conditional formatting doesn’t, presumably because the choice list items overrides.
Is your column type Choice or Choice List? With a Choice column, you can only select one value in the cell from your list of choices. Choice List allows you to select multiple values from your list of choices. With Choice List, the conditional formulas have to be written to look for values within a list.
With these, we have to remember that the value in the cell is actually a list - even though we only see a single value selected. We have the option to add more.
When looking for a specific value in a list, we have to see if that value is in the list so our conditional formula is "True" in $Choice_List.
When looking for an empty cell, we are looking for an empty list. We can check the length of the list. If it’s zero, then it’s an empty list so our formula is len($Choice_List) == 0.
If your choice values are True and False, I would recommend setting your column type to Choice since you would only ever select one of those values in a cell.
I hope this helps! Please let me know if you have any follow up questions.