<?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 Associated value to max() function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Associated-value-to-max-function/m-p/173517#M42677</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Firstsortedvalue()&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Nov 2010 17:29:31 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-11-05T17:29:31Z</dc:date>
    <item>
      <title>Associated value to max() function</title>
      <link>https://community.qlik.com/t5/QlikView/Associated-value-to-max-function/m-p/173514#M42674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear sirs,&lt;/P&gt;&lt;P&gt;I have a table like this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Date Type Customer Remarks&lt;BR /&gt;&lt;/STRONG&gt;010101 Sales Exxon Inc Needs post sale&lt;BR /&gt;010201 Sales BP Inc. Send christmas card&lt;BR /&gt;010301 Finance Greek State Stop sales, didnt pay&lt;BR /&gt;010401 Production CocaCola Needs more hardware&lt;BR /&gt;010501 Sales CocaCola CEO is nice&lt;/P&gt;&lt;P&gt;What i need to do - via a set analysis expression - is to have the REMARKS value, which is related to the second-to-latest date.&lt;BR /&gt;In this case - 010401 is the second-to-latest date, so in this case the output must be "Needs more hardware"&lt;/P&gt;&lt;P&gt;I can NOT use selections, as this will screw up the rest of my application. There is already a selection in effect, and by the way the set-analysis formula needs to disregard the current selection.&lt;/P&gt;&lt;P&gt;What do I do?&lt;/P&gt;&lt;P&gt;Thx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Nov 2010 14:34:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Associated-value-to-max-function/m-p/173514#M42674</guid>
      <dc:creator />
      <dc:date>2010-11-05T14:34:29Z</dc:date>
    </item>
    <item>
      <title>Associated value to max() function</title>
      <link>https://community.qlik.com/t5/QlikView/Associated-value-to-max-function/m-p/173515#M42675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you just need that value in a variable or in a Text object, this might work for you:&lt;/P&gt;&lt;P&gt;Set a variable vMax2Date as :&lt;/P&gt;&lt;P&gt;=max({1} yourDate, 2)&lt;/P&gt;&lt;P&gt;=maxstring({1} if(yourDate = '$(vMax2Date)', Remarks)&lt;/P&gt;&lt;P&gt;Let me know if this works or if you have any questions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Nov 2010 14:40:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Associated-value-to-max-function/m-p/173515#M42675</guid>
      <dc:creator>boorgura</dc:creator>
      <dc:date>2010-11-05T14:40:32Z</dc:date>
    </item>
    <item>
      <title>Associated value to max() function</title>
      <link>https://community.qlik.com/t5/QlikView/Associated-value-to-max-function/m-p/173516#M42676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, but i dont think i can use variables, since max(Date) varies with the values in my dimension field.&lt;/P&gt;&lt;P&gt;In short, I have a straight table where the first dimension is my customer-name. For each customer there is a sales history in a different table, and i need to pick the sales-responsible from the latest and the second-to-latest order pr. customer...&lt;/P&gt;&lt;P&gt;Hope it makes sense...?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Nov 2010 14:50:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Associated-value-to-max-function/m-p/173516#M42676</guid>
      <dc:creator />
      <dc:date>2010-11-05T14:50:05Z</dc:date>
    </item>
    <item>
      <title>Associated value to max() function</title>
      <link>https://community.qlik.com/t5/QlikView/Associated-value-to-max-function/m-p/173517#M42677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Firstsortedvalue()&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Nov 2010 17:29:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Associated-value-to-max-function/m-p/173517#M42677</guid>
      <dc:creator />
      <dc:date>2010-11-05T17:29:31Z</dc:date>
    </item>
  </channel>
</rss>

