SharonKelly
Technical User
Hello,
I'm using CR 8.5 and SQL Server 2000.
I'm pulling in data with a stored procedure -- a record set of patient orders over the past year to date that includes order date/time and the Specialty and Division of the ordering doctor.
It seems that my problem SHOULD have a simple answer --
This is a simplified version of what I'm getting, where the numbers represent the total orders ordered by docs in each unit for each month. The report is grouped on Specialty(e.g. Medicine, Peds). The cross-tab report is then in the group footer for specialty and has Division for the row and a function @Month for the column, where the function gives me back the month based on the order's date/time.
@Month =
if Month({Orders.OrderDtm}) = 1
then "Jan"
else if Month({Orders.OrderDtm}) = 2
then "Feb"
... etc.
Medicine
JAN APR MAY AUG
ALLERGY 133 150 166 155
CARDIO 199 60 50 33
GU 0 2 0 0
Peds
JAN FEB MAR MAY JUN
ALLERGY 133 19 66 15 77
NICU 133 60 40 33 0
GI 0 0 0 2 0
What I WANT is to have ALL the months represented in this report, even if the month had no orders for any of the Divisions within the Specialty group. I would always want all months to display. But since the column is grouping on date, if there are no records in the current group satisfying, say, 'order placed in August', then Aug won't show up as a column.
I would appreciate any hints or help that you might be able to provide. I've pored through my Crystal books, and they don't seem to address how to group on missing data, when you want that group to be represented on the report anyway.
Thanks!
Sharon
I'm using CR 8.5 and SQL Server 2000.
I'm pulling in data with a stored procedure -- a record set of patient orders over the past year to date that includes order date/time and the Specialty and Division of the ordering doctor.
It seems that my problem SHOULD have a simple answer --
This is a simplified version of what I'm getting, where the numbers represent the total orders ordered by docs in each unit for each month. The report is grouped on Specialty(e.g. Medicine, Peds). The cross-tab report is then in the group footer for specialty and has Division for the row and a function @Month for the column, where the function gives me back the month based on the order's date/time.
@Month =
if Month({Orders.OrderDtm}) = 1
then "Jan"
else if Month({Orders.OrderDtm}) = 2
then "Feb"
... etc.
Medicine
JAN APR MAY AUG
ALLERGY 133 150 166 155
CARDIO 199 60 50 33
GU 0 2 0 0
Peds
JAN FEB MAR MAY JUN
ALLERGY 133 19 66 15 77
NICU 133 60 40 33 0
GI 0 0 0 2 0
What I WANT is to have ALL the months represented in this report, even if the month had no orders for any of the Divisions within the Specialty group. I would always want all months to display. But since the column is grouping on date, if there are no records in the current group satisfying, say, 'order placed in August', then Aug won't show up as a column.
I would appreciate any hints or help that you might be able to provide. I've pored through my Crystal books, and they don't seem to address how to group on missing data, when you want that group to be represented on the report anyway.
Thanks!
Sharon