<?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: Display only rows that contain the max value in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Display-only-rows-that-contain-the-max-value/m-p/189424#M37753</link>
    <description>&lt;P&gt;As an update to this question, I resolved the issue by moving away from the pivot table and using the eventstats in each query to limit the results to the max VersionNumber. This is now working.&lt;/P&gt;</description>
    <pubDate>Mon, 09 Jun 2014 09:06:02 GMT</pubDate>
    <dc:creator>obrienk</dc:creator>
    <dc:date>2014-06-09T09:06:02Z</dc:date>
    <item>
      <title>Display only rows that contain the max value</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Display-only-rows-that-contain-the-max-value/m-p/189422#M37751</link>
      <description>&lt;P&gt;I am attempting to use a pivot grid to display items in a grid that contain the max value of a column  &lt;/P&gt;

&lt;P&gt;Example:&lt;/P&gt;

&lt;TABLE&gt;
    &lt;TBODY&gt;&lt;TR&gt;
        &lt;TD&gt;Users&lt;/TD&gt;&lt;TD&gt;Orders&lt;/TD&gt;&lt;TD&gt;VersionNumber&lt;/TD&gt;
    &lt;/TR&gt;
    &lt;TR&gt;
        &lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;
    &lt;/TR&gt;
    &lt;TR&gt;
        &lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;
    &lt;/TR&gt;
    &lt;TR&gt;
        &lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;
    &lt;/TR&gt;
    &lt;TR&gt;
        &lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;
    &lt;/TR&gt;
    &lt;TR&gt;
        &lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;
    &lt;/TR&gt;
&lt;/TBODY&gt;&lt;/TABLE&gt;   

&lt;P&gt;I only want to display the rows that contain the max VersionNumber.&lt;BR /&gt;
When doing something like this through the search command, I would use eventstats to store the max value and then test each row against that.&lt;/P&gt;

&lt;P&gt;Example:&lt;BR /&gt;
| eventstats max(VersionNumber) as Big | where VersionNumber = Big&lt;/P&gt;

&lt;P&gt;I would have thought that the filter in the pivot table would have enabled me to do this but I have not been able to see a solution. Can anyone help?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2014 12:47:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Display-only-rows-that-contain-the-max-value/m-p/189422#M37751</guid>
      <dc:creator>obrienk</dc:creator>
      <dc:date>2014-06-05T12:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: Display only rows that contain the max value</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Display-only-rows-that-contain-the-max-value/m-p/189423#M37752</link>
      <description>&lt;P&gt;Just to add, would it be possible to do this in the constraint when setting up the data model?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2014 12:51:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Display-only-rows-that-contain-the-max-value/m-p/189423#M37752</guid>
      <dc:creator>obrienk</dc:creator>
      <dc:date>2014-06-05T12:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: Display only rows that contain the max value</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Display-only-rows-that-contain-the-max-value/m-p/189424#M37753</link>
      <description>&lt;P&gt;As an update to this question, I resolved the issue by moving away from the pivot table and using the eventstats in each query to limit the results to the max VersionNumber. This is now working.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jun 2014 09:06:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Display-only-rows-that-contain-the-max-value/m-p/189424#M37753</guid>
      <dc:creator>obrienk</dc:creator>
      <dc:date>2014-06-09T09:06:02Z</dc:date>
    </item>
  </channel>
</rss>

