Greetings:
I am fairly new to Crystal reporting. (5 months) I am an analyst in a medical facility. I have been asked to write a report showing all patients discharged 'alive' from a facility from january 2004 thru july 2005. I decided to do a cross tab. Unfortunately babies are in one table while all others are in another table. Baby key (data type) is a number. Patient ID (data type) is a string. To get a total of each I did a distinct count. I did get counts for both. Now I am trying to 'sum' the data. My row is discharge year. My column heading is discharge month Jan - Dec. My summarized fields are baby key and pt id. I've tried a formula: if Month({c_cmb_vst_v_20050303.dsch_date}) = 1 then (DistinctCount ({pms_baby_v.baby_key}) + DistinctCount({c_cmb_vst_v_20050303.pt_id})) else 0 to get one figure in each column. I keep getting 0. What is wrong with my formula?? Thanks.
I am fairly new to Crystal reporting. (5 months) I am an analyst in a medical facility. I have been asked to write a report showing all patients discharged 'alive' from a facility from january 2004 thru july 2005. I decided to do a cross tab. Unfortunately babies are in one table while all others are in another table. Baby key (data type) is a number. Patient ID (data type) is a string. To get a total of each I did a distinct count. I did get counts for both. Now I am trying to 'sum' the data. My row is discharge year. My column heading is discharge month Jan - Dec. My summarized fields are baby key and pt id. I've tried a formula: if Month({c_cmb_vst_v_20050303.dsch_date}) = 1 then (DistinctCount ({pms_baby_v.baby_key}) + DistinctCount({c_cmb_vst_v_20050303.pt_id})) else 0 to get one figure in each column. I keep getting 0. What is wrong with my formula?? Thanks.