Hello,
I have a report with four groups (1.Region, 2.Site, 3.Type, 4.Date) and all of my data and calculations are in in Group #4 footer). The source of this report is a SQL stored procedure.
Below is a sample of my data (Total,Cash, and Noncash are the fields with formulas, the rest of the fields come directly from the stored procedure):
Code Site Type Date Total Cash NonCash
612 MN62 W 2/3/2011 8.36 0.35 8.01
811 MN81 L 2/3/2011 0.00 0.00 0.00
801 MN81 W 2/3/2011 (1.76) (2.03) 0.27
802 MN82 W 2/3/2011 0.00 0.00 0.00
My problem is that I need to exclude all records from this report that have Cash AND NonCash fields equal to 0.00. So for example in the data above, it would exclude the 2nd and 4th records and would just look like:
Code Site Type Date Total Cash NonCash
612 MN62 W 2/3/2011 8.36 0.35 8.01
801 MN81 W 2/3/2011 (1.76) (2.03) 0.27
I can't do this in the record selection because Cash and Noncash fields are sum formulas:
Cash formula: sum({@Cash},{transdate))
NonCash formula: sum({@NonCash, {transdate})
The formulas @Cash and @Noncash just take certain amounts from the stored procedure (ex. IF category = 712 then strdprocedure.amt else 0)
Any idea on how to remove the fields that meet the
(Cash=0 AND NonCash = 0) condition?
Thanks in advance for any suggestions!
I have a report with four groups (1.Region, 2.Site, 3.Type, 4.Date) and all of my data and calculations are in in Group #4 footer). The source of this report is a SQL stored procedure.
Below is a sample of my data (Total,Cash, and Noncash are the fields with formulas, the rest of the fields come directly from the stored procedure):
Code Site Type Date Total Cash NonCash
612 MN62 W 2/3/2011 8.36 0.35 8.01
811 MN81 L 2/3/2011 0.00 0.00 0.00
801 MN81 W 2/3/2011 (1.76) (2.03) 0.27
802 MN82 W 2/3/2011 0.00 0.00 0.00
My problem is that I need to exclude all records from this report that have Cash AND NonCash fields equal to 0.00. So for example in the data above, it would exclude the 2nd and 4th records and would just look like:
Code Site Type Date Total Cash NonCash
612 MN62 W 2/3/2011 8.36 0.35 8.01
801 MN81 W 2/3/2011 (1.76) (2.03) 0.27
I can't do this in the record selection because Cash and Noncash fields are sum formulas:
Cash formula: sum({@Cash},{transdate))
NonCash formula: sum({@NonCash, {transdate})
The formulas @Cash and @Noncash just take certain amounts from the stored procedure (ex. IF category = 712 then strdprocedure.amt else 0)
Any idea on how to remove the fields that meet the
(Cash=0 AND NonCash = 0) condition?
Thanks in advance for any suggestions!