Hi,
I am trying to create a crosstab relating to A&E attendances. The crosstab should contain a count of all A&E attendances, a count of A&E attendances where the outcome was "Admitted", and this is summarised by month of attendance.
No A&E Att's No of Admissions
July 1200 500
August 1180 525
September 1105 499
I have created a function A&EAdms :-
If {EpisodeE.Discharge_Code}="9" Then 1 Else 0
and then created another function (NoOfAdms) using that :-
Sum({@A&EAdms})
and tried to put this function NoOfAdms, along with NoOfAtts and AttMonth into a crosstab, but it's not working.
Does anyone have any ideas? Thanks in advance,
Fiona
I am trying to create a crosstab relating to A&E attendances. The crosstab should contain a count of all A&E attendances, a count of A&E attendances where the outcome was "Admitted", and this is summarised by month of attendance.
No A&E Att's No of Admissions
July 1200 500
August 1180 525
September 1105 499
I have created a function A&EAdms :-
If {EpisodeE.Discharge_Code}="9" Then 1 Else 0
and then created another function (NoOfAdms) using that :-
Sum({@A&EAdms})
and tried to put this function NoOfAdms, along with NoOfAtts and AttMonth into a crosstab, but it's not working.
Does anyone have any ideas? Thanks in advance,
Fiona