Splunk Search

How to display date values based on picker and sort it based on the value being pick

Dylan_Kyle
Loves-to-Learn Lots

Hi - i'm working on a simple dashboard where user will pick a certain date in a multipicker. Once date is being picked it will display data on every panel. My issue is that whenever i picked multiple dates for example:

27-Nov-2020
20-Nov-2020
30-Oct-2020

it will always get to the point that it will display the highest numeric value  (30-Oct-2020) despite that I picked the other dates first.sample.PNG

what i am looking for is to display date based on what did i select in the picker regardless of its numeric value and they should get display from right to left

i tried to change the date format in the lookup to see if it won't get sorted automatically but to no avail. it seems that date with the highest numerical values will automatically get sorted ascendingly

Tags (1)
0 Karma

to4kawa
Ultra Champion
| gentimes start=01/01/21 end=01/20/21
| table starthuman endtime
| eval starthuman = substr(starthuman,1,10)." 2021"
| reverse

If you make the X axis a string, I think you can do it in any order.

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...