<?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 Lookup value using expressions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Lookup-value-using-expressions/m-p/300094#M579765</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the following straight table I would like the third column "EDC_LMT_HIGH to obtain the value for the latest "Begin_Date" that falls on or before a given effective date. Is this possible via an expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="table.PNG" class="jive-image-thumbnail jive-image" height="75" onclick="" src="https://community.qlik.com/legacyfs/online/10565_table.PNG" width="796" /&gt;&lt;/P&gt;&lt;P&gt;Here are the other tables. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="limits.PNG" class="jive-image" src="https://community.qlik.com/legacyfs/online/10555_limits.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="effective.PNG" class="jive-image-thumbnail jive-image" height="78" onclick="" src="https://community.qlik.com/legacyfs/online/10566_effective.PNG" width="773" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Jan 2012 22:45:47 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-01-23T22:45:47Z</dc:date>
    <item>
      <title>Lookup value using expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Lookup-value-using-expressions/m-p/300094#M579765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the following straight table I would like the third column "EDC_LMT_HIGH to obtain the value for the latest "Begin_Date" that falls on or before a given effective date. Is this possible via an expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="table.PNG" class="jive-image-thumbnail jive-image" height="75" onclick="" src="https://community.qlik.com/legacyfs/online/10565_table.PNG" width="796" /&gt;&lt;/P&gt;&lt;P&gt;Here are the other tables. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="limits.PNG" class="jive-image" src="https://community.qlik.com/legacyfs/online/10555_limits.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="effective.PNG" class="jive-image-thumbnail jive-image" height="78" onclick="" src="https://community.qlik.com/legacyfs/online/10566_effective.PNG" width="773" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2012 22:45:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lookup-value-using-expressions/m-p/300094#M579765</guid>
      <dc:creator />
      <dc:date>2012-01-23T22:45:47Z</dc:date>
    </item>
    <item>
      <title>Lookup value using expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Lookup-value-using-expressions/m-p/300095#M579766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jason,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you could probably resolve your request using FirstSortedValue() and a set expression to limit the BEGIN_DATE values you want to look up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something along&lt;/P&gt;&lt;P&gt;=FirstSortedValue({&amp;lt;BEGIN_DATE = {"&amp;lt;=$(=max(EFFECTIVE_DATE))"} &amp;gt;} EDC_LMT_HIGH, -BEGIN_DATE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check out FirstSortedValue and set analysis in the Help file.&lt;/P&gt;&lt;P&gt;This should work in a table with dimension NAME, above expression and if you want the BEGIN_DATE accordingly:&lt;/P&gt;&lt;P&gt;= max({&amp;lt;BEGIN_DATE = {"&amp;lt;=$(=max(EFFECTIVE_DATE))"} &amp;gt;} BEGIN_DATE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or maybe I misunderstood your setting, so some sample rows of your data, best coded as INLINE table or in a small sample app might help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2012 23:41:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lookup-value-using-expressions/m-p/300095#M579766</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-01-23T23:41:29Z</dc:date>
    </item>
    <item>
      <title>Lookup value using expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Lookup-value-using-expressions/m-p/300096#M579767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thank You. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2012 14:34:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lookup-value-using-expressions/m-p/300096#M579767</guid>
      <dc:creator />
      <dc:date>2012-01-24T14:34:03Z</dc:date>
    </item>
  </channel>
</rss>

