<?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: Unable to find percentage of two values stored in two separate fieldnames in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Unable-to-find-percentage-of-two-values-stored-in-two-separate/m-p/652353#M225478</link>
    <description>&lt;P&gt;This just worked perfectly. Thank you very much, &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;I had never used eventstats practically. Will check more on it.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 28 Jul 2023 10:31:17 GMT</pubDate>
    <dc:creator>sh254087</dc:creator>
    <dc:date>2023-07-28T10:31:17Z</dc:date>
    <item>
      <title>Unable to find percentage of two values stored in two separate fieldnames</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unable-to-find-percentage-of-two-values-stored-in-two-separate/m-p/652350#M225475</link>
      <description>&lt;P&gt;I'm facing a weird issue. I'm not able to calculate percentage value when I use two variables/fields.&lt;/P&gt;&lt;P&gt;I have a lookup file which looks something like -&amp;nbsp;&lt;/P&gt;&lt;P&gt;sl,Service,x_value&lt;/P&gt;&lt;P&gt;1,X,0.211&lt;/P&gt;&lt;P&gt;2,other,0.190&lt;/P&gt;&lt;P&gt;3,Y,0&lt;/P&gt;&lt;P&gt;4,X,0.200&lt;/P&gt;&lt;P&gt;5,other,0.220&lt;BR /&gt;&lt;BR /&gt;I'm trying to get two columns in my&amp;nbsp;resultant table to show total by service and percentage by service, respectively.&lt;BR /&gt;I've tried this -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sh254087_0-1690536465779.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/26524iB051E1FBEA5FD547/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sh254087_0-1690536465779.png" alt="sh254087_0-1690536465779.png" /&gt;&lt;/span&gt;&lt;BR /&gt;percentage needs to be calculated using 2 fields whereas perc1 and perc2 are substituted with one of those two field values.&lt;/P&gt;&lt;P&gt;While the perc1 and perc2 gets processed and displayed, percentage doesn't show up.&lt;BR /&gt;&lt;BR /&gt;I'm not sure what is that I'm doing wrong here. Can somebody please help?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 10:11:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unable-to-find-percentage-of-two-values-stored-in-two-separate/m-p/652350#M225475</guid>
      <dc:creator>sh254087</dc:creator>
      <dc:date>2023-07-28T10:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to find percentage of two values stored in two separate fieldnames</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unable-to-find-percentage-of-two-values-stored-in-two-separate/m-p/652352#M225477</link>
      <description>&lt;LI-CODE lang="markup"&gt;| inputlookup xyz.csv
| stats sum(x_value) as TotalMain by Service
| eventstats sum(TotalMain) as Total
| eval percentage=100*TotalMain/Total&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 28 Jul 2023 10:25:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unable-to-find-percentage-of-two-values-stored-in-two-separate/m-p/652352#M225477</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-07-28T10:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to find percentage of two values stored in two separate fieldnames</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unable-to-find-percentage-of-two-values-stored-in-two-separate/m-p/652353#M225478</link>
      <description>&lt;P&gt;This just worked perfectly. Thank you very much, &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;I had never used eventstats practically. Will check more on it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 10:31:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unable-to-find-percentage-of-two-values-stored-in-two-separate/m-p/652353#M225478</guid>
      <dc:creator>sh254087</dc:creator>
      <dc:date>2023-07-28T10:31:17Z</dc:date>
    </item>
  </channel>
</rss>

