<?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 merge two charts which have different stats by in Splunk in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-merge-two-charts-which-have-different-stats-by-in-Splunk/m-p/511316#M143292</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/64721"&gt;@priyaramki16&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you have to use the same name for fields, something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="cumu_open_csv"  Assignee="ram"
| eval open_field=if(in(Status,"Open","Reopened","Waiting","In Progress"), 1,0)
| rename CW_Created AS CW
| stats count(eval(open_field=1)) AS Open, count(eval(open_field=0)) AS Closed by CW
| append [ search
     index="cumu_open_csv"  Assignee="ram"
     | eval open_field=if(in(Status,"Open","Reopened","Waiting","In Progress"), 1,0)
     | rename CW_DueDate AS CW
     | stats count(eval(open_field=1)) As DueOpen by CW ]
| sort CW
| table CW Open Closed DueOpen &lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Tue, 28 Jul 2020 12:18:32 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2020-07-28T12:18:32Z</dc:date>
    <item>
      <title>How to merge two charts which have different stats by in Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-merge-two-charts-which-have-different-stats-by-in-Splunk/m-p/511302#M143289</link>
      <description>&lt;P&gt;Hi, I wanted a single graph to show values.&amp;nbsp;&lt;BR /&gt;One search is&amp;nbsp;&lt;BR /&gt;index="cumu_open_csv"&amp;nbsp; Assignee="ram"&lt;BR /&gt;| eval open_field=if(in(Status,"Open","Reopened","Waiting","In Progress"), 1,0)&lt;BR /&gt;| stats count(eval(open_field=1)) AS Open, count(eval(open_field=0)) AS closed by CW_Created&lt;/P&gt;&lt;P&gt;this gives me a table as&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="priyaramki16_0-1595933451628.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/9903i44C8BC328408F72F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="priyaramki16_0-1595933451628.png" alt="priyaramki16_0-1595933451628.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Similarly I have another search&lt;/P&gt;&lt;P&gt;&amp;nbsp;index="cumu_open_csv"&amp;nbsp; Assignee="ram"&lt;BR /&gt;| eval open_field=if(in(Status,"Open","Reopened","Waiting","In Progress"), 1,0)&lt;BR /&gt;| stats count(eval(open_field=1)) As DueOpen by CW_DueDate&lt;/P&gt;&lt;P&gt;which gives me another table as&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="priyaramki16_1-1595933573701.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/9904i549A9189F002A57A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="priyaramki16_1-1595933573701.png" alt="priyaramki16_1-1595933573701.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I tried to combine these two using appendcols...but the X-axis has only the CW_Created and displays the second table details in wrong CW.&lt;/P&gt;&lt;P&gt;I wanted CW_Created and CW_Duedate to be combined and provide the result in a single table like CW, Open,Close,DueCount wherever DueCount is not for a particular CW fill it with 0, for others display the data like so..&lt;/P&gt;&lt;TABLE width="317"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="64"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="64"&gt;Open&lt;/TD&gt;&lt;TD width="64"&gt;Close&lt;/TD&gt;&lt;TD width="125"&gt;DueCount&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;CW27&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;CW28&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;CW29&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;CW30&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;CW31&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;CW32&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;Kindly help me with this.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2020 10:59:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-merge-two-charts-which-have-different-stats-by-in-Splunk/m-p/511302#M143289</guid>
      <dc:creator>priyaramki16</dc:creator>
      <dc:date>2020-07-28T10:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge two charts which have different stats by in Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-merge-two-charts-which-have-different-stats-by-in-Splunk/m-p/511316#M143292</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/64721"&gt;@priyaramki16&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you have to use the same name for fields, something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="cumu_open_csv"  Assignee="ram"
| eval open_field=if(in(Status,"Open","Reopened","Waiting","In Progress"), 1,0)
| rename CW_Created AS CW
| stats count(eval(open_field=1)) AS Open, count(eval(open_field=0)) AS Closed by CW
| append [ search
     index="cumu_open_csv"  Assignee="ram"
     | eval open_field=if(in(Status,"Open","Reopened","Waiting","In Progress"), 1,0)
     | rename CW_DueDate AS CW
     | stats count(eval(open_field=1)) As DueOpen by CW ]
| sort CW
| table CW Open Closed DueOpen &lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2020 12:18:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-merge-two-charts-which-have-different-stats-by-in-Splunk/m-p/511316#M143292</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-07-28T12:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge two charts which have different stats by in Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-merge-two-charts-which-have-different-stats-by-in-Splunk/m-p/511393#M143314</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;&amp;nbsp;, This almost worked, only thing is wherever DueOpen had values those respective Calender weeks alone got repeated...Hence displaying the x-axis with two times the same CW like this.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="priyaramki16_0-1595957062423.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/9914iD541187F5716ECE7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="priyaramki16_0-1595957062423.png" alt="priyaramki16_0-1595957062423.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="priyaramki16_1-1595957103461.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/9915i82F9F4E870E60CDA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="priyaramki16_1-1595957103461.png" alt="priyaramki16_1-1595957103461.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I tried dedup CW before the sort, but that seems to remove the DueOpen . Is there a way to solve this.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2020 17:25:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-merge-two-charts-which-have-different-stats-by-in-Splunk/m-p/511393#M143314</guid>
      <dc:creator>priyaramki16</dc:creator>
      <dc:date>2020-07-28T17:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge two charts which have different stats by in Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-merge-two-charts-which-have-different-stats-by-in-Splunk/m-p/511448#M143385</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/64721"&gt;@priyaramki16&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;try to add another stats (instead table) at the end of the search:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="cumu_open_csv"  Assignee="ram"
| eval open_field=if(in(Status,"Open","Reopened","Waiting","In Progress"), 1,0)
| rename CW_Created AS CW
| stats count(eval(open_field=1)) AS Open, count(eval(open_field=0)) AS Closed by CW
| append [ search
     index="cumu_open_csv"  Assignee="ram"
     | eval open_field=if(in(Status,"Open","Reopened","Waiting","In Progress"), 1,0)
     | rename CW_DueDate AS CW
     | stats count(eval(open_field=1)) As DueOpen by CW ]
| sort CW
| stats values(Open) AS Open values(Closed) AS Closed values(DueOpen) AS DueOpen BY CW &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2020 06:46:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-merge-two-charts-which-have-different-stats-by-in-Splunk/m-p/511448#M143385</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-07-29T06:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge two charts which have different stats by in Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-merge-two-charts-which-have-different-stats-by-in-Splunk/m-p/511466#M143397</link>
      <description>&lt;P&gt;Thank u so much&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;. This worked....Got a small prob alone..like there are empty cell for certain columns...I am trying to fill the empty columns with 0 but its not happening.&lt;BR /&gt;Tried this, But it didnot work&lt;/P&gt;&lt;PRE&gt;eval &amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt; = if(isnull(&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;) OR len(&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;)==0, "0", &amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;)&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 Jul 2020 08:22:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-merge-two-charts-which-have-different-stats-by-in-Splunk/m-p/511466#M143397</guid>
      <dc:creator>priyaramki16</dc:creator>
      <dc:date>2020-07-29T08:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge two charts which have different stats by in Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-merge-two-charts-which-have-different-stats-by-in-Splunk/m-p/511745#M143491</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/64721"&gt;@priyaramki16&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;did you tried with fillnull ( &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Fillnull" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Fillnull&lt;/A&gt;&amp;nbsp;) ?&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jul 2020 12:56:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-merge-two-charts-which-have-different-stats-by-in-Splunk/m-p/511745#M143491</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-07-30T12:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge two charts which have different stats by in Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-merge-two-charts-which-have-different-stats-by-in-Splunk/m-p/511820#M143511</link>
      <description>&lt;P&gt;Yeah i resolved by using filldown and fillnull. Thanks so much&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jul 2020 17:34:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-merge-two-charts-which-have-different-stats-by-in-Splunk/m-p/511820#M143511</guid>
      <dc:creator>priyaramki16</dc:creator>
      <dc:date>2020-07-30T17:34:16Z</dc:date>
    </item>
  </channel>
</rss>

