I have a peculiar report redesign, with even more peculiar results, and I've hit the cognitive wall...
We have two joined tables, one with basic (helpdesk) ticket information and a new table with multiple "ticket parts" in it. The time totals for each ticket are stored in the first table... I group all the records in a couple if ways and try to get total times for groups, but because of the join to "multiple" "ticket parts", I am getting really bizarre totals, and I can't think my way out of it.
Example:
Table 1:
Tkt# Thrd# TotOut
T1 EL-A 14
T2 EL-B 7
T3 EL-A 5
T4 ...
Where
Tkt# is the ticket number.
"Thrd#" is an internal group association (i.e., circuit number in this case).
TotOut is the total time the ticket was "out".
Table 2:
RTkt Tkt# Svc
R1 T1 S1
R2 T1 S2
R3 T1 S1
R4 T1 S3
R5 T2 S2
R6 T2 S1
R7 T3 S4
R8 T3 S1
R9 T3 S2
This table is essentially possible reasons for a circuit failure.
RTkt is the unique "reason" record identifier
Tkt# is a reference to the parent ticket
Svc is an service designator.
One Ticket may have multiple "Reasons".
I group and chart by Thrd#, and HOPE to total outage hours...
EL-A xxx hours
EL-B yyy hours.
Part of the problem might be because of the NEXT step... I am supposed to sub-group (and pie chart) by services that were involved, and from there, go the the ticket data (w/ a sub-report to show the multiple reasons associated w/ a ticket. Because the outage hours are contained in the ticket, which is left-outer joined w/ the Reasons table, I think I'm getting multiples of the outage hours.
For instance...
T1 has 14 hours and 4 "reasons" associated with it, T3 has 5 hours and 3 Reasons. EL-A is associate with T1 and T3.
When I group on Thrd#, EL-A _should_ have 19 hours... it has much(!) more.
How can I get my totals to take the outage hours from a single ticket instance, instead of the joined hours... (i.e., 4 * 14 + 5 * 3)?
I've tried conditional sums,
summing a formula which divided a ticket outage time by the number of "reasons",
Different joins
Is there a better way to approach this?
Going crazy in Virginia...
Marc
--
Marc Visconte
CSC
Lead RMS Developer
Crystal Reports
We have two joined tables, one with basic (helpdesk) ticket information and a new table with multiple "ticket parts" in it. The time totals for each ticket are stored in the first table... I group all the records in a couple if ways and try to get total times for groups, but because of the join to "multiple" "ticket parts", I am getting really bizarre totals, and I can't think my way out of it.
Example:
Table 1:
Tkt# Thrd# TotOut
T1 EL-A 14
T2 EL-B 7
T3 EL-A 5
T4 ...
Where
Tkt# is the ticket number.
"Thrd#" is an internal group association (i.e., circuit number in this case).
TotOut is the total time the ticket was "out".
Table 2:
RTkt Tkt# Svc
R1 T1 S1
R2 T1 S2
R3 T1 S1
R4 T1 S3
R5 T2 S2
R6 T2 S1
R7 T3 S4
R8 T3 S1
R9 T3 S2
This table is essentially possible reasons for a circuit failure.
RTkt is the unique "reason" record identifier
Tkt# is a reference to the parent ticket
Svc is an service designator.
One Ticket may have multiple "Reasons".
I group and chart by Thrd#, and HOPE to total outage hours...
EL-A xxx hours
EL-B yyy hours.
Part of the problem might be because of the NEXT step... I am supposed to sub-group (and pie chart) by services that were involved, and from there, go the the ticket data (w/ a sub-report to show the multiple reasons associated w/ a ticket. Because the outage hours are contained in the ticket, which is left-outer joined w/ the Reasons table, I think I'm getting multiples of the outage hours.
For instance...
T1 has 14 hours and 4 "reasons" associated with it, T3 has 5 hours and 3 Reasons. EL-A is associate with T1 and T3.
When I group on Thrd#, EL-A _should_ have 19 hours... it has much(!) more.
How can I get my totals to take the outage hours from a single ticket instance, instead of the joined hours... (i.e., 4 * 14 + 5 * 3)?
I've tried conditional sums,
summing a formula which divided a ticket outage time by the number of "reasons",
Different joins
Is there a better way to approach this?
Going crazy in Virginia...
Marc
--
Marc Visconte
CSC
Lead RMS Developer
Crystal Reports