I have a report that is grouped:
By month, Doctor, department, and procedure code. In the detail is units and charge amount.
Sample:
October
Dr. Smith
Cardiology
1042
10 100.00
5 50.00
What they want is to see subtotals after each department and totals after each doctor. They want that for the current month and for year to date.
The part I need help with is figuring out how to do the current month and year to date parts. I need 3 dates. The beginning of our year is 1/8/05 (this year, different next year) and then the start and end of whatever they want the "current" month to be. Originally I made a crosstab that broke out the months by calendar date (as opposed to the dates they use - sample: for October their dates for the beginning and end of the month are 9-2-05 to 10-03-05) but they don't want to see every month.
So I don't know if the beginning date will need to be hardcoded somehow and then I ask, through parameters for the "current" month...
The date I will be using is the chargesClosingDate (it is stored as yyyymmdd in SQL). I haven't added parameters in Crystal before but if it is possible I could provide a list of date ranges to choose from to make it easier for the user:
September would be 09-02-05 to 10-03-05 and then October would be 10-04-05 to 11-01-05, etc.
The goal will be for the current month to look like the sample above and then the same thing but with Year to date totals.
Thank you -
By month, Doctor, department, and procedure code. In the detail is units and charge amount.
Sample:
October
Dr. Smith
Cardiology
1042
10 100.00
5 50.00
What they want is to see subtotals after each department and totals after each doctor. They want that for the current month and for year to date.
The part I need help with is figuring out how to do the current month and year to date parts. I need 3 dates. The beginning of our year is 1/8/05 (this year, different next year) and then the start and end of whatever they want the "current" month to be. Originally I made a crosstab that broke out the months by calendar date (as opposed to the dates they use - sample: for October their dates for the beginning and end of the month are 9-2-05 to 10-03-05) but they don't want to see every month.
So I don't know if the beginning date will need to be hardcoded somehow and then I ask, through parameters for the "current" month...
The date I will be using is the chargesClosingDate (it is stored as yyyymmdd in SQL). I haven't added parameters in Crystal before but if it is possible I could provide a list of date ranges to choose from to make it easier for the user:
September would be 09-02-05 to 10-03-05 and then October would be 10-04-05 to 11-01-05, etc.
The goal will be for the current month to look like the sample above and then the same thing but with Year to date totals.
Thank you -