CRXI – Technical user.
Not sure if this can be done by a Crystal Formula or if it has to be done by sql statement.
I have three (3) tables – cpmain \ sys_recp \ sys_trac (tables are linked)
I need a total by month and based on the same date range for two of the tables:
sys_recp \ sys_trac
Summary report by Month each year – 09-01-xx to 08-31-xx
I currently can do this only for one of the tables or the other on the main report. I have not been able to get them on the same group within the report, that’s because the group has to be based on one or the other {sys_recp.recptdate} or {sys_trac.tracktime}. If I group by {sys_recp.totalpaid} then the fees comes up correctly. If I group by {sys_trac.trackamt} then the deed fees come up right. I tried the below formulas to sum up the fields but it does not work. It draws all of the dates.
Currently I have the total for {sys_recp.totalpaid} on the main report. I have a subreport that passes the figure for {sys_trac.trackamt} at the bottom in the report footer. I then add the two figures to reach a final total (report footer b). I was trying to change the report to be more like the example below.
Formula’s:
Does not work (brings up all dates)
{sys_recp.recptdate} = {?Date Range};
If {sys_recp.transtype} = "SFEE" then {sys_recp.totalpaid}
Does not work (brings up all dates)
{sys_trac.tracktime} = {?Date Range - Deed Fees};
If {sys_trac.actioncode} = "DF" then {sys_trac.trackamt}
What I was trying to accomplish: Example.
//{sys_trac.trackamt} = Deed Fees
//{sys_recp.totalpaid} = Fees
Group by Month Deed Fees Fees Total
September $2,856.00 $33,490.12 $36,246.12
October $5,661.00 $34,601.09 $40,262.09
November etc…
Grand total
Any ideas on how to do this would be greatly appreciated as I’m out of ideas. I also tried a crosstab but that did not work either. Thanks in advance.
Bill
Not sure if this can be done by a Crystal Formula or if it has to be done by sql statement.
I have three (3) tables – cpmain \ sys_recp \ sys_trac (tables are linked)
I need a total by month and based on the same date range for two of the tables:
sys_recp \ sys_trac
Summary report by Month each year – 09-01-xx to 08-31-xx
I currently can do this only for one of the tables or the other on the main report. I have not been able to get them on the same group within the report, that’s because the group has to be based on one or the other {sys_recp.recptdate} or {sys_trac.tracktime}. If I group by {sys_recp.totalpaid} then the fees comes up correctly. If I group by {sys_trac.trackamt} then the deed fees come up right. I tried the below formulas to sum up the fields but it does not work. It draws all of the dates.
Currently I have the total for {sys_recp.totalpaid} on the main report. I have a subreport that passes the figure for {sys_trac.trackamt} at the bottom in the report footer. I then add the two figures to reach a final total (report footer b). I was trying to change the report to be more like the example below.
Formula’s:
Does not work (brings up all dates)
{sys_recp.recptdate} = {?Date Range};
If {sys_recp.transtype} = "SFEE" then {sys_recp.totalpaid}
Does not work (brings up all dates)
{sys_trac.tracktime} = {?Date Range - Deed Fees};
If {sys_trac.actioncode} = "DF" then {sys_trac.trackamt}
What I was trying to accomplish: Example.
//{sys_trac.trackamt} = Deed Fees
//{sys_recp.totalpaid} = Fees
Group by Month Deed Fees Fees Total
September $2,856.00 $33,490.12 $36,246.12
October $5,661.00 $34,601.09 $40,262.09
November etc…
Grand total
Any ideas on how to do this would be greatly appreciated as I’m out of ideas. I also tried a crosstab but that did not work either. Thanks in advance.
Bill