<?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: Is it possible to use different fields for trend and displayed value in a Single Value visualization? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-it-possible-to-use-different-fields-for-trend-and-displayed/m-p/226547#M14041</link>
    <description>&lt;P&gt;That's what I thought. I was hoping this could be done in a single visualization. Will try to create a custom visualization based on the Single Value visualization... otherwise I'll have to go with Option 1.&lt;/P&gt;</description>
    <pubDate>Mon, 14 Nov 2016 08:44:45 GMT</pubDate>
    <dc:creator>krdo</dc:creator>
    <dc:date>2016-11-14T08:44:45Z</dc:date>
    <item>
      <title>Is it possible to use different fields for trend and displayed value in a Single Value visualization?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-it-possible-to-use-different-fields-for-trend-and-displayed/m-p/226541#M14035</link>
      <description>&lt;P&gt;Hi fellow splunkers,&lt;/P&gt;

&lt;P&gt;My search produces a time series with two values; the &lt;CODE&gt;trend&lt;/CODE&gt; field indicates the number of events in the current bin, the &lt;CODE&gt;total&lt;/CODE&gt; field the total number of events in the time range. When using a Single Value visualization it looks like this:&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/2137iB60B508F28782111/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;What I want is to display the value of the &lt;CODE&gt;total&lt;/CODE&gt; field instead of the last value of the &lt;CODE&gt;trend&lt;/CODE&gt; field. BUT the sparkline and trend indicator should still display the values of the &lt;CODE&gt;trend&lt;/CODE&gt; field.&lt;/P&gt;

&lt;P&gt;This is what I want it to look like (edited with a image editor):&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/2138iF124E915EBFECBA6/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Is this possible? I used an ugly hack in Splunk 6.3 which modified the updateResultState JavaScript function to achieve this, but that solution does not work anymore in 6.5 (and I don't think that was a good idea anyway).&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2016 09:49:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-it-possible-to-use-different-fields-for-trend-and-displayed/m-p/226541#M14035</guid>
      <dc:creator>krdo</dc:creator>
      <dc:date>2016-11-11T09:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use different fields for trend and displayed value in a Single Value visualization?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-it-possible-to-use-different-fields-for-trend-and-displayed/m-p/226542#M14036</link>
      <description>&lt;P&gt;Hi  krdo,&lt;BR /&gt;
I suppose that there is something more in your request, because the easiest way to solve your problem is to change your search and display only the requested value:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal
| evenstats count AS total
| timechart span=1m last(total) AS total
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;every way, if you want to maintain your search, you could insert in your Single Value Panel options &lt;CODE&gt;&amp;lt;fields&amp;gt; total&amp;lt;/fields&amp;gt;&lt;/CODE&gt;&lt;BR /&gt;
In this way is displayed only the total value.&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2016 10:38:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-it-possible-to-use-different-fields-for-trend-and-displayed/m-p/226542#M14036</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2016-11-11T10:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use different fields for trend and displayed value in a Single Value visualization?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-it-possible-to-use-different-fields-for-trend-and-displayed/m-p/226543#M14037</link>
      <description>&lt;P&gt;Using field or modifying the search will also change the sparkline and trend indicator - but i want to change the large/displayed value only (marked with red box in second screenshot). &lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2016 11:40:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-it-possible-to-use-different-fields-for-trend-and-displayed/m-p/226543#M14037</guid>
      <dc:creator>krdo</dc:creator>
      <dc:date>2016-11-11T11:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use different fields for trend and displayed value in a Single Value visualization?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-it-possible-to-use-different-fields-for-trend-and-displayed/m-p/226544#M14038</link>
      <description>&lt;P&gt;Trendline in Single Value visualization displays last data compared to its previous value and the Trend is the difference of both. In your case -10,300 indicates that latest Data 9288 is 10,300 less than previous data i.e. 19,588. In other words chart &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Option 1&lt;/STRONG&gt;&lt;BR /&gt;
If you want both trendline and Total Count easiest way would be just to assign Total Count to a token and print that as html panel before or after the Single Value visualization in the same panel.&lt;/P&gt;

&lt;P&gt;Please let me know if you need further details on html panel.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Option 2&lt;/STRONG&gt;&lt;BR /&gt;
If you append the following &lt;STRONG&gt;addcoltotals&lt;/STRONG&gt; command to your existing timechart it will give you Total in the Single Value Panel. However, since trend indicator compares final two values, it will always be 0 or positive. Trend Indicator will display the difference between Total and the trend value for the last time bucket. In this example the two values will be &lt;STRONG&gt;105860&lt;/STRONG&gt; and &lt;STRONG&gt;+96572&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal
 | timechart span=1m last(total) AS total
 | addcoltotals trend labelfield=_time
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 11 Nov 2016 14:45:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-it-possible-to-use-different-fields-for-trend-and-displayed/m-p/226544#M14038</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2016-11-11T14:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use different fields for trend and displayed value in a Single Value visualization?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-it-possible-to-use-different-fields-for-trend-and-displayed/m-p/226545#M14039</link>
      <description>&lt;P&gt;Hi krdo,&lt;BR /&gt;
If I understood: you would have "total" in the single value and "trend" in trendline, correct?&lt;BR /&gt;
If this is your desire, I don't think that it's possible, you could create two different panels: one with the single value (totale) and one with trendline (trend).&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2016 15:19:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-it-possible-to-use-different-fields-for-trend-and-displayed/m-p/226545#M14039</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2016-11-11T15:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use different fields for trend and displayed value in a Single Value visualization?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-it-possible-to-use-different-fields-for-trend-and-displayed/m-p/226546#M14040</link>
      <description>&lt;P&gt;Yes, that's what I'm trying to do. Seems to be impossible in a single visualization.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2016 08:43:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-it-possible-to-use-different-fields-for-trend-and-displayed/m-p/226546#M14040</guid>
      <dc:creator>krdo</dc:creator>
      <dc:date>2016-11-14T08:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use different fields for trend and displayed value in a Single Value visualization?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-it-possible-to-use-different-fields-for-trend-and-displayed/m-p/226547#M14041</link>
      <description>&lt;P&gt;That's what I thought. I was hoping this could be done in a single visualization. Will try to create a custom visualization based on the Single Value visualization... otherwise I'll have to go with Option 1.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2016 08:44:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-it-possible-to-use-different-fields-for-trend-and-displayed/m-p/226547#M14041</guid>
      <dc:creator>krdo</dc:creator>
      <dc:date>2016-11-14T08:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use different fields for trend and displayed value in a Single Value visualization?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-it-possible-to-use-different-fields-for-trend-and-displayed/m-p/549555#M37897</link>
      <description>&lt;P&gt;This worked for me - gives change and the total in a single panel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;|tstats count where index=office365 by _time span=15m | streamstats sum(count) AS TOTAL | fields TOTAL&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Apr 2021 04:03:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-it-possible-to-use-different-fields-for-trend-and-displayed/m-p/549555#M37897</guid>
      <dc:creator>robtun1</dc:creator>
      <dc:date>2021-04-28T04:03:09Z</dc:date>
    </item>
  </channel>
</rss>

