Forum Discussion

lejoS1225's avatar
lejoS1225
Copper Contributor
Sep 03, 2024
Solved

Rolling hour with a trafiffic schedule that only gives me the actual departure time

Hi. I have a data source where i can download to excel. The source gives information on actual departures and arrivals on the actual date and time. The issue is that i need to analyse the data in ro...
  • mathetes's avatar
    mathetes
    Sep 04, 2024

    lejoS1225 

     

    See the attached. I was able to get the five minute count for each five minute period by using the FILTER function. But only for the raw data you provide.

     

    For what it's worth, I've always understood a rolling total to refer to the prior months or hours or whatever, not the ensuing or following ones. So a twelve month rolling total (or rolling average) goes BACK in time to get the first number, and then the ensuing months up to the most recent. You appear to be interpreting rolling totals in the other direction. If that's what you desire, it works; I'm just not familiar with that way of looking at it.

     

    So all I've done at this point, in the attached, is shown in the green area, and it uses the FILTER function to get the number of flights for each five minute period.

     

    I'm not quite sure what is going on, but I did discover that there is a difference of some kind between the time as shown on the "Data Source" tab and the time as shown on the "Expected Result" tab. The only way I could get my FILTER function to work, in this formula

    =SUM(FILTER('Data source'!$D$2:$D$29,'Data source'!$B$2:$B$29='Expected result'!B81,0))

    was to go through the "Data Source" times and copy the corresponding times from "Expected Result" --I couldn't see a difference between the two fields (they're both the same length). They do both show up as 'custom format' so it's possible they're different custom formats. I'll let you look into that further. But certainly, that difference--whatever it is--will continue to affect your results until it's resolved.

Resources