AnnetteB1305
Technical User
Hello,
Is there a way of having an average of 2 other columns in a crosstab. I have a crosstab which shows a count of calls handled by particular departments in a given month and the previous month and then the difference between these columns. I need to add a column which shows the average of month 1 and the previous month and then a further column which shows the difference from the @currmo and this average column i.e. @currmo-averagecolumn.
My crosstab is set up in a subreport and is set up as follows:-
Rows
@Not1&2nd
which is If not({@HDInvolved} in ["1STLINE","2NDLINE"]) then {@HDInvolved}
the @HDInvolved formula is left(table.groupid),7
Columns are
//@currmo
if {@Logdate} in dateserial(year({?Month}),month({?Month}),1) to
dateserial(year({?Month}),month({?Month})+1,1)-1 then
{opencall1.callref} else
tonumber({@null})
//@prevmo
if {@Logdate} in dateserial(year({?Month}),month({?Month})-1,1) to
dateserial(year({?Month}),month({?Month}),1)-1 then
{opencall1.callref} else
tonumber({@null})
//@0
whilereadingrecords;
0
Then I have suppression formulas on the @currmo summary and the @prevmo summary and a display string formula on the @0 summary.
Thanks for any help
Annette
Is there a way of having an average of 2 other columns in a crosstab. I have a crosstab which shows a count of calls handled by particular departments in a given month and the previous month and then the difference between these columns. I need to add a column which shows the average of month 1 and the previous month and then a further column which shows the difference from the @currmo and this average column i.e. @currmo-averagecolumn.
My crosstab is set up in a subreport and is set up as follows:-
Rows
@Not1&2nd
which is If not({@HDInvolved} in ["1STLINE","2NDLINE"]) then {@HDInvolved}
the @HDInvolved formula is left(table.groupid),7
Columns are
//@currmo
if {@Logdate} in dateserial(year({?Month}),month({?Month}),1) to
dateserial(year({?Month}),month({?Month})+1,1)-1 then
{opencall1.callref} else
tonumber({@null})
//@prevmo
if {@Logdate} in dateserial(year({?Month}),month({?Month})-1,1) to
dateserial(year({?Month}),month({?Month}),1)-1 then
{opencall1.callref} else
tonumber({@null})
//@0
whilereadingrecords;
0
Then I have suppression formulas on the @currmo summary and the @prevmo summary and a display string formula on the @0 summary.
Thanks for any help
Annette