<?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 Return field with highest value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Return-field-with-highest-value/m-p/318810#M1198422</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks in advance for any replies.&lt;/P&gt;&lt;P&gt;I have a load which includes the fields below, indicating how old the record is in days and the value - so only one of these 5 fields can be populated with a value &amp;gt; '£0':&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXAMPLE&lt;BR /&gt;[0-30] - £0&lt;BR /&gt;[31-60] - £800&lt;BR /&gt;[61-90] - £0&lt;BR /&gt;[91-120] - £0&lt;BR /&gt; [&amp;gt;120] - £0&lt;/P&gt;&lt;P&gt;This means that the record is 31-60 days old with a value of £800&lt;BR /&gt;What I need is a function or code to recognise which of the 5 fields has the value &amp;gt; '£0'&lt;BR /&gt;rangemax returns the highest value of £800 which is ok but need to recognise which of the 5 fields this value is in.&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Apr 2011 13:32:14 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-04-07T13:32:14Z</dc:date>
    <item>
      <title>Return field with highest value</title>
      <link>https://community.qlik.com/t5/QlikView/Return-field-with-highest-value/m-p/318810#M1198422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks in advance for any replies.&lt;/P&gt;&lt;P&gt;I have a load which includes the fields below, indicating how old the record is in days and the value - so only one of these 5 fields can be populated with a value &amp;gt; '£0':&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXAMPLE&lt;BR /&gt;[0-30] - £0&lt;BR /&gt;[31-60] - £800&lt;BR /&gt;[61-90] - £0&lt;BR /&gt;[91-120] - £0&lt;BR /&gt; [&amp;gt;120] - £0&lt;/P&gt;&lt;P&gt;This means that the record is 31-60 days old with a value of £800&lt;BR /&gt;What I need is a function or code to recognise which of the 5 fields has the value &amp;gt; '£0'&lt;BR /&gt;rangemax returns the highest value of £800 which is ok but need to recognise which of the 5 fields this value is in.&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2011 13:32:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Return-field-with-highest-value/m-p/318810#M1198422</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-04-07T13:32:14Z</dc:date>
    </item>
    <item>
      <title>Re. :Return field with highest value</title>
      <link>https://community.qlik.com/t5/QlikView/Return-field-with-highest-value/m-p/318811#M1198423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try with FirstSortedValue. You can obtain the age with the biggest amount.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vincent&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2011 13:44:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Return-field-with-highest-value/m-p/318811#M1198423</guid>
      <dc:creator>vincent_ardiet</dc:creator>
      <dc:date>2011-04-07T13:44:16Z</dc:date>
    </item>
    <item>
      <title>Re. :Return field with highest value</title>
      <link>https://community.qlik.com/t5/QlikView/Return-field-with-highest-value/m-p/318812#M1198424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;Tried that but not sure it works as we need to look over 5 different fields rather than 1?&lt;/P&gt;&lt;P&gt;Hope this makes sense&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2011 13:53:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Return-field-with-highest-value/m-p/318812#M1198424</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-04-07T13:53:09Z</dc:date>
    </item>
  </channel>
</rss>

