<?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 Show ratio in map and Change marker size and color based on ratio percentage in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Show-ratio-in-map-and-Change-marker-size-and-color-based-on/m-p/393839#M195739</link>
    <description>&lt;P&gt;Hi, I'm trying to show ratio of active vs total count of students by school in a map. Whereever the ratio is less than 50% need to color that bubble by red and green otherwise.&lt;BR /&gt;
The query im using :&lt;/P&gt;

&lt;P&gt;|inputlookup qa.csv | table student_id, school_name| stats dc(student_id) as total by school_name | join type=left school_name [search index="qa_xapi" | table student_id,school_name| stats dc(student_id) as active by school_name] |fillnull active value=0 | eval ratio=(active/total)*100 | table school_name, ratio &lt;/P&gt;

&lt;P&gt;Now &lt;STRONG&gt;qa.csv file contain lat,long information but the qa_xapi index doesn't contain lat,long field&lt;/STRONG&gt;. The index contain active users where the lookup has total users dump so we need a left join to get active/total ratio.&lt;/P&gt;

&lt;P&gt;So how can I bring this ratio correlation with lat,long and use geom or geostats to render this in a map. If this can be solved 90% is done then we can render the color's based on ratio using eval condition.&lt;/P&gt;

&lt;P&gt;Also if you can suggest any other solution other than left join for this.&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 01:21:25 GMT</pubDate>
    <dc:creator>jonu4u</dc:creator>
    <dc:date>2020-09-30T01:21:25Z</dc:date>
    <item>
      <title>Show ratio in map and Change marker size and color based on ratio percentage</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Show-ratio-in-map-and-Change-marker-size-and-color-based-on/m-p/393839#M195739</link>
      <description>&lt;P&gt;Hi, I'm trying to show ratio of active vs total count of students by school in a map. Whereever the ratio is less than 50% need to color that bubble by red and green otherwise.&lt;BR /&gt;
The query im using :&lt;/P&gt;

&lt;P&gt;|inputlookup qa.csv | table student_id, school_name| stats dc(student_id) as total by school_name | join type=left school_name [search index="qa_xapi" | table student_id,school_name| stats dc(student_id) as active by school_name] |fillnull active value=0 | eval ratio=(active/total)*100 | table school_name, ratio &lt;/P&gt;

&lt;P&gt;Now &lt;STRONG&gt;qa.csv file contain lat,long information but the qa_xapi index doesn't contain lat,long field&lt;/STRONG&gt;. The index contain active users where the lookup has total users dump so we need a left join to get active/total ratio.&lt;/P&gt;

&lt;P&gt;So how can I bring this ratio correlation with lat,long and use geom or geostats to render this in a map. If this can be solved 90% is done then we can render the color's based on ratio using eval condition.&lt;/P&gt;

&lt;P&gt;Also if you can suggest any other solution other than left join for this.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:21:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Show-ratio-in-map-and-Change-marker-size-and-color-based-on/m-p/393839#M195739</guid>
      <dc:creator>jonu4u</dc:creator>
      <dc:date>2020-09-30T01:21:25Z</dc:date>
    </item>
  </channel>
</rss>

