Hi
Please assist if you can.
Below is the sample data of the report I'm working on:
RefNum Logged XferDate Closed XferFrom XferTo @NOC
I103
I103 05/09/06 05/09/06 22/12/06 FBS GX SAP
I103 05/09/06 05/09/06 22/12/06 GX SAP Connect
I103 05/09/06 08/09/06 22/12/06 Connect Witbank
I103 05/09/06 13/09/06 22/12/06 Witbank NOC Net ??
I103 05/09/06 19/10/06 22/12/06 NOC Net NOC Micro ??
I103 05/09/06 23/10/06 22/12/06 NOC Micro NT Applic
I103 05/09/06 23/10/06 22/12/06 NT Applic NOC Net ??
I103 05/09/06 24/10/06 22/12/06 NOC Net Business
I103 05/09/06 03/11/06 22/12/06 Business NOC Micro ??
I103 05/09/06 03/11/06 22/12/06 NOC Micro Citrix
I103 05/09/06 28/11/06 22/12/06 Citrix Wits
I104
I104 06/09/06 14/09/06 13/12/06 Niche Citrix
I104 06/09/06 29/10/06 13/12/06 Citrix ESM
I104 06/09/06 01/12/06 13/12/06 ESM NOC Micro ??
I'm trying to determine the following:
If the group to which the call was transfered (XferTo) is like NOC, then calculate the date difference from the day the call was transfered (XferDate) to the day the call was next transfered to the following group (next XferDate). The formula I've tried to use is:
If {@Xfer To} like "NOC*" then
DateDiff("n",{@Xfer Date},next({@Xfer Date}))
The formula works out fine until it comes to a point where the call was transfered to the group that is like NOC and at the same time closed by the very same group (e.g. as in I104). In this case, I tried extending the formula to include the Else statement:
If {@Xfer To} like "NOC*" then
DateDiff("n",{@Xfer Date},next({@Xfer Date}))
Else
If {@Xfer To} like "NOC*" and
{@Xfer Date} = Maximum ({@Xfer Date}) then
DateDiff("n",{@Xfer Date},{@Closed})
This formula doesn't give the correct answer if the group that closed the call was like NOC. Does anyone have any idea on how I could crack this formula so I can get the time that the call spent on the group that is like NOC.
NOTE: I've grouped my data according to the reference number(RefNum)
Any ideas are welcome. Thanks in advance.
Joy
Please assist if you can.
Below is the sample data of the report I'm working on:
RefNum Logged XferDate Closed XferFrom XferTo @NOC
I103
I103 05/09/06 05/09/06 22/12/06 FBS GX SAP
I103 05/09/06 05/09/06 22/12/06 GX SAP Connect
I103 05/09/06 08/09/06 22/12/06 Connect Witbank
I103 05/09/06 13/09/06 22/12/06 Witbank NOC Net ??
I103 05/09/06 19/10/06 22/12/06 NOC Net NOC Micro ??
I103 05/09/06 23/10/06 22/12/06 NOC Micro NT Applic
I103 05/09/06 23/10/06 22/12/06 NT Applic NOC Net ??
I103 05/09/06 24/10/06 22/12/06 NOC Net Business
I103 05/09/06 03/11/06 22/12/06 Business NOC Micro ??
I103 05/09/06 03/11/06 22/12/06 NOC Micro Citrix
I103 05/09/06 28/11/06 22/12/06 Citrix Wits
I104
I104 06/09/06 14/09/06 13/12/06 Niche Citrix
I104 06/09/06 29/10/06 13/12/06 Citrix ESM
I104 06/09/06 01/12/06 13/12/06 ESM NOC Micro ??
I'm trying to determine the following:
If the group to which the call was transfered (XferTo) is like NOC, then calculate the date difference from the day the call was transfered (XferDate) to the day the call was next transfered to the following group (next XferDate). The formula I've tried to use is:
If {@Xfer To} like "NOC*" then
DateDiff("n",{@Xfer Date},next({@Xfer Date}))
The formula works out fine until it comes to a point where the call was transfered to the group that is like NOC and at the same time closed by the very same group (e.g. as in I104). In this case, I tried extending the formula to include the Else statement:
If {@Xfer To} like "NOC*" then
DateDiff("n",{@Xfer Date},next({@Xfer Date}))
Else
If {@Xfer To} like "NOC*" and
{@Xfer Date} = Maximum ({@Xfer Date}) then
DateDiff("n",{@Xfer Date},{@Closed})
This formula doesn't give the correct answer if the group that closed the call was like NOC. Does anyone have any idea on how I could crack this formula so I can get the time that the call spent on the group that is like NOC.
NOTE: I've grouped my data according to the reference number(RefNum)
Any ideas are welcome. Thanks in advance.
Joy