<?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: Get max version value based on another column in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Get-max-version-value-based-on-another-column/m-p/513236#M34251</link>
    <description>&lt;LI-CODE lang="markup"&gt;index="my_index" sourcetype="version"
| stats count(deviceId) as countDevicesPerVersion by version
| eval PercentagesPerVersion=round((countDevicesPerVersion*100)/1152,2)
| rex field=version "(?&amp;lt;generation&amp;gt;\w\d)"
| table version, PercentagesPerVersion, generation
| eventstats max(PercentagesPerVersion) as max_perc values(generation) as gen by generation
| where gen=generation AND max_perc=PercentagesPerVersion
| eval versionNumber=replace(version,"R", "")
| sort - versionNumber
| fields - versionNumber gen max_perc
| table version PercentagesPerVersion&lt;/LI-CODE&gt;&lt;P&gt;&lt;STRONG&gt;eventstats&lt;/STRONG&gt; is useful.&lt;/P&gt;</description>
    <pubDate>Mon, 10 Aug 2020 01:19:03 GMT</pubDate>
    <dc:creator>to4kawa</dc:creator>
    <dc:date>2020-08-10T01:19:03Z</dc:date>
    <item>
      <title>Get max version value based on another column</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Get-max-version-value-based-on-another-column/m-p/513223#M34248</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;how to get maxstats based on another col&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2020 07:12:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Get-max-version-value-based-on-another-column/m-p/513223#M34248</guid>
      <dc:creator>johnnykhoueiry</dc:creator>
      <dc:date>2020-08-13T07:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: Get max version value based on another column</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Get-max-version-value-based-on-another-column/m-p/513225#M34249</link>
      <description>&lt;P&gt;You can add the below line by replacing your comment(//Add something here)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|stats max(PercentagesPerVersion) by generation,version&lt;/LI-CODE&gt;&lt;P&gt;this will give the results like.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;generation&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;version&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;max(PercentagesPerVersion)&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Sun, 09 Aug 2020 22:43:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Get-max-version-value-based-on-another-column/m-p/513225#M34249</guid>
      <dc:creator>impurush</dc:creator>
      <dc:date>2020-08-09T22:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: Get max version value based on another column</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Get-max-version-value-based-on-another-column/m-p/513236#M34251</link>
      <description>&lt;LI-CODE lang="markup"&gt;index="my_index" sourcetype="version"
| stats count(deviceId) as countDevicesPerVersion by version
| eval PercentagesPerVersion=round((countDevicesPerVersion*100)/1152,2)
| rex field=version "(?&amp;lt;generation&amp;gt;\w\d)"
| table version, PercentagesPerVersion, generation
| eventstats max(PercentagesPerVersion) as max_perc values(generation) as gen by generation
| where gen=generation AND max_perc=PercentagesPerVersion
| eval versionNumber=replace(version,"R", "")
| sort - versionNumber
| fields - versionNumber gen max_perc
| table version PercentagesPerVersion&lt;/LI-CODE&gt;&lt;P&gt;&lt;STRONG&gt;eventstats&lt;/STRONG&gt; is useful.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2020 01:19:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Get-max-version-value-based-on-another-column/m-p/513236#M34251</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-08-10T01:19:03Z</dc:date>
    </item>
  </channel>
</rss>

