Why does my "Days Since Last Modified" Formula Not Work?

Are you using our SaaS platform (Baserow.io) or self-hosting Baserow?

SaaS

What do you need help with?

I created a Last Modified column in my table which populates just fine. I then created a Formula column with the following:

date_diff('days', field('Last modified'), now())

However, this only yields invalid number. Why is that?

Hi @Vexir,

I think you’re looking for date_diff(‘day’, x, y) instead?

Cheers,

Peter

Hi Peter, I made the change but still getting invalid number.

Hey @Vexir, have you tried debugging the formula with Kuma?

Kuma, our AI assistant, is pretty good at writing formulas. :raising_hands:

Hello @Vexir,

I tried with a date and last_modified field:

Does that not work for you?

Cheers,

Peter

Huh, that did work. I’m not sure why though - it’s exactly what I entered earlier! Oh well. Thanks!