<?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: Change timechart x-axis to quarters in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Change-timechart-x-axis-to-quarters/m-p/632783#M51864</link>
    <description>&lt;P&gt;I misplaced a parenthesis.&amp;nbsp; Please try my revised answer.&lt;/P&gt;</description>
    <pubDate>Wed, 01 Mar 2023 14:52:29 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2023-03-01T14:52:29Z</dc:date>
    <item>
      <title>Change timechart x-axis to quarters?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Change-timechart-x-axis-to-quarters/m-p/632762#M51861</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have a timechart and the timeline on the X-axis must be in terms of quarters, i.e.&amp;nbsp;&lt;SPAN&gt;like FY24Q1, FY24 Q2 etc.&lt;BR /&gt;&lt;BR /&gt;Currently, this is my query:&lt;BR /&gt;(BASE SEARCH)&amp;nbsp;| timechart span=1q count | eval Quarter=strftime(_time,"%Y") . "Q" . ceil((strftime(_time,"%m")+1)/3) | rename count as "Event Count" | fields Quarter, "Event Count"&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;However, I am receiving the following error:&lt;BR /&gt;Error in 'eval' command: Type checking failed. '+' only takes two strings or two numbers.&lt;BR /&gt;&lt;BR /&gt;What can I do to solve this?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks as always!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 15:14:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Change-timechart-x-axis-to-quarters/m-p/632762#M51861</guid>
      <dc:creator>POR160893</dc:creator>
      <dc:date>2023-03-01T15:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: Change timechart x-axis to quarters</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Change-timechart-x-axis-to-quarters/m-p/632767#M51862</link>
      <description>&lt;P&gt;The &lt;FONT face="courier new,courier"&gt;strftime&lt;/FONT&gt; function returns a string.&amp;nbsp; The error is complaining that &lt;FONT face="courier new,courier"&gt;eval&lt;/FONT&gt; can't add a number to a string.&amp;nbsp; Try this to convert the &lt;FONT face="courier new,courier"&gt;strftime&lt;/FONT&gt; output to a number.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval Quarter=strftime(_time,"%Y") . "Q" . ceil(tonumber(strftime(_time,"%m")))+1/3)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 14:51:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Change-timechart-x-axis-to-quarters/m-p/632767#M51862</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-03-01T14:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: Change timechart x-axis to quarters</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Change-timechart-x-axis-to-quarters/m-p/632779#M51863</link>
      <description>&lt;P&gt;When I used your suggestion as follows:&lt;BR /&gt;[BASE SEARCH]&lt;BR /&gt;| timechart span=1q count&lt;BR /&gt;| eval Quarter=strftime(_time,"%Y") . "Q" . ceil(tonumber(strftime(_time,"%m"))+1)/3)&lt;BR /&gt;| rename count as "Event Count" | fields Quarter, "Event Count",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I receive the following error:&lt;BR /&gt;&lt;SPAN&gt;Error in 'eval' command: The expression is malformed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;What can I do?&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 14:25:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Change-timechart-x-axis-to-quarters/m-p/632779#M51863</guid>
      <dc:creator>POR160893</dc:creator>
      <dc:date>2023-03-01T14:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: Change timechart x-axis to quarters</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Change-timechart-x-axis-to-quarters/m-p/632783#M51864</link>
      <description>&lt;P&gt;I misplaced a parenthesis.&amp;nbsp; Please try my revised answer.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 14:52:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Change-timechart-x-axis-to-quarters/m-p/632783#M51864</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-03-01T14:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: Change timechart x-axis to quarters</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Change-timechart-x-axis-to-quarters/m-p/632790#M51865</link>
      <description>&lt;P&gt;So, at the moment, your updated query gives me this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="POR160893_0-1677683220101.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/24126i369CEA9F01C6B12B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="POR160893_0-1677683220101.png" alt="POR160893_0-1677683220101.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The above query is as follows:&lt;BR /&gt;[BASE SEARCH]&lt;BR /&gt;| timechart span=1q count&lt;BR /&gt;| eval Quarter=strftime(_time,"%Y") . "Q" . ceil((tonumber(strftime(_time,"%m")))+1/3)&lt;BR /&gt;| rename count as "Event Count" | fields Quarter, "Event Count"&lt;BR /&gt;&lt;BR /&gt;However, I need the individual days to be show WITH what ever quarter the day falls in.. So one timeline whose Year/Month/date and an overarching time to show what Quarter it falls.&lt;BR /&gt;Is this possible?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 15:08:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Change-timechart-x-axis-to-quarters/m-p/632790#M51865</guid>
      <dc:creator>POR160893</dc:creator>
      <dc:date>2023-03-01T15:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: Change timechart x-axis to quarters</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Change-timechart-x-axis-to-quarters/m-p/632791#M51866</link>
      <description>&lt;P&gt;Timecharts support a single timeline on the X-axis.&amp;nbsp; Consider filing an enhancement request at&amp;nbsp;&lt;A href="https://ideas.splunk.com" target="_blank"&gt;https://ideas.splunk.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Another thing to consider is using annotations to denote the quarters.&amp;nbsp; An annotation is a vertical line in the graph that marks when something happened.&amp;nbsp; It's not exactly what you're looking for, but may help.&amp;nbsp; See&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.4/Viz/ChartEventAnnotations" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.0.4/Viz/ChartEventAnnotations&lt;/A&gt;&amp;nbsp;for more information.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 15:22:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Change-timechart-x-axis-to-quarters/m-p/632791#M51866</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-03-01T15:22:52Z</dc:date>
    </item>
  </channel>
</rss>

