I am doing:
case(strptime($latest$,"%Y/%m/%d %H:%M:%S")-strptime($earliest$,"%Y/%m/%d %H:%M:%S")<518400,"1m",true(),"1d")
but it works just for date range and not for other types...
How can I do if I want it to work with presets time, for example, or other types?
@henriq_c you would need to run an independent search based on the time picker input and set the required tokens in the independent search refer to one of previous answers on similar lines: https://answers.splunk.com/answers/578984/running-one-of-two-searches-based-on-time-picker-s.html