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 Coach
    Answer ✓

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

    Aaron
    MajorDomo @ Merit Medical

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

Answers

  • AS
    AS Coach
    Answer ✓

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

    Aaron
    MajorDomo @ Merit Medical

    **Say "Thanks" by clicking the heart in the post that helped you.
    **Please mark the post that solves your problem by clicking on "Accept as Solution"
This discussion has been closed.