<?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: vlookup function in QlikView in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/vlookup-function-in-QlikView/m-p/429103#M159955</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can probably just create an expression to subtract the star score at each level from the rate and determine if the value is positive (1) or negative (0) using a formula like this ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ceil&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Rate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Star1&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))&lt;BR /&gt;+&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ceil&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Rate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Star2&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))&lt;BR /&gt;+&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ceil&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Rate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Star3&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))&lt;BR /&gt;+&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ceil&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Rate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Star4&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))&lt;BR /&gt;+&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ceil&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Rate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Star5&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... rather than using if statements or lookups.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;flipside &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Mar 2013 23:29:32 GMT</pubDate>
    <dc:creator>flipside</dc:creator>
    <dc:date>2013-03-11T23:29:32Z</dc:date>
    <item>
      <title>vlookup function in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/vlookup-function-in-QlikView/m-p/429102#M159954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;QlikView folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a question of vlookup funtion in Qlikview. I see some discussions here, but what i am looking for is the expression to be used in a chart.&lt;/P&gt;&lt;P&gt;Here's an example&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="448"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" width="64"&gt;MEASURE&lt;/TD&gt;&lt;TD class="xl65" width="64"&gt;RATE&lt;/TD&gt;&lt;TD class="xl65" width="64"&gt;STAR 1&lt;/TD&gt;&lt;TD class="xl65" width="64"&gt;STAR 2&lt;/TD&gt;&lt;TD class="xl65" width="64"&gt;STAR 3&lt;/TD&gt;&lt;TD class="xl65" width="64"&gt;STAR 4&lt;/TD&gt;&lt;TD class="xl65" width="64"&gt;STAR 5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20"&gt;A&lt;/TD&gt;&lt;TD class="xl66"&gt;80%&lt;/TD&gt;&lt;TD class="xl67"&gt;0&lt;/TD&gt;&lt;TD class="xl67"&gt;0.73&lt;/TD&gt;&lt;TD class="xl67"&gt;0.79&lt;/TD&gt;&lt;TD class="xl67"&gt;0.85&lt;/TD&gt;&lt;TD class="xl67"&gt;0.96&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20"&gt;B&lt;/TD&gt;&lt;TD class="xl66"&gt;40%&lt;/TD&gt;&lt;TD class="xl67"&gt;0&lt;/TD&gt;&lt;TD class="xl67"&gt;0.25&lt;/TD&gt;&lt;TD class="xl67"&gt;0.5&lt;/TD&gt;&lt;TD class="xl67"&gt;0.61&lt;/TD&gt;&lt;TD class="xl67"&gt;0.8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20"&gt;C&lt;/TD&gt;&lt;TD class="xl66"&gt;70%&lt;/TD&gt;&lt;TD class="xl67"&gt;0&lt;/TD&gt;&lt;TD class="xl67"&gt;0.43&lt;/TD&gt;&lt;TD class="xl67"&gt;0.64&lt;/TD&gt;&lt;TD class="xl67"&gt;0.74&lt;/TD&gt;&lt;TD class="xl67"&gt;0.83&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20"&gt;D&lt;/TD&gt;&lt;TD class="xl66"&gt;22%&lt;/TD&gt;&lt;TD class="xl67"&gt;0&lt;/TD&gt;&lt;TD class="xl67"&gt;0.66&lt;/TD&gt;&lt;TD class="xl67"&gt;0.8&lt;/TD&gt;&lt;TD class="xl67"&gt;0.85&lt;/TD&gt;&lt;TD class="xl67"&gt;0.89&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The 'RATE' is calculated in chart so it is dynamic. The Star1-5 are static. But they have different threshold.&lt;/P&gt;&lt;P&gt;Currently I use the expression below to get the star score.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Calibri','sans-serif'; color: blue;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Calibri','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Calibri','sans-serif'; color: blue;"&gt;RATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Calibri','sans-serif'; color: black;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Calibri','sans-serif'; color: maroon;"&gt;STAR2&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Calibri','sans-serif'; color: black;"&gt;,1,&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Calibri','sans-serif'; color: blue;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Calibri','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Calibri','sans-serif'; color: blue;"&gt;RATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Calibri','sans-serif'; color: black;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Calibri','sans-serif'; color: maroon;"&gt;STAR3&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Calibri','sans-serif'; color: black;"&gt;,2, &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Calibri','sans-serif'; color: blue;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Calibri','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Calibri','sans-serif'; color: blue;"&gt;RATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Calibri','sans-serif'; color: black;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Calibri','sans-serif'; color: maroon;"&gt;STAR4&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Calibri','sans-serif'; color: black;"&gt;,3, &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Calibri','sans-serif'; color: blue;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Calibri','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Calibri','sans-serif'; color: blue;"&gt;RATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Calibri','sans-serif'; color: black;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Calibri','sans-serif'; color: maroon;"&gt;STAR5&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Calibri','sans-serif'; color: black;"&gt;,4,5))))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Calibri','sans-serif'; color: black;"&gt;But the data itself has 20m+ records, and there are several other tables. Nested IF statements make it very slow. I was wondering if there's way alternative to if statements.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Calibri','sans-serif'; color: black;"&gt;Then i came up with the vlookup idea. Although the rate is dynamic calculated, but there are limited values, it could only be 0 to 1. If i can round the rate to 0.001 level, and have a lookup table for it. As table attached. Then all i need to do is to find the value associated with the rate( as attached Excel table). I tried to use fieldvalue and fieldindex function, but it didnt work. Maybe i did not do it right.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Calibri','sans-serif'; color: black;"&gt;Also one thing i need to mention is that 'MEASURE' here is dimension. And only function with set analysis doesnt work either.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Calibri','sans-serif'; color: black;"&gt;Please help.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Mar 2013 15:09:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/vlookup-function-in-QlikView/m-p/429102#M159954</guid>
      <dc:creator />
      <dc:date>2013-03-11T15:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: vlookup function in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/vlookup-function-in-QlikView/m-p/429103#M159955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can probably just create an expression to subtract the star score at each level from the rate and determine if the value is positive (1) or negative (0) using a formula like this ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ceil&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Rate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Star1&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))&lt;BR /&gt;+&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ceil&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Rate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Star2&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))&lt;BR /&gt;+&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ceil&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Rate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Star3&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))&lt;BR /&gt;+&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ceil&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Rate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Star4&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))&lt;BR /&gt;+&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ceil&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Rate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Star5&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... rather than using if statements or lookups.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;flipside &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Mar 2013 23:29:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/vlookup-function-in-QlikView/m-p/429103#M159955</guid>
      <dc:creator>flipside</dc:creator>
      <dc:date>2013-03-11T23:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: vlookup function in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/vlookup-function-in-QlikView/m-p/429104#M159956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't need to do a lookup, just link the tables together on the MEASURE and RATE fields. In your MESURE_REFERENCE_TEST table, change the column name of RATE_LOOKUP to RATE to match your fact table. Then the expression to retrieve the value is =STAR_LOOKUP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://robwunderlich.com"&gt;http://robwunderlich.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Mar 2013 03:48:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/vlookup-function-in-QlikView/m-p/429104#M159956</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2013-03-12T03:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: vlookup function in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/vlookup-function-in-QlikView/m-p/429105#M159957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RATE is not a dimension, so when i do this, it returns nothing but an '-'. I really hope it work, this seems so easy. Maybe i should change my reference table. But i have no idea how.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Mar 2013 13:14:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/vlookup-function-in-QlikView/m-p/429105#M159957</guid>
      <dc:creator />
      <dc:date>2013-03-12T13:14:43Z</dc:date>
    </item>
    <item>
      <title>Re: vlookup function in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/vlookup-function-in-QlikView/m-p/429106#M159958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, flipside. It works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Mar 2013 13:15:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/vlookup-function-in-QlikView/m-p/429106#M159958</guid>
      <dc:creator />
      <dc:date>2013-03-12T13:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: vlookup function in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/vlookup-function-in-QlikView/m-p/429107#M159959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I overlooked the fact that RATE was not dim. Great solution Flipside!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Mar 2013 13:57:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/vlookup-function-in-QlikView/m-p/429107#M159959</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2013-03-12T13:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: vlookup function in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/vlookup-function-in-QlikView/m-p/429108#M159960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are some pretty clever people on this Community, and flipside is one of them! Great solution!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2015 22:16:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/vlookup-function-in-QlikView/m-p/429108#M159960</guid>
      <dc:creator />
      <dc:date>2015-02-06T22:16:48Z</dc:date>
    </item>
  </channel>
</rss>

