3 Replies Latest reply: Apr 21, 2016 11:51 AM by xia ZHU RSS

    Assign sum to a varaiable

    Jonathan Cohen

      Hi,

       

      What is wrong with the following:

       

       

      Let vDrugs = Sum(if(Medication_Drug1>0,Medication_Drug1,0)) + Sum(if(Medication_Drug2>0,Medication_Drug2,0))