<?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 lookup or join with different field name in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/lookup-or-join-with-different-field-name/m-p/217005#M70263</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have the following problem -&lt;/P&gt;&lt;P&gt;I need to link two fields having different names, but similar content and type with a reference table.&lt;/P&gt;&lt;P&gt;Example: There is reference table that contains details of mobile phones, and has a field called 'Phone Model Name'&lt;/P&gt;&lt;P&gt;In another transactions table, I have two columns, one called 'Old Phone Model Name' and the other 'New Phone Model Name'.Both these fields need to link up with the 'Phone Model Name' column in the reference table so that I can show phone details, for new and old phones.&lt;/P&gt;&lt;P&gt;How do I achieve this? I have the flexibility of changing the column names in the two tables, as well as adding more fields to either of them. (but want to keep a separate reference table)&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Feb 2011 14:52:23 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-02-15T14:52:23Z</dc:date>
    <item>
      <title>lookup or join with different field name</title>
      <link>https://community.qlik.com/t5/QlikView/lookup-or-join-with-different-field-name/m-p/217005#M70263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have the following problem -&lt;/P&gt;&lt;P&gt;I need to link two fields having different names, but similar content and type with a reference table.&lt;/P&gt;&lt;P&gt;Example: There is reference table that contains details of mobile phones, and has a field called 'Phone Model Name'&lt;/P&gt;&lt;P&gt;In another transactions table, I have two columns, one called 'Old Phone Model Name' and the other 'New Phone Model Name'.Both these fields need to link up with the 'Phone Model Name' column in the reference table so that I can show phone details, for new and old phones.&lt;/P&gt;&lt;P&gt;How do I achieve this? I have the flexibility of changing the column names in the two tables, as well as adding more fields to either of them. (but want to keep a separate reference table)&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Feb 2011 14:52:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/lookup-or-join-with-different-field-name/m-p/217005#M70263</guid>
      <dc:creator />
      <dc:date>2011-02-15T14:52:23Z</dc:date>
    </item>
    <item>
      <title>lookup or join with different field name</title>
      <link>https://community.qlik.com/t5/QlikView/lookup-or-join-with-different-field-name/m-p/217006#M70264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just try to rename both fields in the loading script to the same name:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;Load:&lt;BR /&gt;fieldname1 as newfieldphone&lt;BR /&gt;fieldname2 as newfieldphone&lt;BR /&gt;...&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;Does that work?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Feb 2011 15:41:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/lookup-or-join-with-different-field-name/m-p/217006#M70264</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-02-15T15:41:20Z</dc:date>
    </item>
    <item>
      <title>lookup or join with different field name</title>
      <link>https://community.qlik.com/t5/QlikView/lookup-or-join-with-different-field-name/m-p/217007#M70265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;my requirement is also to plot a grid chart of new phone models vs. old phone models.&lt;/P&gt;&lt;P&gt;If I rename the columns names in QV, this wouldn't be rendered correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Feb 2011 16:33:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/lookup-or-join-with-different-field-name/m-p/217007#M70265</guid>
      <dc:creator />
      <dc:date>2011-02-15T16:33:16Z</dc:date>
    </item>
    <item>
      <title>lookup or join with different field name</title>
      <link>https://community.qlik.com/t5/QlikView/lookup-or-join-with-different-field-name/m-p/217008#M70266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make a new field called LinkNumber in both tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Feb 2011 16:59:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/lookup-or-join-with-different-field-name/m-p/217008#M70266</guid>
      <dc:creator />
      <dc:date>2011-02-15T16:59:47Z</dc:date>
    </item>
    <item>
      <title>lookup or join with different field name</title>
      <link>https://community.qlik.com/t5/QlikView/lookup-or-join-with-different-field-name/m-p/217009#M70267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;[mobile phones]:&lt;BR /&gt;LOAD&lt;BR /&gt; ...&lt;BR /&gt; [Phone Model Name]&lt;BR /&gt; ...;&lt;BR /&gt;Left Join ([mobile phones])&lt;BR /&gt;LOAD&lt;BR /&gt; [Old Phone Model Name] as [Phone Model Name],&lt;BR /&gt; ....;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Feb 2011 17:32:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/lookup-or-join-with-different-field-name/m-p/217009#M70267</guid>
      <dc:creator />
      <dc:date>2011-02-15T17:32:42Z</dc:date>
    </item>
    <item>
      <title>lookup or join with different field name</title>
      <link>https://community.qlik.com/t5/QlikView/lookup-or-join-with-different-field-name/m-p/217010#M70268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guys, thanks for your replies. However, it does not address the requirement. Let it elaborate more.&lt;/P&gt;&lt;P&gt;I have a table named "mobile phones" in which each record contains the details (like phone specifications) or a particular phone. The column named 'phone name' identifies the phone.&lt;/P&gt;&lt;P&gt;So, typical records would be:&lt;/P&gt;&lt;P&gt;Phone Name | Manufacturer | OS | Type |&lt;/P&gt;&lt;P&gt;iPhone 4 | Apple | iOS | Smartphone&lt;/P&gt;&lt;P&gt;Nokia N8 | Nokia | Symbian| Smartphone&lt;/P&gt;&lt;P&gt;Nokia 1100 | Nokia | NA | Featurephone&lt;/P&gt;&lt;P&gt;I have another table which contains records indicating phone upgrade requests - where subscribers want to replace existing phones with newer models. Typical records would be -:&lt;/P&gt;&lt;P&gt;Date | Old Phone Name | New Phone Name | Customer ID&lt;/P&gt;&lt;P&gt;1 Jan | Nokia 1100 | Nokia N8 | A001&lt;/P&gt;&lt;P&gt;2 Jan | Blackberry storm | Blackberry Torch | A002&lt;/P&gt;&lt;P&gt;2 Jan | iPhone 3GS | iPhone 4 | A003&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, i need to show a grid on 'Old Phone Name' vs. ' New Phone Name' and also link these two fields with the 'mobile phones' table so that I can show the details of new and old phones.&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Feb 2011 17:56:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/lookup-or-join-with-different-field-name/m-p/217010#M70268</guid>
      <dc:creator />
      <dc:date>2011-02-15T17:56:00Z</dc:date>
    </item>
    <item>
      <title>lookup or join with different field name</title>
      <link>https://community.qlik.com/t5/QlikView/lookup-or-join-with-different-field-name/m-p/217011#M70269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One way would be to add a linkage table:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;UpgradesVsPhones:&lt;BR /&gt;LOAD&lt;BR /&gt; Upgrade&lt;BR /&gt;,'New' as OldNew&lt;BR /&gt;,"New Phone Name" as "Phone Name"&lt;BR /&gt;RESIDENT Upgrades&lt;BR /&gt;;&lt;BR /&gt;CONCATENATE (UpgradesVsPhones)&lt;BR /&gt;LOAD&lt;BR /&gt; Upgrade&lt;BR /&gt;,'Old' as OldNew&lt;BR /&gt;,"Old Phone Name" as "Phone Name"&lt;BR /&gt;RESIDENT Upgrades&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;See attached. I put the details in a pivot table. I also made a grid chart of the count of the number of upgrades by old vs. new phone name, but I'm not sure if it's what you meant or not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Feb 2011 02:05:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/lookup-or-join-with-different-field-name/m-p/217011#M70269</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-02-16T02:05:34Z</dc:date>
    </item>
    <item>
      <title>lookup or join with different field name</title>
      <link>https://community.qlik.com/t5/QlikView/lookup-or-join-with-different-field-name/m-p/217012#M70270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;BR /&gt;I have also same problem joining two tables.Could you please show me a way to code it?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Table A:&lt;/P&gt;&lt;P&gt;ID Name&amp;nbsp; start_date end_date flag&lt;BR /&gt;1 abc&amp;nbsp;&amp;nbsp; xxx&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xxxx&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Y&lt;BR /&gt;2 xyz&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xxx&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xxxx&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Y&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Table B:&lt;/P&gt;&lt;P&gt;ID Given_By&amp;nbsp; Given_To&amp;nbsp;&amp;nbsp; Amount&amp;nbsp;&amp;nbsp;&amp;nbsp; Date&lt;BR /&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 200&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xxxx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want as follows:&lt;/P&gt;&lt;P&gt;Temp:&lt;BR /&gt;ID Given_By Given_To&amp;nbsp; Amount&lt;BR /&gt;1 abc&amp;nbsp; xyz&amp;nbsp; 200&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;How can I achieve this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jan 2012 13:14:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/lookup-or-join-with-different-field-name/m-p/217012#M70270</guid>
      <dc:creator />
      <dc:date>2012-01-02T13:14:49Z</dc:date>
    </item>
    <item>
      <title>lookup or join with different field name</title>
      <link>https://community.qlik.com/t5/QlikView/lookup-or-join-with-different-field-name/m-p/217013#M70271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi,&lt;/P&gt;&lt;P&gt;I think you also need the intervalmatch for this code because your master is showing date range . Please find below the code for same:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T1:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID, Name, Start_Date, End_Date, Flag&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, abc,01/01/2012,01/01/2015,Y&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2,xyz,01/01/2012,01/01/2015,Y&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;T2:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID, Given_By, Given_To, Amount, Date&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 1,2,500,07/01/2012,Y&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;T3:&lt;BR /&gt;NoConcatenate&lt;BR /&gt;Load&lt;BR /&gt;*&lt;BR /&gt;Resident T2;&lt;BR /&gt;Left Join IntervalMatch(Date,Given_By)&lt;BR /&gt;Load&lt;BR /&gt;Start_Date,&lt;BR /&gt;End_Date,&lt;BR /&gt;ID AS Given_By &lt;BR /&gt;Resident T1;&lt;BR /&gt;Left Join&lt;BR /&gt;LOAD&lt;BR /&gt;Start_Date,&lt;BR /&gt;ID AS Given_By,&lt;BR /&gt;Name AS Given_By_Name&amp;nbsp; &lt;BR /&gt;Resident T1;&lt;/P&gt;&lt;P&gt;Left Join IntervalMatch(Date,Given_To)&lt;BR /&gt;Load&lt;BR /&gt;Start_Date AS Start_Date1,&lt;BR /&gt;End_Date AS End_Date1,&lt;BR /&gt;ID AS Given_To&lt;BR /&gt;Resident T1;&lt;BR /&gt;Left Join&lt;BR /&gt;LOAD&lt;BR /&gt;Start_Date AS Start_Date1,&lt;BR /&gt;ID AS Given_To,&lt;BR /&gt;Name AS Given_To_Name&lt;BR /&gt;Resident T1;&lt;BR /&gt;Drop Table T1,T2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;Hope this will help you.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;﻿regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;VIjay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jan 2012 09:02:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/lookup-or-join-with-different-field-name/m-p/217013#M70271</guid>
      <dc:creator>vijay_iitkgp</dc:creator>
      <dc:date>2012-01-03T09:02:21Z</dc:date>
    </item>
  </channel>
</rss>

