Issues making my calculated field work

when ((SUM(CASE when `Activity Date`>=CURDATE()-28 then `Score` end))/(SUM(CASE when `Activity Date`>=CURDATE()-180 then `Score` end))*100)>=50 and (SUM(CASE when `Activity Date`>=CURDATE()-180 then `Score` end))/ 307>=0.5 then COUNT(`Account`)end


what am i doing wrong to make this work. It is not coming up as an error but there is no number showing on my text card - it remains blank


  • cwolman
    cwolman Contributor

    Null value in either `Activity Date` or `Score` could cause a blank result.  That would be the first place I would look.

  • jehat
    jehat Domo Employee

    You do not have an else clause that I can see. What should the value be if the part after WHEN is not true?