<?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 combine graphs with different left and right axes? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-graphs-with-different-left-and-right-axes/m-p/328791#M97874</link>
    <description>&lt;P&gt;That's exactly what I was looking for! Thanks so much.&lt;/P&gt;

&lt;P&gt;Here is the final product: &lt;A href="http://imgur.com/a/ERVTQ"&gt;http://imgur.com/a/ERVTQ&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 24 Jul 2017 17:47:16 GMT</pubDate>
    <dc:creator>mhtedford</dc:creator>
    <dc:date>2017-07-24T17:47:16Z</dc:date>
    <item>
      <title>How to combine graphs with different left and right axes?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-graphs-with-different-left-and-right-axes/m-p/328785#M97868</link>
      <description>&lt;P&gt;I have two graphs. The first shows the number of survey responses by week:&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/3257i6049CE220F4A98EC/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Here is the search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=webex_sentiment 
| eval surveyDate=strptime(Started,"%m/%d/%Y %H:%M") 
| eval YearWeek=strftime(surveyDate,"%Y-%U") 
| chart  count(Rating) as NumberRatings by YearWeek
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The second shows the percentage of negative survey responses by week:&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/3258i63285D6C9F487B06/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Here is the search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=webex_sentiment 
| eval surveyDate=strptime(Started,"%m/%d/%Y %H:%M") 
| eval YearWeek=strftime(surveyDate,"%Y-%U") 
| stats  count(Rating) as NumberRatings by YearWeek Rating  
| eventstats  sum(NumberRatings) as TotalRatings by YearWeek 
| eval  PercentageRatings=round(NumberRatings/TotalRatings,3)  
| where  Rating=1 OR Rating=2  
| chart  sum(PercentageRatings) as NegativeSentiment by YearWeek
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want to combine these into a single graph, with number of surveys on the left axis and percentage of negative sentiment on the right axis.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2017 16:36:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-graphs-with-different-left-and-right-axes/m-p/328785#M97868</guid>
      <dc:creator>mhtedford</dc:creator>
      <dc:date>2017-07-24T16:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine graphs with different left and right axes?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-graphs-with-different-left-and-right-axes/m-p/328786#M97869</link>
      <description>&lt;P&gt;the two searches you've given are exactly the same. what is supposed to be the difference between them?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2017 17:23:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-graphs-with-different-left-and-right-axes/m-p/328786#M97869</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-07-24T17:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine graphs with different left and right axes?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-graphs-with-different-left-and-right-axes/m-p/328787#M97870</link>
      <description>&lt;P&gt;Fixed @cmerriman&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2017 17:28:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-graphs-with-different-left-and-right-axes/m-p/328787#M97870</guid>
      <dc:creator>mhtedford</dc:creator>
      <dc:date>2017-07-24T17:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine graphs with different left and right axes?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-graphs-with-different-left-and-right-axes/m-p/328788#M97871</link>
      <description>&lt;P&gt;@mhtedford, your queries are the same.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2017 17:32:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-graphs-with-different-left-and-right-axes/m-p/328788#M97871</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-07-24T17:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine graphs with different left and right axes?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-graphs-with-different-left-and-right-axes/m-p/328789#M97872</link>
      <description>&lt;P&gt;I updated the post, perhaps the edit hasn't gone through yet...&lt;/P&gt;

&lt;P&gt;&lt;A href="http://imgur.com/a/EbwTK"&gt;http://imgur.com/a/EbwTK&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2017 17:36:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-graphs-with-different-left-and-right-axes/m-p/328789#M97872</guid>
      <dc:creator>mhtedford</dc:creator>
      <dc:date>2017-07-24T17:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine graphs with different left and right axes?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-graphs-with-different-left-and-right-axes/m-p/328790#M97873</link>
      <description>&lt;P&gt;try something like this and go into Format&amp;gt;Chart Overlay and grab the NegativeSentiment or TotalRatings as the overlay:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=webex_sentiment 
 | eval surveyDate=strptime(Started,"%m/%d/%Y %H:%M") 
 | eval YearWeek=strftime(surveyDate,"%Y-%U") 
 | stats  count(Rating) as NumberRatings by YearWeek Rating  
 | eventstats  sum(NumberRatings) as TotalRatings by YearWeek 
 | eval  PercentageRatings=round(NumberRatings/TotalRatings,3)  
 | where  Rating=1 OR Rating=2  
 | stats  sum(PercentageRatings) as NegativeSentiment max(TotalRatings) as TotalRatings by YearWeek
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 24 Jul 2017 17:41:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-graphs-with-different-left-and-right-axes/m-p/328790#M97873</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-07-24T17:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine graphs with different left and right axes?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-graphs-with-different-left-and-right-axes/m-p/328791#M97874</link>
      <description>&lt;P&gt;That's exactly what I was looking for! Thanks so much.&lt;/P&gt;

&lt;P&gt;Here is the final product: &lt;A href="http://imgur.com/a/ERVTQ"&gt;http://imgur.com/a/ERVTQ&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2017 17:47:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-graphs-with-different-left-and-right-axes/m-p/328791#M97874</guid>
      <dc:creator>mhtedford</dc:creator>
      <dc:date>2017-07-24T17:47:16Z</dc:date>
    </item>
  </channel>
</rss>

