<?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: [ASK] How to create a relation from 2 table with different Field&amp;Value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/ASK-How-to-create-a-relation-from-2-table-with-different-Field/m-p/943695#M649223</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would try something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Master:&lt;/P&gt;&lt;P&gt;Load chr(39) &amp;amp; '*' &amp;amp; concat(distinct Name, '*' &amp;amp; chr(39) &amp;amp; ',' &amp;amp; chr(39) &amp;amp; '*', ID) &amp;amp; '*' &amp;amp; chr(39) as NameList&amp;nbsp; Inline [&lt;/P&gt;&lt;P&gt;ID, Name&lt;/P&gt;&lt;P&gt;3, Alex&lt;/P&gt;&lt;P&gt;5, Diana&lt;/P&gt;&lt;P&gt;8, Lidya&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vNameList = peek('NameList', -1, 'Master');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MapTableToMaster:&lt;/P&gt;&lt;P&gt;Mapping Load rowno() as RowNo, ID Inline [&lt;/P&gt;&lt;P&gt;ID, Name&lt;/P&gt;&lt;P&gt;3, Alex&lt;/P&gt;&lt;P&gt;5, Diana&lt;/P&gt;&lt;P&gt;8, Lidya&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trans:&lt;/P&gt;&lt;P&gt;Load *, applymap('MapTableToMaster', wildmatch(Message, $(vNameList)), 'n.n') as ID Inline [&lt;/P&gt;&lt;P&gt;Message, Timestamp, Status&lt;/P&gt;&lt;P&gt;Working in the field is Alex's job, 1, A&lt;/P&gt;&lt;P&gt;His wife name is Diana, 2, A&lt;/P&gt;&lt;P&gt;Lidya goes to market, 3, B&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 26 Sep 2015 09:21:40 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2015-09-26T09:21:40Z</dc:date>
    <item>
      <title>[ASK] How to create a relation from 2 table with different Field&amp;Value</title>
      <link>https://community.qlik.com/t5/QlikView/ASK-How-to-create-a-relation-from-2-table-with-different-Field/m-p/943694#M649222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Qlik Master,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 2 table, Master and Trans table.&lt;/P&gt;&lt;P&gt;Master table have 2 field :&lt;/P&gt;&lt;P&gt;1. ID (1,2,3)&lt;/P&gt;&lt;P&gt;2. Name ('&lt;SPAN style="color: #575757; text-decoration: underline;"&gt;Alex&lt;/SPAN&gt;', '&lt;SPAN style="text-decoration: underline;"&gt;Diana&lt;/SPAN&gt;', '&lt;SPAN style="text-decoration: underline;"&gt;Lidya&lt;/SPAN&gt;')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trans table have 3 field :&lt;/P&gt;&lt;P&gt;1. Message ('Working in the field is &lt;SPAN style="text-decoration: underline;"&gt;Alex&lt;/SPAN&gt;'s job', 'His wife name is &lt;SPAN style="text-decoration: underline;"&gt;Diana&lt;/SPAN&gt;','&lt;SPAN style="text-decoration: underline;"&gt;Lidya&lt;/SPAN&gt; goes to market')&lt;/P&gt;&lt;P&gt;2. Timestamp&lt;/P&gt;&lt;P&gt;3. Status&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on above description, how to create a Name column in Trans table based on Name column in Master table? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Sep 2015 03:41:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ASK-How-to-create-a-relation-from-2-table-with-different-Field/m-p/943694#M649222</guid>
      <dc:creator>rendiyan</dc:creator>
      <dc:date>2015-09-26T03:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: [ASK] How to create a relation from 2 table with different Field&amp;Value</title>
      <link>https://community.qlik.com/t5/QlikView/ASK-How-to-create-a-relation-from-2-table-with-different-Field/m-p/943695#M649223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would try something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Master:&lt;/P&gt;&lt;P&gt;Load chr(39) &amp;amp; '*' &amp;amp; concat(distinct Name, '*' &amp;amp; chr(39) &amp;amp; ',' &amp;amp; chr(39) &amp;amp; '*', ID) &amp;amp; '*' &amp;amp; chr(39) as NameList&amp;nbsp; Inline [&lt;/P&gt;&lt;P&gt;ID, Name&lt;/P&gt;&lt;P&gt;3, Alex&lt;/P&gt;&lt;P&gt;5, Diana&lt;/P&gt;&lt;P&gt;8, Lidya&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vNameList = peek('NameList', -1, 'Master');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MapTableToMaster:&lt;/P&gt;&lt;P&gt;Mapping Load rowno() as RowNo, ID Inline [&lt;/P&gt;&lt;P&gt;ID, Name&lt;/P&gt;&lt;P&gt;3, Alex&lt;/P&gt;&lt;P&gt;5, Diana&lt;/P&gt;&lt;P&gt;8, Lidya&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trans:&lt;/P&gt;&lt;P&gt;Load *, applymap('MapTableToMaster', wildmatch(Message, $(vNameList)), 'n.n') as ID Inline [&lt;/P&gt;&lt;P&gt;Message, Timestamp, Status&lt;/P&gt;&lt;P&gt;Working in the field is Alex's job, 1, A&lt;/P&gt;&lt;P&gt;His wife name is Diana, 2, A&lt;/P&gt;&lt;P&gt;Lidya goes to market, 3, B&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Sep 2015 09:21:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ASK-How-to-create-a-relation-from-2-table-with-different-Field/m-p/943695#M649223</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-09-26T09:21:40Z</dc:date>
    </item>
  </channel>
</rss>

