hi all
below is my query i am working with i have a correct output of business hours
utilization using formula but i have to input manually in the formula is there a way i can do it using any input for selected timeperiod
so i dont have to do it manual.
ex., I used | eval ... , which is correct but used
540as total minutes for
business hoursfor the time period
yesterday. but i need a input so if i select any other
timeperiodi get utilization value not by entering
540for
yesterdayor
2700total minutes(
business hours) for
last week`.
Like this:
... | eval utilization=round(100*minutes/
[|makeresults
| addinfo
| eval _time = info_min_time
| timechart count span=1h
| eval dayofweek = strftime(_time, "%a")
| eval hourofday = strftime(_time, "%H")
| search (NOT (dayofweek="Sat" OR dayofweek="Sun")) AND hourofday>7 AND hourofday<17
| stats count AS business_hours
| eval business_minutes = 60 * business_hours], 2). "%" ...