<?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 Values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Lookup-Values/m-p/297345#M496526</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is something like this what you mean?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;FromMap:&lt;/P&gt;&lt;P&gt;MAPPING LOAD UserID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; From&lt;/P&gt;&lt;P&gt;FROM FromSource;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MessageData:&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap('&lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; white-space: pre; background-color: #ffffff;"&gt;FromMap&lt;/SPAN&gt;', &lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; white-space: pre; background-color: #ffffff;"&gt;UserID&lt;/SPAN&gt;) AS FromField&lt;/P&gt;&lt;P&gt;FROM MessageSource;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will create a new field called "FromField", which will get the From corresponding to that UserID. The example is quite simple but you get the idea. Probably using the MessageID woul work better, depending on your data model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Dec 2011 23:32:47 GMT</pubDate>
    <dc:creator>Miguel_Angel_Baeyens</dc:creator>
    <dc:date>2011-12-13T23:32:47Z</dc:date>
    <item>
      <title>Lookup Values</title>
      <link>https://community.qlik.com/t5/QlikView/Lookup-Values/m-p/297344#M496525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My QV is used to analyze message conversations. I have a column identified as UserID to identify People. I also have columns such as To and From to identify users who have sent the message and users that have received the message. How can I load the tables to use the UserIDs in the To and From columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2011 21:11:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lookup-Values/m-p/297344#M496525</guid>
      <dc:creator />
      <dc:date>2011-12-13T21:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup Values</title>
      <link>https://community.qlik.com/t5/QlikView/Lookup-Values/m-p/297345#M496526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is something like this what you mean?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;FromMap:&lt;/P&gt;&lt;P&gt;MAPPING LOAD UserID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; From&lt;/P&gt;&lt;P&gt;FROM FromSource;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MessageData:&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap('&lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; white-space: pre; background-color: #ffffff;"&gt;FromMap&lt;/SPAN&gt;', &lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; white-space: pre; background-color: #ffffff;"&gt;UserID&lt;/SPAN&gt;) AS FromField&lt;/P&gt;&lt;P&gt;FROM MessageSource;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will create a new field called "FromField", which will get the From corresponding to that UserID. The example is quite simple but you get the idea. Probably using the MessageID woul work better, depending on your data model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2011 23:32:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lookup-Values/m-p/297345#M496526</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-12-13T23:32:47Z</dc:date>
    </item>
    <item>
      <title>Lookup Values</title>
      <link>https://community.qlik.com/t5/QlikView/Lookup-Values/m-p/297346#M496527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is helpful. However, there are two tables in our situation. One is a Users table which includes the UserID. The other tables is a Messages Table which includes the FromID. The FromID is a UserID, but I cannot get the two IDs to link so that when I click a UserID in the Users table, the Messages table updates with only messages from that user. I would consider making them have the same name, but there are other fields that also use the UserID to refer to another user that is involved in that message.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2011 18:26:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lookup-Values/m-p/297346#M496527</guid>
      <dc:creator />
      <dc:date>2011-12-14T18:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup Values</title>
      <link>https://community.qlik.com/t5/QlikView/Lookup-Values/m-p/297347#M496528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on the example above, you can always "repeat" your fields with different names to avoid joining or concatenation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;&lt;CODE class="jive-code"&gt;MessagesMap:&lt;BR /&gt;MAPPING LOAD MessageID,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UserID&lt;BR /&gt;FROM FromSource&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class="jive-code"&gt;WHERE UserType = 'From';&lt;BR /&gt;&lt;BR /&gt;Users:&lt;BR /&gt;LOAD UserID,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap('&lt;SPAN style="font-family: monospace; white-space: pre; background-color: #ffffff;"&gt;MessagesMap&lt;/SPAN&gt;', MessageID) AS FromID&lt;BR /&gt;FROM MessageSource;&lt;/CODE&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2011 13:33:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lookup-Values/m-p/297347#M496528</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-12-15T13:33:25Z</dc:date>
    </item>
  </channel>
</rss>

