<?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: Lookup problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Lookup-problem/m-p/790869#M661340</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks everyone for your input. This really helped.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Feb 2015 16:09:57 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-02-26T16:09:57Z</dc:date>
    <item>
      <title>Lookup problem</title>
      <link>https://community.qlik.com/t5/QlikView/Lookup-problem/m-p/790866#M661337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi fellow developers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to do the following lookup in excel. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 112px;"&gt;&lt;TBODY&gt;&lt;TR style="height: 10.5pt;"&gt;&lt;TD class="xl67" height="14" style="height: 10.5pt; width: 42pt;" width="56"&gt;Principal&lt;/TD&gt;&lt;TD class="xl67" style="border-left: none; width: 42pt;" width="56"&gt;Band&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 10.5pt;"&gt;&lt;TD align="right" class="xl67" height="14" style="height: 10.5pt; border-top: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 10.5pt;"&gt;&lt;TD align="right" class="xl67" height="14" style="height: 10.5pt; border-top: none;"&gt;12&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;12&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 10.5pt;"&gt;&lt;TD align="right" class="xl67" height="14" style="height: 10.5pt; border-top: none;"&gt;18&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;18&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 42pt;" width="56"&gt;&lt;TBODY&gt;&lt;TR style="height: 10.5pt;"&gt;&lt;TD height="14" style="height: 10.5pt; width: 42pt;" width="56"&gt;Band&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 10.5pt;"&gt;&lt;TD align="right" height="14" style="height: 10.5pt;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 10.5pt;"&gt;&lt;TD align="right" height="14" style="height: 10.5pt;"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 10.5pt;"&gt;&lt;TD align="right" height="14" style="height: 10.5pt;"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table that has the principal amount, and another table w/ the band values. I'm trying to create the 1st table. The basic logic is we're using principal as the lookup value against the band table to map the corresponding lookup value. Instead of doing the exact lookup, we're interested in finding the closest match. In other words Principal value of 2 is closer to band 0 than band 10 and hence belongs to Band 0. Similarly Principal value 12 is closer to band 10 than band 20, and therefore belongs to band 12.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this made sense. How can accomplish this type of lookup in QlikView. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2015 18:18:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lookup-problem/m-p/790866#M661337</guid>
      <dc:creator />
      <dc:date>2015-02-25T18:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup problem</title>
      <link>https://community.qlik.com/t5/QlikView/Lookup-problem/m-p/790867#M661338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately not the shortest solution. Suitable at the model level.&lt;/P&gt;&lt;P&gt;VLookUpSource:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Principal,&amp;nbsp;&amp;nbsp;&amp;nbsp; Band&lt;BR /&gt;2,&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;BR /&gt;12,&amp;nbsp;&amp;nbsp;&amp;nbsp; 12&lt;BR /&gt;18,18&lt;BR /&gt;]&lt;BR /&gt;;&lt;BR /&gt;T:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Something&lt;BR /&gt;0&lt;BR /&gt;10&lt;BR /&gt;20&lt;BR /&gt;]&lt;BR /&gt;;&lt;BR /&gt;Left Join(T)&lt;BR /&gt;LOAD&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Band&lt;BR /&gt;Resident VLookUpSource&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;BR /&gt;T2:&lt;BR /&gt;load&lt;BR /&gt;Something,&lt;BR /&gt;FirstSortedValue(Band, Diff)&lt;BR /&gt;Group By Something&lt;BR /&gt;;&lt;BR /&gt;LOAD&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Something,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Band,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fabs(Something-Band) as Diff&lt;BR /&gt;Resident T&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table T;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2015 19:24:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lookup-problem/m-p/790867#M661338</guid>
      <dc:creator />
      <dc:date>2015-02-25T19:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup problem</title>
      <link>https://community.qlik.com/t5/QlikView/Lookup-problem/m-p/790868#M661339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are your band values in increments of 10? If so, you could use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;round(Principal, 10)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2015 19:36:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lookup-problem/m-p/790868#M661339</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2015-02-25T19:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup problem</title>
      <link>https://community.qlik.com/t5/QlikView/Lookup-problem/m-p/790869#M661340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks everyone for your input. This really helped.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2015 16:09:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lookup-problem/m-p/790869#M661340</guid>
      <dc:creator />
      <dc:date>2015-02-26T16:09:57Z</dc:date>
    </item>
  </channel>
</rss>

