<?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: Dashboard Studio Single Value with Trendlines in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/Dashboard-Studio-Single-Value-with-Trendlines/m-p/709972#M21473</link>
    <description>&lt;P&gt;This is probably why I'm getting confused.&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="50%" height="25px"&gt;Jan&lt;/TD&gt;&lt;TD width="50%" height="25px"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="25px"&gt;Feb&lt;/TD&gt;&lt;TD width="50%" height="25px"&gt;105&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="25px"&gt;March&lt;/TD&gt;&lt;TD width="50%" height="25px"&gt;90&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Given this table, I want to have a single value trellis view that depicts the month total , with a trend compared to the previous month.&lt;/P&gt;&lt;P&gt;Jan 100 (no trend) , Feb 105 (shows trend up 5), March 90 (shows trend down 15).&lt;/P&gt;&lt;P&gt;I'm going to play with timewrap, maybe I'm going down the wrong path.&lt;/P&gt;</description>
    <pubDate>Tue, 28 Jan 2025 14:43:07 GMT</pubDate>
    <dc:creator>chrisboy68</dc:creator>
    <dc:date>2025-01-28T14:43:07Z</dc:date>
    <item>
      <title>Dashboard Studio Single Value with Trendlines</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Dashboard-Studio-Single-Value-with-Trendlines/m-p/709840#M21445</link>
      <description>&lt;P&gt;Hi, struggling to get single values to show with trendline comparing to previous month.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| bin span=1mon _time
| chart sum(cost) as monthly_costs over bill_date &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tried differnt varations. The above will show a single value for each month, but I want to add a trendline to the single value to compare to the previous month. Any ideas?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2025 14:58:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Dashboard-Studio-Single-Value-with-Trendlines/m-p/709840#M21445</guid>
      <dc:creator>chrisboy68</dc:creator>
      <dc:date>2025-01-27T14:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard Studio Single Value with Trendlines</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Dashboard-Studio-Single-Value-with-Trendlines/m-p/709854#M21449</link>
      <description>&lt;LI-CODE lang="markup"&gt;| bin span=1mon _time
| chart sum(cost) as monthly_cost over _time&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 27 Jan 2025 17:17:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Dashboard-Studio-Single-Value-with-Trendlines/m-p/709854#M21449</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2025-01-27T17:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard Studio Single Value with Trendlines</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Dashboard-Studio-Single-Value-with-Trendlines/m-p/709858#M21450</link>
      <description>&lt;P&gt;Keep getting "&lt;SPAN&gt;Select a valid trellis split by field", used "_time" and tried "monthly_cost" .&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2025 18:27:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Dashboard-Studio-Single-Value-with-Trendlines/m-p/709858#M21450</guid>
      <dc:creator>chrisboy68</dc:creator>
      <dc:date>2025-01-27T18:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard Studio Single Value with Trendlines</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Dashboard-Studio-Single-Value-with-Trendlines/m-p/709859#M21451</link>
      <description>&lt;P&gt;"Trellis"? Where did that come from? Please clarify what you are actually trying to do?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2025 18:33:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Dashboard-Studio-Single-Value-with-Trendlines/m-p/709859#M21451</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2025-01-27T18:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard Studio Single Value with Trendlines</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Dashboard-Studio-Single-Value-with-Trendlines/m-p/709862#M21453</link>
      <description>&lt;P&gt;Hi, this&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.4.0/DashStudio/trellisLayout" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.4.0/DashStudio/trellisLayout&lt;/A&gt;.&amp;nbsp; Specifly like this sample.&amp;nbsp; With each month, cost and the trend line comparing to previous month.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="chrisboy68_0-1738005216924.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/34252iD2E575A3856939A2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="chrisboy68_0-1738005216924.png" alt="chrisboy68_0-1738005216924.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2025 19:14:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Dashboard-Studio-Single-Value-with-Trendlines/m-p/709862#M21453</guid>
      <dc:creator>chrisboy68</dc:creator>
      <dc:date>2025-01-27T19:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard Studio Single Value with Trendlines</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Dashboard-Studio-Single-Value-with-Trendlines/m-p/709887#M21458</link>
      <description>&lt;P&gt;So far, you have only mentioned 2 dimensions, cost and time - what else are you breaking your statistics down by?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2025 22:51:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Dashboard-Studio-Single-Value-with-Trendlines/m-p/709887#M21458</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2025-01-27T22:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard Studio Single Value with Trendlines</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Dashboard-Studio-Single-Value-with-Trendlines/m-p/709972#M21473</link>
      <description>&lt;P&gt;This is probably why I'm getting confused.&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="50%" height="25px"&gt;Jan&lt;/TD&gt;&lt;TD width="50%" height="25px"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="25px"&gt;Feb&lt;/TD&gt;&lt;TD width="50%" height="25px"&gt;105&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="25px"&gt;March&lt;/TD&gt;&lt;TD width="50%" height="25px"&gt;90&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Given this table, I want to have a single value trellis view that depicts the month total , with a trend compared to the previous month.&lt;/P&gt;&lt;P&gt;Jan 100 (no trend) , Feb 105 (shows trend up 5), March 90 (shows trend down 15).&lt;/P&gt;&lt;P&gt;I'm going to play with timewrap, maybe I'm going down the wrong path.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 14:43:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Dashboard-Studio-Single-Value-with-Trendlines/m-p/709972#M21473</guid>
      <dc:creator>chrisboy68</dc:creator>
      <dc:date>2025-01-28T14:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard Studio Single Value with Trendlines</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Dashboard-Studio-Single-Value-with-Trendlines/m-p/758281#M23854</link>
      <description>&lt;P&gt;I was struggling with the same task and went down the rabbit hole trying out every known command. The example in the dashboard studio is unfortunately not correct.&lt;/P&gt;&lt;P&gt;Timewrap looks like it could work, but splunk somehow gets confused with it in the foreach command.&lt;/P&gt;&lt;P&gt;This is what i came up with:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;```   aggregation over month ```
| eval month = strftime(_time, "%Y-%m") 
| stats   count by month

```   transposing to to get it into right format and adding totals below```
| transpose 0 header_field=month
| addcoltotals

```   shifting everything one column to the right if the "column" field is not emty ```
| eval p = "" 
| foreach 20* [ 
    eval v = '&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;', 
         &amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt; = if(isnotnull(column), p, '&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;'), 
         p = if(isnotnull(column), v, p) 
    ] 
| fields - p v

```   splunk NEEDS a _time field for Trellis to work. No idea why ```
| eval _time = now()
| table _time 20*&lt;/LI-CODE&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="MMahlberg_0-1770890464882.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/41403i5B346CE33B9A295D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MMahlberg_0-1770890464882.png" alt="MMahlberg_0-1770890464882.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;make sure to disable the sparkline and change the trend to percentage.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Feb 2026 10:07:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Dashboard-Studio-Single-Value-with-Trendlines/m-p/758281#M23854</guid>
      <dc:creator>MMahlberg</dc:creator>
      <dc:date>2026-02-12T10:07:03Z</dc:date>
    </item>
  </channel>
</rss>

