Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have the following data. I am trying to number the amount of trips per each day in the time that they happened from earliest to latest.
This data is loaded as PefromanceData
PerformanceData:Load *,if (Previous(VehicleID) = VehicleID and Previous(floor(Day)) = floor(Day), peek('DayTripNo') + 1, 1) as DayTripNo
Resident PerformanceData1order by VehicleID,Day,[DatafromDateTime];
Drop table PerformanceData1;