<?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: chart percentage over over item by user in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/chart-percentage-over-over-item-by-user/m-p/137520#M37695</link>
    <description>&lt;P&gt;Worked perfectly.  Thanks for the quick reply.&lt;/P&gt;</description>
    <pubDate>Tue, 07 Apr 2015 22:46:12 GMT</pubDate>
    <dc:creator>wang</dc:creator>
    <dc:date>2015-04-07T22:46:12Z</dc:date>
    <item>
      <title>chart percentage over over item by user</title>
      <link>https://community.splunk.com/t5/Splunk-Search/chart-percentage-over-over-item-by-user/m-p/137518#M37693</link>
      <description>&lt;P&gt;Let say I have a chart that reports the count of what user has purchased what item.  I can create a nice table using &lt;STRONG&gt;chart count over item by user&lt;/STRONG&gt;.&lt;BR /&gt;
===== UserA === UserB === UserC&lt;BR /&gt;
Item X  ====1 =======2 ======= 1&lt;BR /&gt;
Item Y  ==== 2 ====== 3 ======= 5&lt;/P&gt;

&lt;P&gt;Now I want each row to report not the count, but the percentage, on a per row basis&lt;BR /&gt;
====UserA       UserB     UserC&lt;BR /&gt;
Item X         25%        50%       25%&lt;BR /&gt;
Item Y         20%        30%       50%&lt;/P&gt;

&lt;P&gt;So essentially, I want to &lt;STRONG&gt;chart percentage over over item by user&lt;/STRONG&gt;.  How do I do that?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Apr 2015 20:55:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/chart-percentage-over-over-item-by-user/m-p/137518#M37693</guid>
      <dc:creator>wang</dc:creator>
      <dc:date>2015-04-07T20:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: chart percentage over over item by user</title>
      <link>https://community.splunk.com/t5/Splunk-Search/chart-percentage-over-over-item-by-user/m-p/137519#M37694</link>
      <description>&lt;P&gt;If you want to know the percentage of item X that was purchased by each user, then do this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;yoursearchhere
| stats count by item user
| eventstats sum(count) as total by item
| eval percentage=round(count*100/total,1)
| xyseries item user percentage
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Instead of looking at the percentage by item, you could look at it by user - just switch "user" for "item" in line 3&lt;/P&gt;</description>
      <pubDate>Tue, 07 Apr 2015 21:37:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/chart-percentage-over-over-item-by-user/m-p/137519#M37694</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2015-04-07T21:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: chart percentage over over item by user</title>
      <link>https://community.splunk.com/t5/Splunk-Search/chart-percentage-over-over-item-by-user/m-p/137520#M37695</link>
      <description>&lt;P&gt;Worked perfectly.  Thanks for the quick reply.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Apr 2015 22:46:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/chart-percentage-over-over-item-by-user/m-p/137520#M37695</guid>
      <dc:creator>wang</dc:creator>
      <dc:date>2015-04-07T22:46:12Z</dc:date>
    </item>
  </channel>
</rss>

