<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to enter selected Time period in the Chart title in a Dashboard? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-enter-selected-Time-period-in-the-Chart-title-in-a/m-p/654071#M53787</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;, thanks!&lt;BR /&gt;I am actually updating a Dashboard created by my previous colleague.&lt;BR /&gt;So I have this filter already set up like this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Norrmor_0-1691757923231.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/26760i632B2A383F25EB36/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Norrmor_0-1691757923231.png" alt="Norrmor_0-1691757923231.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When I use the dashboard, the standard Time period selection comes up like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Norrmor_1-1691758040936.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/26761iD52C5FDC5E894EEF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Norrmor_1-1691758040936.png" alt="Norrmor_1-1691758040936.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And then on the filter it looks like this in the Time Period selection filter:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Norrmor_2-1691758143249.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/26762i8FB1448B02DD67DC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Norrmor_2-1691758143249.png" alt="Norrmor_2-1691758143249.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Does that help?&amp;nbsp;&lt;BR /&gt;I mean, somehow Splunk gets a value that it shows in the selection filter.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 11 Aug 2023 12:49:40 GMT</pubDate>
    <dc:creator>Norrmor</dc:creator>
    <dc:date>2023-08-11T12:49:40Z</dc:date>
    <item>
      <title>How to enter selected Time period in the Chart title in a Dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-enter-selected-Time-period-in-the-Chart-title-in-a/m-p/654063#M53785</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I have managed to enter other fields in Chart title, but I fail to get the selected time period visible with a dynamic variable in the title of a Chart.&lt;/P&gt;&lt;P&gt;So, I can do this chart title:&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Time chart of Users and Journal notes ($care_unit_tok$)&lt;/LI&gt;&lt;LI&gt;Which after Care Unit selection = ASIH Botkyrka results in this title:&amp;nbsp;&amp;nbsp;&lt;BR /&gt;Antal användare och journalanteckningar (| where (care_unit = "ASIH Botkyrka"))&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;But I fail to do similar action with&amp;nbsp;time_tok, e.g. like this:&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Time chart of Users and Journal notes ($time_tok$)&lt;/LI&gt;&lt;LI&gt;But even if I have made a time selection which I can see in the filter as Jul 2023,&lt;BR /&gt;I only get this text over the Chart, without any time period displayed:&amp;nbsp;&lt;BR /&gt;Time chart of Users and Journal notes&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Thanks for any ideas on how to solve this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2023 12:35:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-enter-selected-Time-period-in-the-Chart-title-in-a/m-p/654063#M53785</guid>
      <dc:creator>Norrmor</dc:creator>
      <dc:date>2023-08-11T12:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to enter selected Time period in the Chart title in a Dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-enter-selected-Time-period-in-the-Chart-title-in-a/m-p/654067#M53786</link>
      <description>&lt;P&gt;Probably going to need a bit more information&lt;/P&gt;&lt;P&gt;How is time_tok set? If you are using a time input widget, you can get $time_tok.earliest$ and $time_tok.latest$ as the earliest and latest values chosen.&lt;/P&gt;&lt;P&gt;However, I suspect this may not be in the format you want.&lt;/P&gt;&lt;P&gt;You could either use the change handler (if you have a Classic Dashboard) to evaluate a new token based on the either the earliest or latest time selected, or use the done handler for the panel search and evaluate a token based on the (first row of the) result of the search.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2023 12:42:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-enter-selected-Time-period-in-the-Chart-title-in-a/m-p/654067#M53786</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-08-11T12:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to enter selected Time period in the Chart title in a Dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-enter-selected-Time-period-in-the-Chart-title-in-a/m-p/654071#M53787</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;, thanks!&lt;BR /&gt;I am actually updating a Dashboard created by my previous colleague.&lt;BR /&gt;So I have this filter already set up like this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Norrmor_0-1691757923231.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/26760i632B2A383F25EB36/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Norrmor_0-1691757923231.png" alt="Norrmor_0-1691757923231.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When I use the dashboard, the standard Time period selection comes up like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Norrmor_1-1691758040936.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/26761iD52C5FDC5E894EEF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Norrmor_1-1691758040936.png" alt="Norrmor_1-1691758040936.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And then on the filter it looks like this in the Time Period selection filter:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Norrmor_2-1691758143249.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/26762i8FB1448B02DD67DC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Norrmor_2-1691758143249.png" alt="Norrmor_2-1691758143249.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Does that help?&amp;nbsp;&lt;BR /&gt;I mean, somehow Splunk gets a value that it shows in the selection filter.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2023 12:49:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-enter-selected-Time-period-in-the-Chart-title-in-a/m-p/654071#M53787</guid>
      <dc:creator>Norrmor</dc:creator>
      <dc:date>2023-08-11T12:49:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to enter selected Time period in the Chart title in a Dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-enter-selected-Time-period-in-the-Chart-title-in-a/m-p/654077#M53788</link>
      <description>&lt;P&gt;Hi, my answer disappeared. Sorry.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am using the standard time selection filter in Splunk:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Norrmor_0-1691759351850.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/26763i266734C402053BB0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Norrmor_0-1691759351850.png" alt="Norrmor_0-1691759351850.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried your variables on another Chart:&amp;nbsp;&lt;BR /&gt;Statuses ($time_tok.earliest$ - $time_tok.latest$)&lt;BR /&gt;&lt;BR /&gt;Which rendered this result (which is as you say useless to me and the users):&amp;nbsp;&lt;BR /&gt;Statuses (1688169600 - 1690848000)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2023 13:26:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-enter-selected-Time-period-in-the-Chart-title-in-a/m-p/654077#M53788</guid>
      <dc:creator>Norrmor</dc:creator>
      <dc:date>2023-08-11T13:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to enter selected Time period in the Chart title in a Dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-enter-selected-Time-period-in-the-Chart-title-in-a/m-p/654079#M53789</link>
      <description>&lt;P&gt;Basically, I want the time for the time period of the search interval.&lt;BR /&gt;(Could be as "from-to", or as a dedicated month or year. I am not picky)&lt;BR /&gt;&lt;BR /&gt;I do not need the time for the actual search results.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2023 13:14:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-enter-selected-Time-period-in-the-Chart-title-in-a/m-p/654079#M53789</guid>
      <dc:creator>Norrmor</dc:creator>
      <dc:date>2023-08-11T13:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to enter selected Time period in the Chart title in a Dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-enter-selected-Time-period-in-the-Chart-title-in-a/m-p/654081#M53790</link>
      <description>&lt;P&gt;Now I found in the source code:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;| stats count as cnt by Tenant&amp;lt;/query&amp;gt;&lt;BR /&gt;&amp;lt;earliest&amp;gt;$time_tok.earliest$&amp;lt;/earliest&amp;gt;&lt;BR /&gt;&amp;lt;latest&amp;gt;$time_tok.latest$&amp;lt;/latest&amp;gt;&lt;BR /&gt;&amp;lt;/search&amp;gt;&lt;BR /&gt;&lt;BR /&gt;and further down:&lt;BR /&gt;&lt;BR /&gt;&amp;lt;input type="time" token="time_tok"&amp;gt;&lt;BR /&gt;&amp;lt;label&amp;gt;Period&amp;lt;/label&amp;gt;&lt;BR /&gt;&amp;lt;default&amp;gt;&lt;BR /&gt;&amp;lt;earliest&amp;gt;-1y@y&amp;lt;/earliest&amp;gt;&lt;BR /&gt;&amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;&lt;BR /&gt;&amp;lt;/default&amp;gt;&lt;BR /&gt;&amp;lt;/input&amp;gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2023 13:24:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-enter-selected-Time-period-in-the-Chart-title-in-a/m-p/654081#M53790</guid>
      <dc:creator>Norrmor</dc:creator>
      <dc:date>2023-08-11T13:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to enter selected Time period in the Chart title in a Dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-enter-selected-Time-period-in-the-Chart-title-in-a/m-p/654089#M53791</link>
      <description>&lt;P&gt;Try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;eval token="date"&amp;gt;strftime($time_tok.earliest$,"%m %Y")&amp;lt;/eval&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 11 Aug 2023 14:19:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-enter-selected-Time-period-in-the-Chart-title-in-a/m-p/654089#M53791</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-08-11T14:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to enter selected Time period in the Chart title in a Dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-enter-selected-Time-period-in-the-Chart-title-in-a/m-p/654096#M53792</link>
      <description>&lt;P&gt;Thanks again, but that did not work either in the title:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Norrmor_0-1691764655596.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/26765i49B8354DB6EE8B04/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Norrmor_0-1691764655596.png" alt="Norrmor_0-1691764655596.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;I have also tried $form.time_tok$&amp;nbsp; &amp;nbsp;(which worked wonders for other fields like $form.care_unit_tok$)&lt;BR /&gt;to no avail (-&amp;gt; empty result).&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have also tried $form.time$&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;(-&amp;gt; empty result)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2023 14:40:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-enter-selected-Time-period-in-the-Chart-title-in-a/m-p/654096#M53792</guid>
      <dc:creator>Norrmor</dc:creator>
      <dc:date>2023-08-11T14:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to enter selected Time period in the Chart title in a Dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-enter-selected-Time-period-in-the-Chart-title-in-a/m-p/654099#M53793</link>
      <description>&lt;P&gt;And when I enter your phrase inside the search code of that report I got this error:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Norrmor_1-1691765012536.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/26766i31179B500EB5C68C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Norrmor_1-1691765012536.png" alt="Norrmor_1-1691765012536.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2023 14:44:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-enter-selected-Time-period-in-the-Chart-title-in-a/m-p/654099#M53793</guid>
      <dc:creator>Norrmor</dc:creator>
      <dc:date>2023-08-11T14:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to enter selected Time period in the Chart title in a Dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-enter-selected-Time-period-in-the-Chart-title-in-a/m-p/654112#M53794</link>
      <description>&lt;P&gt;Try adding the line to the change handler for the time input widget&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2023 16:20:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-enter-selected-Time-period-in-the-Chart-title-in-a/m-p/654112#M53794</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-08-11T16:20:56Z</dc:date>
    </item>
  </channel>
</rss>

