Forum Discussion

FOZZY's avatar
FOZZY
Frequent Visitor
3 years ago

Need help connecting different data based on date and customer ID

Hello.  

Hoping someone can point in in the right direction on this.  

Our drivers are assigned routes every day with service stops to customers.  At each stop, they submit a service ticket which is assigned to that customer's unique ID#.  I need to show which stops are made or skipped each day by comparing the Ticket submittals to the scheduled stops. But not every scheduled stop will have a service ticket and there might be multiple tickets for the same account but on different dates.  I put together some example data below.  I would greatly appreciate any guidance on how to combine this for final result.  Thank you!

  •  have a scheduled Routes table which shows the Date scheduled, customer ID. 
  • I have a Delivery table which shows the date of ticket submittal, Ticket number, and customer ID. 
  • And I have a Date table.  

 

Date Table Example
DateYearQuarterMonthMonth NameDay of Week Name
22-Dec-222022Q412DecemberThursday
27-Dec-222022Q412DecemberTuesday
28-Dec-222022Q412DecemberWednesday
25-Jan-232023Q11JanuaryWednesday

 

Assigned Routes
Route NameDateAreaCust Account No
Driver222-Dec-22LP1314733
Driver422-Dec-22LP1318780
Driver222-Dec-22LP1320059
Driver222-Dec-22LP1321442
Driver422-Dec-22LP1323524
Driver322-Dec-22LP1323536
Driver322-Dec-22LP1330219
Driver322-Dec-22LP1330969
Driver322-Dec-22LP1331255

 

Delivery Tickets
SubmissionNoCust Account NoDate
TK0001602101473322-Dec-22
TK0001602111878022-Dec-22
TK0001602122005922-Dec-22
TK0001602132144222-Dec-22
TK0001602142353622-Dec-22
TK0001602150844022-Dec-22
TK0001602161620322-Dec-22
TK0001602171565122-Dec-22
TK00016021876522-Dec-22
TK0001575251072525-Jan-23

 

 

 

1 Reply

  • Please provide sample data that covers your issue or question completely.

    Please show the expected outcome based on the sample data you provided.