<?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 Using Concatenate with left join in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-Concatenate-with-left-join/m-p/298202#M110614</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any one know how I can accomplish this? Just moved this to Development community due to no response in New to Qlikview&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Sep 2011 12:37:10 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-09-29T12:37:10Z</dc:date>
    <item>
      <title>Using Concatenate with left join</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Concatenate-with-left-join/m-p/298201#M110613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a situation where I am combining data from 2 data sources. I currently have 6 tables, 3 from each source. I am using Concatenate to combine the 6 tables into 3 usable tables with combined fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 2 Customer tables, 2 Order tables, and 2 order detail tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is in the second data source, I only want to see Closed Orders. This flag is set on the Order table. Normally I would just just a left keep for the order to the order detail table to preserve this as it goes down. How ever I am unable to do this now since I am using Concatenate before the second order detail table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It basicaly looks like this:&lt;/P&gt;&lt;P&gt;&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;Main source log in;&lt;/P&gt;&lt;P&gt;Customer:&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;cust,&lt;/P&gt;&lt;P&gt;custid;&lt;/P&gt;&lt;P&gt;Select &lt;/P&gt;&lt;P&gt;cust,&lt;/P&gt;&lt;P&gt;custid&lt;/P&gt;&lt;P&gt;From ...;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Order:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;custid,&lt;/P&gt;&lt;P&gt;ordernum,&lt;/P&gt;&lt;P&gt;orderamt;&lt;/P&gt;&lt;P&gt;Select&lt;/P&gt;&lt;P&gt;custid,&lt;/P&gt;&lt;P&gt;ordernum,&lt;/P&gt;&lt;P&gt;orderamt&lt;/P&gt;&lt;P&gt;From ...;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Orderdtl:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt; ordernum,&lt;/P&gt;&lt;P&gt;orderline,&lt;/P&gt;&lt;P&gt;lineamt;&lt;/P&gt;&lt;P&gt; Select&lt;/P&gt;&lt;P&gt;ordernum,&lt;/P&gt;&lt;P&gt;orderline,&lt;/P&gt;&lt;P&gt;lineamt&lt;/P&gt;&lt;P&gt;From ...;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second Source login;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oldcustomer:&lt;/P&gt;&lt;P&gt;Concatenate(Customer)&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;cust,&lt;/P&gt;&lt;P&gt;custid;&lt;/P&gt;&lt;P&gt;Select&lt;/P&gt;&lt;P&gt;cust,&lt;/P&gt;&lt;P&gt;custid&lt;/P&gt;&lt;P&gt;From ...;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OldOrder:&lt;/P&gt;&lt;P&gt;Concatenate(Order)&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;custid,&lt;/P&gt;&lt;P&gt;ordernum,&lt;/P&gt;&lt;P&gt;orderamt;&lt;/P&gt;&lt;P&gt;Select&lt;/P&gt;&lt;P&gt;custid,&lt;/P&gt;&lt;P&gt;ordernum,&lt;/P&gt;&lt;P&gt;orderamt,&lt;/P&gt;&lt;P&gt;Status&lt;/P&gt;&lt;P&gt;From ... Where Status='Closed';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OldOrderdtl:&lt;/P&gt;&lt;P&gt;Concatenate(Orderdtl)&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;ordernum,&lt;/P&gt;&lt;P&gt;orderline,&lt;/P&gt;&lt;P&gt;lineamt;&lt;/P&gt;&lt;P&gt;Select&lt;/P&gt;&lt;P&gt;ordernum,&lt;/P&gt;&lt;P&gt;orderline,&lt;/P&gt;&lt;P&gt;lineamt&lt;/P&gt;&lt;P&gt;From ...;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I do this where it only pulls lines from OldOrderdtl were the total order is closed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached picture. Lines on left are the concatenate tables, the line on the right is the join I need. Join needs to be done (data reduced) BEFORE the concatenate happens. Is this possible?&lt;IMG alt="Untitled.png" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/7623_Untitled.png" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2011 18:16:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Concatenate-with-left-join/m-p/298201#M110613</guid>
      <dc:creator />
      <dc:date>2011-09-28T18:16:14Z</dc:date>
    </item>
    <item>
      <title>Using Concatenate with left join</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Concatenate-with-left-join/m-p/298202#M110614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any one know how I can accomplish this? Just moved this to Development community due to no response in New to Qlikview&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2011 12:37:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Concatenate-with-left-join/m-p/298202#M110614</guid>
      <dc:creator />
      <dc:date>2011-09-29T12:37:10Z</dc:date>
    </item>
    <item>
      <title>Using Concatenate with left join</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Concatenate-with-left-join/m-p/298203#M110615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load the table with the data reduction, name for instance: xxx_temp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load this table again but Resident xxx_tem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop xxx_temp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2011 12:48:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Concatenate-with-left-join/m-p/298203#M110615</guid>
      <dc:creator>Michiel_QV_Fan</dc:creator>
      <dc:date>2011-09-29T12:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: Using Concatenate with left join</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Concatenate-with-left-join/m-p/298204#M110616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would the script be something like this? I have not worked with temp tables or resident loads so I am not sure of the correct syntax.&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;OldOrder:&lt;BR /&gt;Concatenate(Order)&lt;BR /&gt;Load &lt;BR /&gt;custid,&lt;BR /&gt;ordernum,&lt;BR /&gt;orderamt;&lt;BR /&gt;Select&lt;BR /&gt;custid,&lt;BR /&gt;ordernum,&lt;BR /&gt;orderamt,&lt;BR /&gt;Status&lt;BR /&gt;From ... Where Status='Closed';&lt;BR /&gt;&lt;BR /&gt;OldOrderdtltemp:&lt;BR /&gt;left keep(&lt;/CODE&gt;&lt;CODE class="jive-code"&gt;OldOrder&lt;/CODE&gt;&lt;CODE class="jive-code"&gt;)&lt;BR /&gt;Load&lt;BR /&gt;ordernum,&lt;BR /&gt;orderline,&lt;BR /&gt;lineamt;&lt;BR /&gt;Select&lt;BR /&gt;ordernum,&lt;BR /&gt;orderline,&lt;BR /&gt;lineamt&lt;BR /&gt;From ...;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class="jive-code"&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class="jive-code"&gt;Residentoldline:&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class="jive-code"&gt;Concatenate (&lt;/CODE&gt;Orderline&lt;CODE class="jive-code"&gt;)&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class="jive-code"&gt;&lt;/CODE&gt;&lt;CODE class="jive-code"&gt;Load&lt;BR /&gt;ordernum,&lt;BR /&gt;orderline,&lt;BR /&gt;lineamt;&lt;BR /&gt;Select&lt;BR /&gt;ordernum,&lt;BR /&gt;orderline,&lt;BR /&gt;lineamt&lt;BR /&gt;From Resident &lt;/CODE&gt;&lt;CODE class="jive-code"&gt;OldOrderdtltemp;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop &lt;CODE class="jive-code"&gt;OldOrderdtltemp;&lt;/CODE&gt;&lt;CODE class="jive-code"&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2011 12:53:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Concatenate-with-left-join/m-p/298204#M110616</guid>
      <dc:creator />
      <dc:date>2011-09-29T12:53:57Z</dc:date>
    </item>
    <item>
      <title>Using Concatenate with left join</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Concatenate-with-left-join/m-p/298205#M110617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can remove all your concatenations. Field names are the same in the tables and will auto concat anyway. If you don't want it to concatenate you either can use no concatenate load or use a dummy-field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Easiest way to do what I think I want to accomplish is to switch load order and do something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class="jive-code"&gt;OldOrder:&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;xxxx&lt;/P&gt;&lt;P&gt;&lt;CODE class="jive-code"&gt;From ... Where Status='Closed';&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class="jive-code"&gt;Oldcustomer:&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;left keep xxxx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class="jive-code"&gt;OldOrderdtl:&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;left keep xxx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class="jive-code"&gt;Order:&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;xxxx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class="jive-code"&gt;Customer:&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;xxxx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class="jive-code"&gt;Orderdtl:&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;xxxx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2011 13:08:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Concatenate-with-left-join/m-p/298205#M110617</guid>
      <dc:creator />
      <dc:date>2011-09-29T13:08:24Z</dc:date>
    </item>
    <item>
      <title>Using Concatenate with left join</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Concatenate-with-left-join/m-p/298206#M110618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got it to work by using left keep temp tables for the OldOrder and OldOrderLine tables, then concatenating using the resident tables. Thank you for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2011 13:56:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Concatenate-with-left-join/m-p/298206#M110618</guid>
      <dc:creator />
      <dc:date>2011-09-29T13:56:38Z</dc:date>
    </item>
  </channel>
</rss>

