<?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 to move addtotals to the first column for a chart? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-move-addtotals-to-the-first-column-for-a-chart/m-p/587149#M48163</link>
    <description>&lt;P&gt;You didn't show it as using chart, you showed using stats. For chart, use this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="Dept_data_idx"  eventType="Created" status="success" host=* | bucket _time span=1h | chart count by _time host | addtotals
| table _time Total *&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 02 Mar 2022 09:04:56 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2022-03-02T09:04:56Z</dc:date>
    <item>
      <title>How to move addtotals to the first column for a chart?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-move-addtotals-to-the-first-column-for-a-chart/m-p/587091#M48150</link>
      <description>&lt;P&gt;Hello Splunk Community,&lt;/P&gt;&lt;P&gt;How can I move the addtotals field to display as the first column and not last for this chart?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="25%"&gt;_time&lt;/TD&gt;&lt;TD width="25%"&gt;Host123&lt;/TD&gt;&lt;TD width="25%"&gt;Host456&lt;/TD&gt;&lt;TD width="25%"&gt;total&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%"&gt;&lt;SPAN&gt;2022-02-24 22:00&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD width="25%"&gt;0&lt;/TD&gt;&lt;TD width="25%"&gt;2&lt;/TD&gt;&lt;TD width="25%"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;Would like:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="25%" height="25px"&gt;_time&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;&lt;STRONG&gt;total&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;Host123&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;Host456&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%" height="25px"&gt;&lt;SPAN&gt;2022-02-24 22:00&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;2&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;0&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Current Code:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; index="Dept_data_idx"  eventType="Created" status="success" host=* | bucket _time span=1h | stats  count by _time host | addtotals&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 01 Mar 2022 20:49:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-move-addtotals-to-the-first-column-for-a-chart/m-p/587091#M48150</guid>
      <dc:creator>MeMilo09</dc:creator>
      <dc:date>2022-03-01T20:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to move addtotals to the first column for a chart?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-move-addtotals-to-the-first-column-for-a-chart/m-p/587105#M48152</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/233122"&gt;@MeMilo09&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Updated Answer&amp;nbsp;&lt;/P&gt;&lt;P&gt;you can use table command to re arrange the fields&lt;/P&gt;&lt;P&gt;index="Dept_data_idx" eventType="Created" status="success" host=*&lt;BR /&gt;| bucket _time span=1h&lt;BR /&gt;| stats count by _time host&lt;BR /&gt;| addtotals&lt;BR /&gt;| table Total _time host&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;also if you want to rename the total name which is default name&amp;nbsp; use following after addtotals&amp;nbsp;&lt;/P&gt;&lt;P&gt;fieldname="Total by Row" to rename the column name (Total is default)&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 05:31:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-move-addtotals-to-the-first-column-for-a-chart/m-p/587105#M48152</guid>
      <dc:creator>SanjayReddy</dc:creator>
      <dc:date>2022-03-02T05:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to move addtotals to the first column for a chart?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-move-addtotals-to-the-first-column-for-a-chart/m-p/587112#M48155</link>
      <description>&lt;P&gt;Thanks, but doing | table command does not fix the issue, since I am using | chart command. When I use | table I am able to move the addtotals column to the start of the table, but it does away with the host data. So what I get now looks like this using table... notice no host name or counts are under the host now.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;_time&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;Total&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;host&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;&lt;SPAN&gt;2022-02-24 22:00&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;4&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;&lt;SPAN&gt;2022-02-24 23:00&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;2&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Wed, 02 Mar 2022 04:34:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-move-addtotals-to-the-first-column-for-a-chart/m-p/587112#M48155</guid>
      <dc:creator>MeMilo09</dc:creator>
      <dc:date>2022-03-02T04:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to move addtotals to the first column for a chart?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-move-addtotals-to-the-first-column-for-a-chart/m-p/587117#M48157</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/233122"&gt;@MeMilo09&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I updated My initlal repsone, can you please use that query&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 05:34:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-move-addtotals-to-the-first-column-for-a-chart/m-p/587117#M48157</guid>
      <dc:creator>SanjayReddy</dc:creator>
      <dc:date>2022-03-02T05:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to move addtotals to the first column for a chart?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-move-addtotals-to-the-first-column-for-a-chart/m-p/587149#M48163</link>
      <description>&lt;P&gt;You didn't show it as using chart, you showed using stats. For chart, use this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="Dept_data_idx"  eventType="Created" status="success" host=* | bucket _time span=1h | chart count by _time host | addtotals
| table _time Total *&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 02 Mar 2022 09:04:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-move-addtotals-to-the-first-column-for-a-chart/m-p/587149#M48163</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-03-02T09:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to move addtotals to the first column for a chart?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-move-addtotals-to-the-first-column-for-a-chart/m-p/587215#M48168</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;My bad, missed that&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks for let me know&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 13:12:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-move-addtotals-to-the-first-column-for-a-chart/m-p/587215#M48168</guid>
      <dc:creator>SanjayReddy</dc:creator>
      <dc:date>2022-03-02T13:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to move addtotals to the first column for a chart?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-move-addtotals-to-the-first-column-for-a-chart/m-p/587270#M48170</link>
      <description>&lt;P&gt;Yes, I needed to keep the chart at all costs&lt;/P&gt;&lt;P&gt;| table &amp;nbsp;_time Total *&amp;nbsp;&lt;/P&gt;&lt;P&gt;did it and I totally understand why now.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 16:54:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-move-addtotals-to-the-first-column-for-a-chart/m-p/587270#M48170</guid>
      <dc:creator>MeMilo09</dc:creator>
      <dc:date>2022-03-02T16:54:20Z</dc:date>
    </item>
  </channel>
</rss>

