Hi,
I have a database which has chemotherapy episode data in it.
I want to be able to count the number of treatment episodes on a monthly basis, split by the ward or clinic area.
Each patient will attend on a number of occassions over several months or years. Each time they attend I have multiple rows for that days treatment.
I created a cross tab which has appointment date, ward and a count on the patients hospital number. If I do a distinct count using a sample set of data per month I get only 1 result, if I do a count I get too many rows.
For exmaple on a monthly period I should be getting appox 30. A count gives me 120, a distinct count gives 13.
Any ideas anyone ?
Steve
I have a database which has chemotherapy episode data in it.
I want to be able to count the number of treatment episodes on a monthly basis, split by the ward or clinic area.
Each patient will attend on a number of occassions over several months or years. Each time they attend I have multiple rows for that days treatment.
I created a cross tab which has appointment date, ward and a count on the patients hospital number. If I do a distinct count using a sample set of data per month I get only 1 result, if I do a count I get too many rows.
For exmaple on a monthly period I should be getting appox 30. A count gives me 120, a distinct count gives 13.
Any ideas anyone ?
Steve