In Transportation business and use SQL Server with CR 10.
I am working from data from a table that shows:
{allhistory.FromTime} //pickup times
{allhistory.TimeDone} //Time rides completed
{allhistory.DriverName} //driver names
{allhistory.RideID}. //confirmation numbers of trips ran by driver.
I can formulate how many trips a driver has ran between two dates. I can also show what percentage of the total trips a particular driver has ran overall.
I have placed these counts in a group which resets after each driver, so all 70 drivers are displayed in name order.
I would like to calculate how many days each driver has ran trips, keeping in mind they may run several trips a day. This will give me how many days a driver has worked. Then, I would like to calculate how many days a driver has NOT worked. 75% of the drivers are part-time so days off would reflect why the percentage may be lower than other drivers.
We are a 24/7 365 day company so holidays aren't a factor.
So far, my results reflect the same amount of days as there are trips. Do I add a second group for {allhistory.FromTime} and have it reset on change of Day?
I am working from data from a table that shows:
{allhistory.FromTime} //pickup times
{allhistory.TimeDone} //Time rides completed
{allhistory.DriverName} //driver names
{allhistory.RideID}. //confirmation numbers of trips ran by driver.
I can formulate how many trips a driver has ran between two dates. I can also show what percentage of the total trips a particular driver has ran overall.
I have placed these counts in a group which resets after each driver, so all 70 drivers are displayed in name order.
I would like to calculate how many days each driver has ran trips, keeping in mind they may run several trips a day. This will give me how many days a driver has worked. Then, I would like to calculate how many days a driver has NOT worked. 75% of the drivers are part-time so days off would reflect why the percentage may be lower than other drivers.
We are a 24/7 365 day company so holidays aren't a factor.
So far, my results reflect the same amount of days as there are trips. Do I add a second group for {allhistory.FromTime} and have it reset on change of Day?