WebMar 16, 2011 · In SQL Server I could simply type: Select count (*) from MyTable WHERE MyZone IN ('HH','YW', 'GWB', 'SVT') Now for Crystal Reports, how do I use this query in Formulas that will give me the count of these zones. How do we implement WHERE clause condition in Crystal Reports Formulas, All I need to do is return the total count of the … 1 Answer Sorted by: 9 create a formula field named calculation to the side of quantity and enter the following text: // {@calculation} If quantity>5 then price else 0 now take the sum of {@calculation}. suppress both detail in the report. Take the sum and place in the footer of the required column. Share Improve this answer Follow
Crystal Reports Summarise a conditional sum
http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=1552 WebJan 2, 2003 · if ( {EmpFinalAttendanceReport.03} = "P") then X := X +1; if ( {EmpFinalAttendanceReport.04} = "P") then X := X +1; got the answer but if i have no record on particular date then its stop working. Solution 2 hI CHEETU place your formula in detail section then right click on formula insert summary and place summary to report footer. design tech centre linkedin
[SOLVED] Sum Formula in Crystal Report - The Spiceworks Community
WebDec 26, 2014 · update the question from your sql statements and vb.net code samples WebApr 9, 2008 · when i use the syntax SUM (fld,condFld).. sum ( {Attendance.AHours}, {Attendance.IDNo}) this works properly but then i want to sum those {tblAttendance.AHours} not only with regards to Attendance.IDNo} but also an additional field or another filter like maximum ( {CreditLeave.RenewalDate}, {Attendance.IDNo}) WebMar 27, 2011 · We cannot SUM a colum of fields using either the Total tab in the report wizard or by adding a sum function in SQL. I think Crystal Reports is treating this field of numbers as if they were text. The Total drop-down selection list has maximum, minimum, count, etc., but not sum. The DBbuilder says the database fields are all character strings. chuck e. cheese\u0027s birthday