Hello All, Im using CR 8.5, connecting via ODBC to a symposium database.
Im currently pulling data for Monday only. I need the report to display the service factor (a custom formula)
as follows:
1/17/05 1/24/05 1/31/05 2/7/05
00:00 70 35 25 90
00:15 95 65 75 80
00:30 95 76 82 54
Im pulling Monday records using record selection formula:
DayOfWeek ({iSkillsetStat.Timestamp}) = 2
my report is grouped on {iSkillsetStat.Time} (00:00,00:15,etc)
To print the correct day of month for the report, I am using formula dow (Minimum({iSkillsetStat.Timestamp})) + 7 seven days. There are a total of 11 formulas to calculate the date.
I cannot figure out how to get the correct service factor to
print for the time/dow.
I have tried this formula, changing the dow_0 as necessary for each date-- but it gives me the same data for every date.
-----------service factor formula-------------------
if {iSkillsetStat.Timestamp} = {@dow_0}
then
Local NumberVar SvcLvl;
Local NumberVar Level1 :=
(Sum ({iSkillsetStat.CallsAnswered}, {iSkillsetStat.Timestamp}) +
Sum ({iSkillsetStat.SkillsetAbandoned}, {iSkillsetStat.Timestamp}))
-
(Sum ({iSkillsetStat.CallsAnsweredAfterThreshold}, {iSkillsetStat.Timestamp}) +
Sum ({iSkillsetStat.SkillsetAbandonedAftThreshold}, {iSkillsetStat.Timestamp}));
Local NumberVar Level3 :=
Sum ({iSkillsetStat.CallsAnswered}, {iSkillsetStat.Timestamp}) +
Sum ({iSkillsetStat.SkillsetAbandoned}, {iSkillsetStat.Timestamp});
if (Level3 = 0) then
SvcLvl := 0
else
SvcLvl := (Level1 * 100.0) / Level3
**Please Help!!
(FYI, I tried to use crystal crosstab, but it only allows me to add summarized fields, which will not report the right data)
dannab
Im currently pulling data for Monday only. I need the report to display the service factor (a custom formula)
as follows:
1/17/05 1/24/05 1/31/05 2/7/05
00:00 70 35 25 90
00:15 95 65 75 80
00:30 95 76 82 54
Im pulling Monday records using record selection formula:
DayOfWeek ({iSkillsetStat.Timestamp}) = 2
my report is grouped on {iSkillsetStat.Time} (00:00,00:15,etc)
To print the correct day of month for the report, I am using formula dow (Minimum({iSkillsetStat.Timestamp})) + 7 seven days. There are a total of 11 formulas to calculate the date.
I cannot figure out how to get the correct service factor to
print for the time/dow.
I have tried this formula, changing the dow_0 as necessary for each date-- but it gives me the same data for every date.
-----------service factor formula-------------------
if {iSkillsetStat.Timestamp} = {@dow_0}
then
Local NumberVar SvcLvl;
Local NumberVar Level1 :=
(Sum ({iSkillsetStat.CallsAnswered}, {iSkillsetStat.Timestamp}) +
Sum ({iSkillsetStat.SkillsetAbandoned}, {iSkillsetStat.Timestamp}))
-
(Sum ({iSkillsetStat.CallsAnsweredAfterThreshold}, {iSkillsetStat.Timestamp}) +
Sum ({iSkillsetStat.SkillsetAbandonedAftThreshold}, {iSkillsetStat.Timestamp}));
Local NumberVar Level3 :=
Sum ({iSkillsetStat.CallsAnswered}, {iSkillsetStat.Timestamp}) +
Sum ({iSkillsetStat.SkillsetAbandoned}, {iSkillsetStat.Timestamp});
if (Level3 = 0) then
SvcLvl := 0
else
SvcLvl := (Level1 * 100.0) / Level3
**Please Help!!
(FYI, I tried to use crystal crosstab, but it only allows me to add summarized fields, which will not report the right data)
dannab