<?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 Not Working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Lookup-Not-Working/m-p/46706#M606346</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter, yes this is correct, TempParentCode is the value I am trying to lookup in the 'code' field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does Qlik suffer from the same issue that Excel does when doing a VLOOKUP where if the lookup and comparison fields are different formats, ie Text/numerical it wont return a value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am wondering if the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;TempParentCode is not matching due to it being a calculated field, where as code is pulled straight from the DB?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Apr 2018 00:15:29 GMT</pubDate>
    <dc:creator>lukegilligan</dc:creator>
    <dc:date>2018-04-18T00:15:29Z</dc:date>
    <item>
      <title>Lookup Not Working</title>
      <link>https://community.qlik.com/t5/QlikView/Lookup-Not-Working/m-p/46703#M606339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having issues getting a lookup working correctly, and I have tried everything I can to get it to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 2 parts to a customer, a 100000 record and a 3100000, that are linked by the myParent field. If the customer transfers to a different department, the change to a 100000.01 record and a 3100000.01 record. The problem is that the 3100000.01 record in the database refers back to the 100000 record instead of the 100000.01 record (this unfortunately isn't something I can change). What I am hoping to do is us a LOOKUP to lookup the calculated value of the .01 record (3100000.01-3000000) to get me back to the transferred parent (100000.01) and allow me to then use that value to LOOKUP details associated with the transferred customer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the code of the load script that I am running, where myParent2 is not correctly populating using LOOKUP:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;//**************** Load Customer Data ****************&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;CustomerTemp:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; code,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; name,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; oid AS myCustomer,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; isChildAccount,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(myParent=0,'',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(code LIKE '1*.*','',myParent)) AS myParent;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;SQL SELECT &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; code,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; name,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; oid,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; isChildAccount,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; myParent&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;FROM LoginSchema.Customer;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;LEFT JOIN (CustomerTemp)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; getCustomer AS myCustomer,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; getJCJob AS myJCJob,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; myHousingCRMOrganisation,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; oid AS myHousingCustomer;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;SQL SELECT &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; getCustomer,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; getJCJob,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; myHousingCRMOrganisation,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; getCRMOrganisation,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; oid&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;FROM LoginSchema.HousingCustomer;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;TempParentCode:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; code-3000000 AS TempParentCode,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; code&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;RESIDENT CustomerTemp &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;WHERE code LIKE '3*.*';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;LEFT JOIN (CustomerTemp)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; code,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; LOOKUP('myCustomer','code',TempParentCode,'CustomerTemp') &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; AS myParent2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;RESIDENT TempParentCode;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Attached is also a scrambled QVW&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2018 06:51:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lookup-Not-Working/m-p/46703#M606339</guid>
      <dc:creator>lukegilligan</dc:creator>
      <dc:date>2018-04-17T06:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup Not Working</title>
      <link>https://community.qlik.com/t5/QlikView/Lookup-Not-Working/m-p/46704#M606341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Quick guess ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why aren't &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;TempParentCode in quote in your lookup? Checking Help, field value is.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2018 07:52:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lookup-Not-Working/m-p/46704#M606341</guid>
      <dc:creator>michael123</dc:creator>
      <dc:date>2018-04-17T07:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup Not Working</title>
      <link>https://community.qlik.com/t5/QlikView/Lookup-Not-Working/m-p/46705#M606344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Probably because that's the only parameter for which you want to pass the current value of TempParentCode, not the name of the column 'TempParentCode'&lt;SPAN style="font-size: 10pt;"&gt;. LOOKUP tries to lookup a (possibly variable) value, not the name of a field.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2018 10:26:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lookup-Not-Working/m-p/46705#M606344</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2018-04-17T10:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup Not Working</title>
      <link>https://community.qlik.com/t5/QlikView/Lookup-Not-Working/m-p/46706#M606346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter, yes this is correct, TempParentCode is the value I am trying to lookup in the 'code' field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does Qlik suffer from the same issue that Excel does when doing a VLOOKUP where if the lookup and comparison fields are different formats, ie Text/numerical it wont return a value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am wondering if the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;TempParentCode is not matching due to it being a calculated field, where as code is pulled straight from the DB?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2018 00:15:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lookup-Not-Working/m-p/46706#M606346</guid>
      <dc:creator>lukegilligan</dc:creator>
      <dc:date>2018-04-18T00:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup Not Working</title>
      <link>https://community.qlik.com/t5/QlikView/Lookup-Not-Working/m-p/46707#M606347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, finally got somewhere....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My theory about the TempParentCode and Code being different data formats looks like it was on the right track.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I ended up doing was creating a Key from the code&amp;amp;name and using that as my LOOKUP which I presume forced it to be text format, not numerical/text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help Peter &amp;amp; Michael, its much appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2018 00:46:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lookup-Not-Working/m-p/46707#M606347</guid>
      <dc:creator>lukegilligan</dc:creator>
      <dc:date>2018-04-18T00:46:02Z</dc:date>
    </item>
  </channel>
</rss>

