Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Calculate Overlap based on Interval and Frequency

My company runs a computer process called a "job" according to an update frequency per minute (minutely) or per hour (hourly). I need to count the overlap of jobs per day according to the interval an...
  • tex628's avatar
    tex628
    7 years ago

    This is what i would do considering that you only have 24 jobs, 

    I would convert the start  of interval to numeric minutes. 

    00:00:00 would be 0 
    09:00:00 would be 540
    24:00:00 would be 1440 
    Etc... 

    Next, create a list for each job by using List.Numbers with the new start value. Use number of runs per day as the count and the interval as the increment. 

    https://docs.microsoft.com/en-us/powerquery-m/list-numbers

    This should give you a row for each time a job is run. So a single job that is run 1440 times should now have 1440 rows.

    With this you should be able to display exactly how many jobs are running each minute. 

    I hope that you understand! :)

    Good luck,
    Johannes