Hi,
I have a formula as below and am averaging the result in a crosstab. However, if the {requesttype} does not startwith 'A -' then the result is 0 when I want it to be null (if it is 0 then this drags the average figure down).
Does anyone have any advice on this ?
Regards - Shorty
I have a formula as below and am averaging the result in a crosstab. However, if the {requesttype} does not startwith 'A -' then the result is 0 when I want it to be null (if it is 0 then this drags the average figure down).
Does anyone have any advice on this ?
Regards - Shorty
Code:
if {ThirtyDaysTotal.requesttype} startswith 'A -'
then
(if isnull({ThirtyDaysTotal.TotalConnectTime})
then {ThirtyDaysTotal.TotalConnectTime}
else
({ThirtyDaysTotal.TotalConnectTime}/{ThirtyDaysTotal.NumConnections})/1000
)
//need an else here to cover others