Single Year Revenue Beastmode

This may be a simple syntax question but I can't seem to get it right.  I'm trying to calculate the sum of revenue for a single year.  I need it to be a beastmode calculation as I am comparing against 2016 and have different values for the X axis so the YoY chart does not work.

 

This is what I'm workin with: 

 

sum((CASE WHEN (year(`Close Date`)=YEAR(2017))THEN `Gross Revenue` END ))

 

Am I missing something simple here?

 

Thanks!

Best Answer

  • AS
    AS 🔵
    Accepted Answer

    YEAR() expects a datetime value.  Just try year(`Close Date`)=2017 and see how that goes

This discussion has been closed.