The company I work for has a parcel-tracking software that we sell to our customers. It uses SQL-database to store the data. And to create reports for the parcels delivery times and other stuff, like exceptions, costs, signatures, we use crystal reports.
One of our customers would like a SLA report, where they want to track the time between a certain location to the time where is has been delivered.
The formula must contain:
I have all the data in the SQL-database, but I cant figure out the formula for this.
A brief description of the workflow:
I'm using Crystal Reports, where I'm trying to create the formula.
Use the datediff function:
datediff('d', {startingdate}, {endingdate})
First a formula for RECEIVED to LOCSCAN and then LOCSCAN to DELIVERED if I'm understanding correctly.
The 'd' stands for days, you can replace with 'h' for hours or 's' for seconds. The fields between {} are the ones from database.