Jul 1, 2004 #1 veronic Programmer Apr 6, 2004 73 US I need to count (or sum) date field which is not null and subtract another final date field based on each month. report grouped by months Thank you very much
I need to count (or sum) date field which is not null and subtract another final date field based on each month. report grouped by months Thank you very much
Jul 1, 2004 #2 synapsevampire Programmer Mar 23, 2002 20,180 US Try a formula: If not(isnull({table.date})) then {table.date}-{table.date2} else 0 Since count and sum are different, I assumed that you wanted the sum of the days difference, not a count of the rows which are not null. To get a not null count, use: If not(isnull({table.date})) then 1 else 0 In both cases, place the fields in the details and select insert->summary->sum All of this assumes that you've done a Insert->Group->Select the date and select for each month -k -k Upvote 0 Downvote
Try a formula: If not(isnull({table.date})) then {table.date}-{table.date2} else 0 Since count and sum are different, I assumed that you wanted the sum of the days difference, not a count of the rows which are not null. To get a not null count, use: If not(isnull({table.date})) then 1 else 0 In both cases, place the fields in the details and select insert->summary->sum All of this assumes that you've done a Insert->Group->Select the date and select for each month -k -k
Jul 2, 2004 Thread starter #3 veronic Programmer Apr 6, 2004 73 US I tried @Month: if not(isnull({FACTS_REPORTS_MAILOUT.OPEN_DATE})) then count({FACTS_REPORTS_MAILOUT.OPEN_DATE}) - {@Close} and {@Close}: if{FACTS_REPORTS_MAILOUT.BALANCE_DUE} <> 0.00 then 1 else 0 when I put @Month in the report it return every time same figure for each month... Upvote 0 Downvote
I tried @Month: if not(isnull({FACTS_REPORTS_MAILOUT.OPEN_DATE})) then count({FACTS_REPORTS_MAILOUT.OPEN_DATE}) - {@Close} and {@Close}: if{FACTS_REPORTS_MAILOUT.BALANCE_DUE} <> 0.00 then 1 else 0 when I put @Month in the report it return every time same figure for each month...
Jul 2, 2004 Thread starter #4 veronic Programmer Apr 6, 2004 73 US Sorry @Month: if not(isnull({FACTS_REPORTS_MAILOUT.OPEN_DATE})) then count({FACTS_REPORTS_MAILOUT.OPEN_DATE}) - sum({@Close}) Upvote 0 Downvote
Sorry @Month: if not(isnull({FACTS_REPORTS_MAILOUT.OPEN_DATE})) then count({FACTS_REPORTS_MAILOUT.OPEN_DATE}) - sum({@Close})