Thank you! Got the first step done by your query. | eval SUBMITED_DATE = split(SUBMITED_DATE, " ") | eval date = mvindex(SUBMITED_DATE, 0), time_of_day = strptime(mvindex(SUBMITED_DATE, 1), "%H:%M:%S") | eval shift = case(time_of_day < 1664258400, "A", 1664258400 <= time_of_day AND time_of_day < 1664287200, "B", true(), "C") The next step is to count the number of each month | timechart span = 1mon count(eval(shift = "A")) as first_shift, count(eval(shift = "B")) as second_shift, count(eval(shift = "C")) as third_shift | tail 12 | sort _time As you see my query, I want to count every shift in every month of the last year. But there is something wrong with above query...
... View more