<?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: Show record with max field value using aggregation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Show-record-with-max-field-value-using-aggregation/m-p/1235453#M393068</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Probability is a field. I am loading it form datasource.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Nov 2016 11:42:23 GMT</pubDate>
    <dc:creator>mschatt</dc:creator>
    <dc:date>2016-11-28T11:42:23Z</dc:date>
    <item>
      <title>Show record with max field value using aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/Show-record-with-max-field-value-using-aggregation/m-p/1235450#M393065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;I have situation: I want to find record with max value of field "prediction sum". I am using the aggregation: aggr(max(prediction_sum),prediction_for). Field "prediction_for" has one value across the table. After aggregation I have one record, but value of the field "probability" is different than in source table. Why? (pic below)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="problem.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/144988_problem.PNG" style="height: 111px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2016 11:28:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-record-with-max-field-value-using-aggregation/m-p/1235450#M393065</guid>
      <dc:creator>mschatt</dc:creator>
      <dc:date>2016-11-28T11:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: Show record with max field value using aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/Show-record-with-max-field-value-using-aggregation/m-p/1235451#M393066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;"probability" is a field or you are using some expression to create it?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2016 11:38:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-record-with-max-field-value-using-aggregation/m-p/1235451#M393066</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2016-11-28T11:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: Show record with max field value using aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/Show-record-with-max-field-value-using-aggregation/m-p/1235452#M393067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FirstSortedValue(probability, aggr(max(prediction_sum),prediction_for)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2016 11:38:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-record-with-max-field-value-using-aggregation/m-p/1235452#M393067</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2016-11-28T11:38:44Z</dc:date>
    </item>
    <item>
      <title>Re: Show record with max field value using aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/Show-record-with-max-field-value-using-aggregation/m-p/1235453#M393068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Probability is a field. I am loading it form datasource.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2016 11:42:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-record-with-max-field-value-using-aggregation/m-p/1235453#M393068</guid>
      <dc:creator>mschatt</dc:creator>
      <dc:date>2016-11-28T11:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: Show record with max field value using aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/Show-record-with-max-field-value-using-aggregation/m-p/1235454#M393069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try in your chart like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FirstSortedValue( Aggr(probability, prediction_for), -aggr(prediction_sum, prediction_for))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if this doesn't work, try to share your sample qvw.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2016 11:44:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-record-with-max-field-value-using-aggregation/m-p/1235454#M393069</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2016-11-28T11:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: Show record with max field value using aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/Show-record-with-max-field-value-using-aggregation/m-p/1235455#M393070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In attachment is an example qvw. I thought that when I use aggregation it will show the one record with max field and other fields related to this value. Something is missing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2016 12:14:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-record-with-max-field-value-using-aggregation/m-p/1235455#M393070</guid>
      <dc:creator>mschatt</dc:creator>
      <dc:date>2016-11-28T12:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: Show record with max field value using aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/Show-record-with-max-field-value-using-aggregation/m-p/1235456#M393071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use calculated dimension like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=Aggr(FirstSortedValue( probability,&amp;nbsp; -prediction_sum), prediction_for)&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2016 12:22:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-record-with-max-field-value-using-aggregation/m-p/1235456#M393071</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2016-11-28T12:22:12Z</dc:date>
    </item>
  </channel>
</rss>

