<?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: Left join table on two columns qliksense in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Left-join-table-on-two-columns-qliksense/m-p/1784574#M1209888</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/17935"&gt;@MayilVahanan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have to join the tables on two fields (Tag_UID &amp;amp;&amp;nbsp;&lt;SPAN&gt;Max_Datetime_paint)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And while applying left join T1 should come first in the table&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It should be like below :-&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;T1(left join) Data on keys fields (Tag_UID &amp;amp;&amp;nbsp;Max_Datetime_paint)-- new table created here&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Then&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Newtable (left join) with T1 on key fields (Tag_UID &amp;amp;&amp;nbsp; Max_Datetime_mold)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can you please help me ? I am stuck&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 22 Feb 2021 09:01:30 GMT</pubDate>
    <dc:creator>Aspiring_Developer</dc:creator>
    <dc:date>2021-02-22T09:01:30Z</dc:date>
    <item>
      <title>Left join table on two columns qliksense</title>
      <link>https://community.qlik.com/t5/QlikView/Left-join-table-on-two-columns-qliksense/m-p/1784533#M1209883</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;Request you to please help me with below.&lt;/P&gt;&lt;P&gt;I have below script:-&lt;/P&gt;&lt;P&gt;Data:&lt;BR /&gt;LOAD&lt;BR /&gt;tag_UID,&lt;BR /&gt;tag_Material,&lt;BR /&gt;tag_Mat_Description,&lt;BR /&gt;tag_SkidID,&lt;BR /&gt;tag_LogicalSkidID,&lt;BR /&gt;tag_SkidPosition,&lt;BR /&gt;tag_Version,&lt;BR /&gt;tag_Color,&lt;BR /&gt;tag_Changer,&lt;BR /&gt;tag_ChangeDate,&lt;BR /&gt;tag_TrolleyID,&lt;BR /&gt;tag_Undetected,&lt;BR /&gt;tag_Mold,&lt;BR /&gt;tag_Cavity,&lt;BR /&gt;tag_ProdDate,&lt;BR /&gt;tag_UndetecCount,&lt;BR /&gt;tag_InternalID,&lt;BR /&gt;tag_IMPCCycleNumber,&lt;BR /&gt;tag_IMPCCompliance,&lt;BR /&gt;tag_IMPCCreatedAt,&lt;BR /&gt;tag_QualityStatus&lt;BR /&gt;FROM [lib://Shopfloor/GREER/TAG/P_Tag_Data.qvd]&lt;BR /&gt;(qvd);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;T1:&lt;BR /&gt;Load&lt;BR /&gt;Distinct(tag_UID) as t.tag_UID&lt;/P&gt;&lt;P&gt;Resident Data&lt;BR /&gt;where len(trim(tag_Changer)) &amp;gt;0 and not wildmatch(tag_Changer, '*Undetected_FeragGate1*', '*Undetected_FeragGate3*',&lt;BR /&gt;'*Undetected_FeragGate4*','*Undetected_FeragGate5.2*','*Undetected_FeragGate7*','*Undetected_FeragGate8*',&lt;BR /&gt;'*Undetected_FeragGate6*','*Undetected_FeragGate2*') ;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;//----------------------------------------------------------//&lt;BR /&gt;left join(T1)&lt;/P&gt;&lt;P&gt;T2:&lt;BR /&gt;Load tag_UID,&lt;BR /&gt;Max(tag_ChangeDate) as Max_Datetime_mold&lt;BR /&gt;resident Data&lt;BR /&gt;where len(trim(tag_Changer)) &amp;gt;0 and not wildmatch(tag_Changer, '*Undetected_FeragGate1*', '*Undetected_FeragGate3*',&lt;BR /&gt;'*Undetected_FeragGate4*','*Undetected_FeragGate5.2*','*Undetected_FeragGate7*','*Undetected_FeragGate8*',&lt;BR /&gt;'*Undetected_FeragGate6*','*Undetected_FeragGate2*') and&lt;BR /&gt;tag_Color = 'NULL'&lt;/P&gt;&lt;P&gt;group by tag_UID&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;//--------------------------------------------------------------&lt;BR /&gt;left join (T1)&lt;/P&gt;&lt;P&gt;T3:&lt;BR /&gt;Load tag_UID,&lt;BR /&gt;Max(tag_ChangeDate) as Max_Datetime_paint&lt;BR /&gt;resident Data&lt;BR /&gt;where len(trim(tag_Changer)) &amp;gt;0 and not wildmatch(tag_Changer, '*Undetected_FeragGate1*', '*Undetected_FeragGate3*',&lt;BR /&gt;'*Undetected_FeragGate4*','*Undetected_FeragGate5.2*','*Undetected_FeragGate7*','*Undetected_FeragGate8*',&lt;BR /&gt;'*Undetected_FeragGate6*','*Undetected_FeragGate2*') and&lt;BR /&gt;tag_Color &amp;lt;&amp;gt; 'NULL'&lt;BR /&gt;group by tag_UID&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;=====================================&lt;/P&gt;&lt;P&gt;Now, i have two tables 'Data' and 'T1'&lt;/P&gt;&lt;P&gt;My requirement is :-&lt;/P&gt;&lt;P&gt;T1 - left join Raw data (Tag uid, Max_Datetime_paint)--new table&lt;/P&gt;&lt;P&gt;Newtable- left join Raw Data ((tag uid, Max_Datetime_mold))&lt;/P&gt;&lt;P&gt;==================&lt;/P&gt;&lt;P&gt;So, in the final table, all the data should be available&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone please help ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 05:39:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-join-table-on-two-columns-qliksense/m-p/1784533#M1209883</guid>
      <dc:creator>Aspiring_Developer</dc:creator>
      <dc:date>2021-02-22T05:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: Left join table on two columns qliksense</title>
      <link>https://community.qlik.com/t5/QlikView/Left-join-table-on-two-columns-qliksense/m-p/1784565#M1209887</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/103918"&gt;@Aspiring_Developer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope Tag_UID is primary key. In that case, you can simply join the raw data &amp;amp; T1 like below&lt;/P&gt;&lt;P&gt;after ur script, add like below&lt;/P&gt;&lt;P&gt;Left join(Data) Load * resident T1;&lt;/P&gt;&lt;P&gt;Drop table T1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 08:45:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-join-table-on-two-columns-qliksense/m-p/1784565#M1209887</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2021-02-22T08:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: Left join table on two columns qliksense</title>
      <link>https://community.qlik.com/t5/QlikView/Left-join-table-on-two-columns-qliksense/m-p/1784574#M1209888</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/17935"&gt;@MayilVahanan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have to join the tables on two fields (Tag_UID &amp;amp;&amp;nbsp;&lt;SPAN&gt;Max_Datetime_paint)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And while applying left join T1 should come first in the table&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It should be like below :-&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;T1(left join) Data on keys fields (Tag_UID &amp;amp;&amp;nbsp;Max_Datetime_paint)-- new table created here&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Then&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Newtable (left join) with T1 on key fields (Tag_UID &amp;amp;&amp;nbsp; Max_Datetime_mold)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can you please help me ? I am stuck&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 09:01:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-join-table-on-two-columns-qliksense/m-p/1784574#M1209888</guid>
      <dc:creator>Aspiring_Developer</dc:creator>
      <dc:date>2021-02-22T09:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: Left join table on two columns qliksense</title>
      <link>https://community.qlik.com/t5/QlikView/Left-join-table-on-two-columns-qliksense/m-p/1784594#M1209889</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/103918"&gt;@Aspiring_Developer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In that case, create a key field in &lt;SPAN&gt;&amp;nbsp;"tag_UID" &amp;amp;tag_ChangeDate in Data and&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;tag_UID &amp;amp;&amp;nbsp;Max_Datetime_paint , then join based on Key field instead of "Tag_UID" alone.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope it helps&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 09:42:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-join-table-on-two-columns-qliksense/m-p/1784594#M1209889</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2021-02-22T09:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: Left join table on two columns qliksense</title>
      <link>https://community.qlik.com/t5/QlikView/Left-join-table-on-two-columns-qliksense/m-p/1784627#M1209892</link>
      <description>&lt;P&gt;So , should be like below:-&lt;/P&gt;&lt;P&gt;TableA:&lt;/P&gt;&lt;P&gt;Load&amp;nbsp;&lt;SPAN&gt;tag_UID &amp;amp;&amp;nbsp;&amp;nbsp;Max_Datetime_paint&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Resident T1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Left join (Data)&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;Load&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tga_UID &amp;amp;&amp;nbsp;&lt;SPAN&gt;tag_ChangeDate as key&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Resident Data&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 10:37:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-join-table-on-two-columns-qliksense/m-p/1784627#M1209892</guid>
      <dc:creator>Aspiring_Developer</dc:creator>
      <dc:date>2021-02-22T10:37:22Z</dc:date>
    </item>
  </channel>
</rss>

