How to calculate sum of a formula field in crystal Reports?

前端 未结 4 1424
天命终不由人
天命终不由人 2021-01-05 09:00

In some inherited code, I see group headers/footers have items like \'Sum of @numcount\' . I cannot get the sum of a formula field. Any thoughts?

4条回答
  •  既然无缘
    2021-01-05 09:33

    You Can simply Right Click Formula Fields- > new Give it a name like TotalCount then Right this code:

    if(isnull(sum(count({YOURCOLUMN})))) then
    0
    else
    (sum(count({YOURCOLUMN})))
    

    and Save then Drag and drop TotalCount this field in header/footer. After you open the "count" bracket you can drop your column there from the above section.See the example in the Picture

提交回复
热议问题