<?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 Looking up value in table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Looking-up-value-in-table/m-p/409534#M488025</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've got a table called [VVO Timing] which has the following columns:&lt;/P&gt;&lt;P&gt;- [VVO Timing.Model]&lt;/P&gt;&lt;P&gt;- [VVO Timing.Series]&lt;/P&gt;&lt;P&gt;- [VVO Timing.Group]&lt;/P&gt;&lt;P&gt;- [VVO Timing.Type]&lt;/P&gt;&lt;P&gt;- [VVO Timing.Release]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I'm adding expressions to a table which only has data which do not map to any of the above columns or table above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do have available Model, Series, Group, Type and I want to retrieve the Release from the table.&lt;/P&gt;&lt;P&gt;I thought of creating a set, something like&lt;/P&gt;&lt;P&gt;=firstSortedValue({$&amp;lt;[VVO Timing.Model] = [Model], [VVO Timing.Series] = [Series], [VVO Timing.Group] = [Group], [VVO Timing.Type] = [Type]&amp;gt;} [VVO Timing.Release])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this doesn't seem to be working.&lt;/P&gt;&lt;P&gt;My table correctly displays [Model], [Series], [Group], [Type] but I can't do the lookup in the table [VVO Timing].&lt;/P&gt;&lt;P&gt;Am I forced to create a custom load script?&lt;/P&gt;&lt;P&gt;Perhaps create a Mapping and a ApplyMap, but I really want to know if the above is possible to perform a lookup.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also your thoughts on performance are very welcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Percy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;N.B. I can't change the tables, they are configured to load as they are, I can only do a custom load script, I can't change the sql that feeds the qvd's!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Feb 2013 12:12:26 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-02-06T12:12:26Z</dc:date>
    <item>
      <title>Looking up value in table</title>
      <link>https://community.qlik.com/t5/QlikView/Looking-up-value-in-table/m-p/409534#M488025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've got a table called [VVO Timing] which has the following columns:&lt;/P&gt;&lt;P&gt;- [VVO Timing.Model]&lt;/P&gt;&lt;P&gt;- [VVO Timing.Series]&lt;/P&gt;&lt;P&gt;- [VVO Timing.Group]&lt;/P&gt;&lt;P&gt;- [VVO Timing.Type]&lt;/P&gt;&lt;P&gt;- [VVO Timing.Release]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I'm adding expressions to a table which only has data which do not map to any of the above columns or table above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do have available Model, Series, Group, Type and I want to retrieve the Release from the table.&lt;/P&gt;&lt;P&gt;I thought of creating a set, something like&lt;/P&gt;&lt;P&gt;=firstSortedValue({$&amp;lt;[VVO Timing.Model] = [Model], [VVO Timing.Series] = [Series], [VVO Timing.Group] = [Group], [VVO Timing.Type] = [Type]&amp;gt;} [VVO Timing.Release])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this doesn't seem to be working.&lt;/P&gt;&lt;P&gt;My table correctly displays [Model], [Series], [Group], [Type] but I can't do the lookup in the table [VVO Timing].&lt;/P&gt;&lt;P&gt;Am I forced to create a custom load script?&lt;/P&gt;&lt;P&gt;Perhaps create a Mapping and a ApplyMap, but I really want to know if the above is possible to perform a lookup.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also your thoughts on performance are very welcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Percy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;N.B. I can't change the tables, they are configured to load as they are, I can only do a custom load script, I can't change the sql that feeds the qvd's!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2013 12:12:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Looking-up-value-in-table/m-p/409534#M488025</guid>
      <dc:creator />
      <dc:date>2013-02-06T12:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: Looking up value in table</title>
      <link>https://community.qlik.com/t5/QlikView/Looking-up-value-in-table/m-p/409535#M488026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Percy, try this:&lt;/P&gt;&lt;P&gt;=firstSortedValue({$&amp;lt;[VVO Timing.Model] = p([Model]), [VVO Timing.Series] = p([Series]), [VVO Timing.Group] = p([Group]), [VVO Timing.Type] = p([Type])&amp;gt;} [VVO Timing.Release])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The idea is that for each Field Selection, you can't use Field1=Field2. The right-side of the statement must be some kind of a value list. Instead, you can use Field1=p(Field2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I guess that you could solve the problem by adjusting your load script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you post the QVW (with sample data / scrambled data / reduced data)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2013 16:08:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Looking-up-value-in-table/m-p/409535#M488026</guid>
      <dc:creator>fosuzuki</dc:creator>
      <dc:date>2013-02-06T16:08:52Z</dc:date>
    </item>
  </channel>
</rss>

