Every data point in Coda has a specific type.
Meaning there are:
- Numbers
- Text
- Dates
- People
- Row Values
And so on and so forth. Understanding data types is key to being able to filter correctly and use other coda formulas
Notice on your date chip (the green circular chip that says “Date”), it has a little calendar icon on it. This signifies that the type of data within that chip is a date value.
On the other hand, anytime you enclose something between parentheses, this is a Text value
So what you were trying to do is equate, with an equal sign, a date value to a text value. And therein your issue.
What you could do in this case is use the Date()
formula to construct a date value statically like this:
Date(2023, 12, 1)
And set that equal to your Green date chip. That should work.
But, there’s likely an even easier solution thanks to Codas many date/time formulas.
That solution would merely be the use of the Month() formula.
Month()
always returns a number, specifically the number of the month. So January is equal to one and February is equal to two and December is equal to 12.
So what you could do in the case is simple say:
Date.Month()=12
Or, if you are dealing with data across multiple years you could say:
Date.Month()=12 and Date.Year() = 2022
And boom! You are done
Heres some more thorough documentation and lessons on data-types in Coda with a fun interactive quiz at the end!