Subtract Dates

I'm trying to exclude old items from my card. I'm using the following as a simple filter but it comes back as invalid. What am I doing wrong? Yes, I've confirmed they are both date fields.

(CASE when DATEDIFF(`Close Date`,`POV End Date`) > 365 THEN 'Do Not Count'

   Else 'Count')

Tagged:

Answers

  • You need an END after 'Count' before the last closing parenthesis.

    **Was this post helpful? Click Agree or Like below**
    **Did this solve your problem? Accept it as a solution!**
  • Yeah.... duh. :-)

    Thanks Grant for the smack upside the head. Off to get another coffee.

  • @tobypenn most beast mode functions just use MySQL syntax

    Jae Wilson
    Check out my 🎥 Domo Training YouTube Channel 👨‍💻

    **Say "Thanks" by clicking the ❤️ in the post that helped you.
    **Please mark the post that solves your problem by clicking on "Accept as Solution"