Find first created activity

Carrie

Active Member
Joined
Nov 20, 2002
Messages
418
I am measuring the first outbound activity on a call. Each call is designated a unique call number. You then add activities to the call. So the activities have the same call number but different times the activities were created.

I need to know how to pull a query that only looks at the first created activity time for each unique call number.

Here is the SQL I have so far.

SELECT [Tbl - Activities].[SR #], [Tbl - Activities].Created
FROM [Tbl - Activities]
ORDER BY [Tbl - Activities].[SR #], [Tbl - Activities].Created;


Where SR # is the Call number. Created is the date the activity was created.
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Try a Totals query grouping on SR# and using Min for Created.

eg

SELECT [Tbl -Activities].[SR #], Min([Tbl -Activities].Created) AS MinOfCreated
FROM [Tbl -Activities]
GROUP BY [Tbl -Activities].[SR #];
 
Upvote 0
This is where I am going with this.

Once we find only the first outbound event for each SR (call). I will then link this query to another table that holds the actual call the customer made.

Here is how it works. A customer calls and we log their call (SR) then when the tech returns thier call and tries to fix this issue they document the call in an activity.

So, when I find the first outbound activity (we know it is the first because of the time it was created) I will link that to the table with all of the SR's.

I then need to somehow find the first response time. That is to say, how long did it take from the time the customer logged the call to the time the tech made thier first outbound activity.

I guess if we can go straight to this last part that would be beneficial.

I hope I haven't made things more confusing. I was actually trying to make them more clear.

Please let me know if you need more information.
 
Upvote 0
Sorry Norie,

I started typing the second part before I saw your reply. I will try that and let you know.

Maybe you can help with the second part?
 
Upvote 0

Forum statistics

Threads
1,221,825
Messages
6,162,190
Members
451,752
Latest member
majbizzaki

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top