<?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 convert from timechart to column chart with totals? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-from-timechart-to-column-chart-with-totals/m-p/422211#M27839</link>
    <description>&lt;P&gt;Almost there! Thank you so much for working with me on this. There's two separate columns now but one is on top of the other (not stacked, but separated). Any way the columns can be placed side by side? It almost looks like the x and y axis need to be switched if that's possible. &lt;/P&gt;</description>
    <pubDate>Thu, 13 Jun 2019 17:58:52 GMT</pubDate>
    <dc:creator>mcram52</dc:creator>
    <dc:date>2019-06-13T17:58:52Z</dc:date>
    <item>
      <title>How to convert from timechart to column chart with totals?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-from-timechart-to-column-chart-with-totals/m-p/422205#M27833</link>
      <description>&lt;P&gt;I'm new to Splunk (and programming languages in general) but my company has many existing dashboards, so I'm trying to take pieces of existing dashboards and tweak them for my purposes. I have the following search from an existing chart:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(index=epackage OR index=dxprd01-epackage) flow_event=Package*
| eval 
    You = if(username="$env:user$",numberOfReports,0),
    Others = if(username="$env:user$",0,numberOfReports),
    Other_users = if(username="$env:user$",null(),username),
    Day = strftime(_time,"%F")
| eventstats dc(Other_users) as Other_users by Day
| timechart span=1d sum(You) as You sum(Others) as Others values(Other_users) as Other_users
| eval Others_avg = round(Others/Other_users,0)
| fields - Others, Other_users
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This displays the total of one user's flow event per day compared with the average of the other users for that day. What changes need to be made so I can have the same two columns (single user vs. others average), but showing only the totals over the given time period (such as month to date) rather than by day? Hopefully this makes sense. &lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2019 16:32:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-from-timechart-to-column-chart-with-totals/m-p/422205#M27833</guid>
      <dc:creator>mcram52</dc:creator>
      <dc:date>2019-06-13T16:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert from timechart to column chart with totals?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-from-timechart-to-column-chart-with-totals/m-p/422206#M27834</link>
      <description>&lt;P&gt;Try this (&lt;STRONG&gt;Updated&lt;/STRONG&gt;)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(index=epackage OR index=dxprd01-epackage) flow_event=Package*
| eval 
You = if(username="$env:user$",numberOfReports,0),
Others = if(username="$env:user$",0,numberOfReports),
Other_users = if(username="$env:user$",null(),username),
Report="Total Flow Event Count"
|stats sum(You) as You sum(Others) as Others dc(Other_users) as Other_users by Report
| eval Others_avg = round(Others/Other_users,0)
| fields - Others, Other_users
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 13 Jun 2019 17:16:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-from-timechart-to-column-chart-with-totals/m-p/422206#M27834</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2019-06-13T17:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert from timechart to column chart with totals?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-from-timechart-to-column-chart-with-totals/m-p/422207#M27835</link>
      <description>&lt;P&gt;No luck:&lt;/P&gt;

&lt;P&gt;Error in 'eval' command: Failed to parse the provided arguments. Usage: eval dest_key = expression.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2019 17:23:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-from-timechart-to-column-chart-with-totals/m-p/422207#M27835</guid>
      <dc:creator>mcram52</dc:creator>
      <dc:date>2019-06-13T17:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert from timechart to column chart with totals?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-from-timechart-to-column-chart-with-totals/m-p/422208#M27836</link>
      <description>&lt;P&gt;Try now, there was leftover comma in last eval (line 5).&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2019 17:30:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-from-timechart-to-column-chart-with-totals/m-p/422208#M27836</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2019-06-13T17:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert from timechart to column chart with totals?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-from-timechart-to-column-chart-with-totals/m-p/422209#M27837</link>
      <description>&lt;P&gt;That's getting closer to what I wanted but not quite. Everything is totaled as it should be, but the total for 'You' is now the entire x axis, with one column showing the 'Others_avg' total. Is there a way to have the 'You' and 'Other_avg' displayed as two separate columns? &lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:54:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-from-timechart-to-column-chart-with-totals/m-p/422209#M27837</guid>
      <dc:creator>mcram52</dc:creator>
      <dc:date>2020-09-30T00:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert from timechart to column chart with totals?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-from-timechart-to-column-chart-with-totals/m-p/422210#M27838</link>
      <description>&lt;P&gt;Try the new version.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2019 17:48:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-from-timechart-to-column-chart-with-totals/m-p/422210#M27838</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2019-06-13T17:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert from timechart to column chart with totals?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-from-timechart-to-column-chart-with-totals/m-p/422211#M27839</link>
      <description>&lt;P&gt;Almost there! Thank you so much for working with me on this. There's two separate columns now but one is on top of the other (not stacked, but separated). Any way the columns can be placed side by side? It almost looks like the x and y axis need to be switched if that's possible. &lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2019 17:58:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-from-timechart-to-column-chart-with-totals/m-p/422211#M27839</guid>
      <dc:creator>mcram52</dc:creator>
      <dc:date>2019-06-13T17:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert from timechart to column chart with totals?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-from-timechart-to-column-chart-with-totals/m-p/422212#M27840</link>
      <description>&lt;P&gt;Nevermind, figured it out. Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2019 19:04:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-from-timechart-to-column-chart-with-totals/m-p/422212#M27840</guid>
      <dc:creator>mcram52</dc:creator>
      <dc:date>2019-06-13T19:04:32Z</dc:date>
    </item>
  </channel>
</rss>

