<?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: Why does this chart work, but this table doesn't? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-does-this-chart-work-but-this-table-doesn-t/m-p/524670#M147983</link>
    <description>&lt;P&gt;I solved this with a workaround that may not be the most "splunkable" solution, but provides the answer results I am looking for.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|eval splitfield=stocks+"_pct"
|stats sum(eval(flow*100))AS pct BY day_hour splitfield
|table day_hour pct splitfield
|eval {splitfield}=pct
|fields -splitfield,pct
|stats values(*) AS * BY day_hour
|fillnull
|addtotals&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Oct 2020 15:30:32 GMT</pubDate>
    <dc:creator>CarbonCriterium</dc:creator>
    <dc:date>2020-10-14T15:30:32Z</dc:date>
    <item>
      <title>Why does this chart work, but this table doesn't?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-this-chart-work-but-this-table-doesn-t/m-p/523550#M147648</link>
      <description>&lt;P&gt;I would like to apply a formula &lt;STRONG&gt;to each of the values in the field&amp;nbsp;&lt;/STRONG&gt;"stocks."&amp;nbsp; I have been able to show this in a chart, but I need it as a table... what is going on here?&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The values in day_hour and stocks are strings.&amp;nbsp; Flow is a numeric value.&amp;nbsp; Pct should be a numeric value.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| chart sum(eval(flow*100))AS pct BY day_hour stocks&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The charting command produces the following.&amp;nbsp; This is how I want my table to look.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1" width="66.66666666666667%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;day_hour&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;stock_name_A&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;stock_name_B&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;stock_name_C&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;2020-01-01&amp;nbsp; 00:00&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;2020-01-01&amp;nbsp; 01:00&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;2020-01-01&amp;nbsp; 02:00&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Instead, my table looks like this:&lt;/P&gt;&lt;TABLE border="1" width="50%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;day_hour&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;stocks&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;pct&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;2020-01-01&amp;nbsp; &lt;STRONG&gt;00:00&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;stock_name_A&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;2020-01-01&amp;nbsp; &lt;STRONG&gt;00:00&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;stock_name_B&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;2020-01-01&amp;nbsp;&lt;STRONG&gt; 00:00&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;stock_name_C&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;2020-01-01&amp;nbsp; &lt;STRONG&gt;01:00&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;stock_name_A&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;2020-01-01&amp;nbsp; &lt;STRONG&gt;01:00&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;stock_name_B&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;2020-01-01&amp;nbsp; &lt;STRONG&gt;01:00&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;stock_name_C&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;2020-01-01&amp;nbsp;&lt;STRONG&gt; 02:00&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;stock_name_A&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;2020-01-01&amp;nbsp; &lt;STRONG&gt;02:00&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;stock_name_B&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;2020-01-01&amp;nbsp; &lt;STRONG&gt;02:00&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;stock_name_C&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Oct 2020 22:32:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-this-chart-work-but-this-table-doesn-t/m-p/523550#M147648</guid>
      <dc:creator>CarbonCriterium</dc:creator>
      <dc:date>2020-10-07T22:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: Why does this chart work, but this table doesn't?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-this-chart-work-but-this-table-doesn-t/m-p/523573#M147665</link>
      <description>&lt;P&gt;Try&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| chart sum(eval(flow*100))AS pct over day_hour BY stocks&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 08 Oct 2020 04:16:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-this-chart-work-but-this-table-doesn-t/m-p/523573#M147665</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2020-10-08T04:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: Why does this chart work, but this table doesn't?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-this-chart-work-but-this-table-doesn-t/m-p/523944#M147830</link>
      <description>&lt;P&gt;Thank you for your reply&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/136781"&gt;@renjith_nair&lt;/a&gt;&amp;nbsp;but I am trying to create a table.&amp;nbsp; The chart command I am using creates the intended format... but the table command does not.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know why this is happening?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2020 14:32:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-this-chart-work-but-this-table-doesn-t/m-p/523944#M147830</guid>
      <dc:creator>CarbonCriterium</dc:creator>
      <dc:date>2020-10-09T14:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: Why does this chart work, but this table doesn't?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-this-chart-work-but-this-table-doesn-t/m-p/523949#M147834</link>
      <description>&lt;LI-CODE lang="markup"&gt;| xyseries day_hour stocks pct&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 09 Oct 2020 15:00:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-this-chart-work-but-this-table-doesn-t/m-p/523949#M147834</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2020-10-09T15:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: Why does this chart work, but this table doesn't?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-this-chart-work-but-this-table-doesn-t/m-p/524190#M147882</link>
      <description>&lt;P&gt;Have you tried chart over? What happens when you change visualization to stats/table.&lt;/P&gt;&lt;P&gt;Please find attached .&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="renjith_nair_0-1602490761419.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/11255iE9FA9590EF522031/image-size/medium?v=v2&amp;amp;px=400" role="button" title="renjith_nair_0-1602490761419.png" alt="renjith_nair_0-1602490761419.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Oct 2020 08:19:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-this-chart-work-but-this-table-doesn-t/m-p/524190#M147882</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2020-10-12T08:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: Why does this chart work, but this table doesn't?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-this-chart-work-but-this-table-doesn-t/m-p/524670#M147983</link>
      <description>&lt;P&gt;I solved this with a workaround that may not be the most "splunkable" solution, but provides the answer results I am looking for.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|eval splitfield=stocks+"_pct"
|stats sum(eval(flow*100))AS pct BY day_hour splitfield
|table day_hour pct splitfield
|eval {splitfield}=pct
|fields -splitfield,pct
|stats values(*) AS * BY day_hour
|fillnull
|addtotals&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2020 15:30:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-this-chart-work-but-this-table-doesn-t/m-p/524670#M147983</guid>
      <dc:creator>CarbonCriterium</dc:creator>
      <dc:date>2020-10-14T15:30:32Z</dc:date>
    </item>
  </channel>
</rss>

