Hi!
I have a problem that I'm not sure how I should tackle.
I'm trying to find a way to illustrate my process steps or escalations based on a table containing records for each change in escalation.
My table is setup in the following way:
CaseID TimeStamp OldValue NewValue
156 2010-02-16 11:37 Tier 1 Tier 2
156 2010-02-16 11:38 Tier 2 Tier 3
162 2010-02-11 12:39 Tier 1 Tier 2
162 2010-02-16 13:48 Tier 2 Tier 3
178 2010-02-11 12:40 Tier 1 Tier 2
178 2010-02-16 13:47 Tier 2 Tier 3
181 2010-02-11 12:41 Tier 1 Tier 2
181 2010-02-16 13:47 Tier 2 Tier 3
185 2010-02-10 15:18 Tier 1 Tier 2
185 2010-02-16 13:46 Tier 2 Tier 3
191 2010-02-15 13:46 Tier 1 Tier 3
As you can see each Case ID can be escalated to a different work tier one or several times. I want to be able to present this table in a better way.
I'm aiming at getting the end result to look something like this:
CaseID OriginalTier Escalation1 Escalation2
156 Tier 1 Tier 2 Tier 3
162 Tier 1 Tier 2 Tier 3
178 Tier 1 Tier 2 Tier 3
181 Tier 1 Tier 2 Tier 3
185 Tier 1 Tier 2 Tier 3
191 Teir 1 Tier 3
With the above presentation it's easier to analyze the figures at the front end.
The problem is I can't seem to be able to achive this. I first started using a normal query then tried crosstab query which didnt work out. Then I looked at Union but it was very hard to understand. I'm thinking something more elaborate is required to reach this.
I've also started to think that it might be possible to somehow rank each record within the same CaseID to be able to use the rank to then re-arrange the data but with my limited knowledge I've failed so far.
Any advice on how to proceed would be greatly appriciated!
I have a problem that I'm not sure how I should tackle.
I'm trying to find a way to illustrate my process steps or escalations based on a table containing records for each change in escalation.
My table is setup in the following way:
CaseID TimeStamp OldValue NewValue
156 2010-02-16 11:37 Tier 1 Tier 2
156 2010-02-16 11:38 Tier 2 Tier 3
162 2010-02-11 12:39 Tier 1 Tier 2
162 2010-02-16 13:48 Tier 2 Tier 3
178 2010-02-11 12:40 Tier 1 Tier 2
178 2010-02-16 13:47 Tier 2 Tier 3
181 2010-02-11 12:41 Tier 1 Tier 2
181 2010-02-16 13:47 Tier 2 Tier 3
185 2010-02-10 15:18 Tier 1 Tier 2
185 2010-02-16 13:46 Tier 2 Tier 3
191 2010-02-15 13:46 Tier 1 Tier 3
As you can see each Case ID can be escalated to a different work tier one or several times. I want to be able to present this table in a better way.
I'm aiming at getting the end result to look something like this:
CaseID OriginalTier Escalation1 Escalation2
156 Tier 1 Tier 2 Tier 3
162 Tier 1 Tier 2 Tier 3
178 Tier 1 Tier 2 Tier 3
181 Tier 1 Tier 2 Tier 3
185 Tier 1 Tier 2 Tier 3
191 Teir 1 Tier 3
With the above presentation it's easier to analyze the figures at the front end.
The problem is I can't seem to be able to achive this. I first started using a normal query then tried crosstab query which didnt work out. Then I looked at Union but it was very hard to understand. I'm thinking something more elaborate is required to reach this.
I've also started to think that it might be possible to somehow rank each record within the same CaseID to be able to use the rank to then re-arrange the data but with my limited knowledge I've failed so far.
Any advice on how to proceed would be greatly appriciated!