<?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 do you create dummy values in a trellis chart? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-create-dummy-values-in-a-trellis-chart/m-p/415733#M119658</link>
    <description>&lt;P&gt;@tseale try the following search and confirm. It creates 6 rows with Location 1, 2,3,4,5,6 and respective Quantity as 0. Then dedup is used to retain Location with Quantity from index search and missing Locations with Quantity as 0. I have applied a sort for statistical table but &lt;CODE&gt;trellis&lt;/CODE&gt; should sort by default.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="data" 
| stats sum(Quantity) as Quantity by Location
| append [| makeresults count=6
| fields - _time
| streamstats count as Location
| eval Quantity=0]
| dedup Location
| sort Location
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 21 Jan 2019 18:29:04 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2019-01-21T18:29:04Z</dc:date>
    <item>
      <title>How do you create dummy values in a trellis chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-create-dummy-values-in-a-trellis-chart/m-p/415727#M119652</link>
      <description>&lt;P&gt;I have locations 1-6, and I am needing them to stay in the same spot, even if in the time event, there is not a quantity value in the location.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="data" 
| stats sum(Quantity) by Location
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It is confusing on the floor when Location 6 is the 3rd tile instead of being on the end. I am needing to create placeholders that are blank for 1-6 that get updated as they start up.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jan 2019 14:39:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-create-dummy-values-in-a-trellis-chart/m-p/415727#M119652</guid>
      <dc:creator>tseale</dc:creator>
      <dc:date>2019-01-21T14:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: How do you create dummy values in a trellis chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-create-dummy-values-in-a-trellis-chart/m-p/415728#M119653</link>
      <description>&lt;P&gt;@tseale what are the 6 location names? Are they static or dynamic? Can there be more than 6? Is there is master inventory configuration like lookup file, KV Store or Database table where all 6 locations (if required more) would be listed?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jan 2019 15:50:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-create-dummy-values-in-a-trellis-chart/m-p/415728#M119653</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2019-01-21T15:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: How do you create dummy values in a trellis chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-create-dummy-values-in-a-trellis-chart/m-p/415729#M119654</link>
      <description>&lt;P&gt;There is always 6. The quantity is aggregated throughout the day. When we pull last 24 hours they rarely all have a quantity for that day. so the they are in different locations.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jan 2019 16:16:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-create-dummy-values-in-a-trellis-chart/m-p/415729#M119654</guid>
      <dc:creator>tseale</dc:creator>
      <dc:date>2019-01-21T16:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: How do you create dummy values in a trellis chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-create-dummy-values-in-a-trellis-chart/m-p/415730#M119655</link>
      <description>&lt;P&gt;Sorry still a bit confusing. Could you elaborate with a mock up of what you have and what is the expected output?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jan 2019 17:04:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-create-dummy-values-in-a-trellis-chart/m-p/415730#M119655</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2019-01-21T17:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: How do you create dummy values in a trellis chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-create-dummy-values-in-a-trellis-chart/m-p/415731#M119656</link>
      <description>&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/6410i545EF44E3F2E82C2/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jan 2019 18:17:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-create-dummy-values-in-a-trellis-chart/m-p/415731#M119656</guid>
      <dc:creator>tseale</dc:creator>
      <dc:date>2019-01-21T18:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: How do you create dummy values in a trellis chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-create-dummy-values-in-a-trellis-chart/m-p/415732#M119657</link>
      <description>&lt;P&gt;I am wanting a box for 5 with the value blank or 0 in between box 4 and 6&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jan 2019 18:18:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-create-dummy-values-in-a-trellis-chart/m-p/415732#M119657</guid>
      <dc:creator>tseale</dc:creator>
      <dc:date>2019-01-21T18:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do you create dummy values in a trellis chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-create-dummy-values-in-a-trellis-chart/m-p/415733#M119658</link>
      <description>&lt;P&gt;@tseale try the following search and confirm. It creates 6 rows with Location 1, 2,3,4,5,6 and respective Quantity as 0. Then dedup is used to retain Location with Quantity from index search and missing Locations with Quantity as 0. I have applied a sort for statistical table but &lt;CODE&gt;trellis&lt;/CODE&gt; should sort by default.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="data" 
| stats sum(Quantity) as Quantity by Location
| append [| makeresults count=6
| fields - _time
| streamstats count as Location
| eval Quantity=0]
| dedup Location
| sort Location
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 21 Jan 2019 18:29:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-create-dummy-values-in-a-trellis-chart/m-p/415733#M119658</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2019-01-21T18:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: How do you create dummy values in a trellis chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-create-dummy-values-in-a-trellis-chart/m-p/415734#M119659</link>
      <description>&lt;P&gt;That worked, only change I had to make was |sort Location to get them in the right order. &lt;/P&gt;

&lt;P&gt;Thank you so much!&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jan 2019 18:43:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-create-dummy-values-in-a-trellis-chart/m-p/415734#M119659</guid>
      <dc:creator>tseale</dc:creator>
      <dc:date>2019-01-21T18:43:11Z</dc:date>
    </item>
  </channel>
</rss>

