<?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 Is there a way to divide the addcoltotals from each case statement in my search? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-divide-the-addcoltotals-from-each-case/m-p/374599#M110097</link>
    <description>&lt;P&gt;Is there a way to divide the addcoltotals from each case statement in the following :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eval daysclass=case(
NoOfDays&amp;lt;=14,"0-14 DAYS ",
NoOfDays&amp;gt;15 AND NoOfDays&amp;lt;=28,"14-28 DAYS ",
NoOfDays&amp;gt;29 AND NoOfDays&amp;lt;=42,"28-42 DAYS ",
NoOfDays&amp;gt;43 AND NoOfDays&amp;lt;=56,"42-56 DAYS",
NoOfDays&amp;gt;57, "56 DAYS OR MORE "
,1=1,"NULL")|search daysclass!=NULL|stats count(Name) AS "COUNT" by daysclass| ADDCOLTOTALS
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 29 Jun 2017 16:32:16 GMT</pubDate>
    <dc:creator>jhayIV</dc:creator>
    <dc:date>2017-06-29T16:32:16Z</dc:date>
    <item>
      <title>Is there a way to divide the addcoltotals from each case statement in my search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-divide-the-addcoltotals-from-each-case/m-p/374599#M110097</link>
      <description>&lt;P&gt;Is there a way to divide the addcoltotals from each case statement in the following :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eval daysclass=case(
NoOfDays&amp;lt;=14,"0-14 DAYS ",
NoOfDays&amp;gt;15 AND NoOfDays&amp;lt;=28,"14-28 DAYS ",
NoOfDays&amp;gt;29 AND NoOfDays&amp;lt;=42,"28-42 DAYS ",
NoOfDays&amp;gt;43 AND NoOfDays&amp;lt;=56,"42-56 DAYS",
NoOfDays&amp;gt;57, "56 DAYS OR MORE "
,1=1,"NULL")|search daysclass!=NULL|stats count(Name) AS "COUNT" by daysclass| ADDCOLTOTALS
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 29 Jun 2017 16:32:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-divide-the-addcoltotals-from-each-case/m-p/374599#M110097</guid>
      <dc:creator>jhayIV</dc:creator>
      <dc:date>2017-06-29T16:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to divide the addcoltotals from each case statement in my search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-divide-the-addcoltotals-from-each-case/m-p/374600#M110098</link>
      <description>&lt;P&gt;if i get what you're doing, i think this might work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eval daysclass=case(
 NoOfDays&amp;lt;=14,"0-14 DAYS ",
 NoOfDays&amp;gt;15 AND NoOfDays&amp;lt;=28,"14-28 DAYS ",
 NoOfDays&amp;gt;29 AND NoOfDays&amp;lt;=42,"28-42 DAYS ",
 NoOfDays&amp;gt;43 AND NoOfDays&amp;lt;=56,"42-56 DAYS",
 NoOfDays&amp;gt;57, "56 DAYS OR MORE "
 ,1=1,"NULL")|search daysclass!=NULL|stats count(Name) AS "COUNT" by daysclass|eventstats sum(COUNT) as total|eval divide=COUNT/total
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 29 Jun 2017 17:16:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-divide-the-addcoltotals-from-each-case/m-p/374600#M110098</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-06-29T17:16:05Z</dc:date>
    </item>
  </channel>
</rss>

