<?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: Add percentage to Column in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-Add-percentage-to-Column/m-p/655382#M226391</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;My apologies, I will do that next time.&lt;BR /&gt;This is how I got it to work because I needed to still divide by "dnsName"&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;| eval HBSS=round(HBSS/dnsName*100)."%"&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Thank you&lt;/P&gt;</description>
    <pubDate>Wed, 23 Aug 2023 16:47:15 GMT</pubDate>
    <dc:creator>woodlandrelic</dc:creator>
    <dc:date>2023-08-23T16:47:15Z</dc:date>
    <item>
      <title>How to Add percentage to Column?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Add-percentage-to-Column/m-p/655374#M226386</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;I am trying to add % to the "by percent" column only.&amp;nbsp; I can't seem to get it to show.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot (21).png" style="width: 707px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/26948i95EA76732A61CD93/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot (21).png" alt="Screenshot (21).png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 19:57:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Add-percentage-to-Column/m-p/655374#M226386</guid>
      <dc:creator>woodlandrelic</dc:creator>
      <dc:date>2023-08-23T19:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: Add percentage to Column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Add-percentage-to-Column/m-p/655378#M226388</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/248841"&gt;@woodlandrelic&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;please next time, add to your question also the code in text format (using the Insert/Edit Code Sample button), so we don't have to rewrite the code!&lt;/P&gt;&lt;P&gt;Anyway,, before the table command you should add an eval command like the following&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;your_search&amp;gt;
| eval HBSS=HBSS."%", ACAS=ACAS."%"&lt;/LI-CODE&gt;&lt;P&gt;if you want you could also round the results e.f. to the second decimal:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;your_search&amp;gt;
| eval HBSS=round(HBSS,2)."%", ACAS=round(ACAS,2)."%"&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 16:06:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Add-percentage-to-Column/m-p/655378#M226388</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-08-23T16:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: Add percentage to Column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Add-percentage-to-Column/m-p/655382#M226391</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;My apologies, I will do that next time.&lt;BR /&gt;This is how I got it to work because I needed to still divide by "dnsName"&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;| eval HBSS=round(HBSS/dnsName*100)."%"&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 16:47:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Add-percentage-to-Column/m-p/655382#M226391</guid>
      <dc:creator>woodlandrelic</dc:creator>
      <dc:date>2023-08-23T16:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: Add percentage to Column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Add-percentage-to-Column/m-p/655438#M226413</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/248841"&gt;@woodlandrelic&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;good for you, you're always welcome! see next time!&lt;/P&gt;&lt;P&gt;Ciao and happy splunking&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 06:12:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Add-percentage-to-Column/m-p/655438#M226413</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-08-24T06:12:59Z</dc:date>
    </item>
  </channel>
</rss>

