<?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: Join and Concatenate in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Join-and-Concatenate/m-p/561977#M209718</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;H2 class="date-header" style="font-size: 17px; color: #555544; font-family: tahoma, 'Trebuchet MS', lucida, helvetica, sans-serif;"&gt;Hi Upali,&lt;/H2&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PFB..&lt;/P&gt;&lt;P class="date-posts" style="color: #555544; font-family: tahoma, 'Trebuchet MS', lucida, helvetica, sans-serif;"&gt;&lt;/P&gt;&lt;DIV class="post-outer"&gt;&lt;DIV class="post hentry"&gt;&lt;A name="1136607933999646890"&gt;&lt;/A&gt;&lt;H3 class="post-title entry-title" style="margin-top: 5px;"&gt;&lt;SPAN style="text-decoration: underline;"&gt;Understanding Join and Concatenate&lt;/SPAN&gt;&lt;/H3&gt;&lt;DIV class="post-header"&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN style="font-family: arial;"&gt;The Qlikview script functions JOIN and CONCATENATE can sometimes be used to tackle the same problem, but there are important differences that should be understood. &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;SPAN style="font-family: arial;"&gt;Examine the sample tables below. Note that they share one common field name, "Key". Also note that Table1 has a Key value "3" that is not present in Table2.&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN style="font-family: Arial;"&gt;&lt;IMG alt="" border="0" class="jiveImage" src="http://4.bp.blogspot.com/_IhQc1-zXHmU/SwXbR49xKnI/AAAAAAAAAEI/uAqaPGNFyQc/s320/sampleData.jpg" style="margin: 0 auto 10px; text-align: center;" /&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: 5px; margin-bottom: 1em;"&gt;&lt;SPAN style="font-family: arial;"&gt;JOIN will combine rows where the Key value matches. The keyword OUTER will also retain rows that do not match rows in the other table. Here's what the merged table will look like after an outer join.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 5px; margin-bottom: 1em;"&gt;&lt;SPAN style="font-family: 'courier new';"&gt;OUTER JOIN (Table1) LOAD * RESIDENT Table2;&lt;/SPAN&gt;&lt;/P&gt;&lt;A href="http://2.bp.blogspot.com/_IhQc1-zXHmU/SwXe2Mtq1iI/AAAAAAAAAEQ/bUi0JS9Y3Oc/s1600/JoinResult.jpg" style="font-weight: bold; color: #669922;"&gt;&lt;IMG alt="" border="0" class="jiveImage" src="http://2.bp.blogspot.com/_IhQc1-zXHmU/SwXe2Mtq1iI/AAAAAAAAAEQ/bUi0JS9Y3Oc/s320/JoinResult.jpg" style="border: 0px; margin: 0 10px 10px 0;" /&gt;&lt;/A&gt;&lt;BR /&gt;&lt;SPAN style="font-family: arial;"&gt;Values A1 and C1, which were in different tables, now occupy the same row in the result table. The row with Key 3 has missing values for C &amp;amp; D, because there was no matching Key in Table2.&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;Creating a chart that uses "Key" for dimension will produce results similar to the Table Box above.&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;IMG alt="" border="0" class="jiveImage" src="http://3.bp.blogspot.com/_IhQc1-zXHmU/SwX8XtnxfTI/AAAAAAAAAE4/dJJjelTYlBU/s320/JoinChart.jpg" style="margin: 0 auto 10px; text-align: center;" /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family: arial;"&gt;The important point is that values with the same Key value have been merged together into a single row. If value A1 is selected, note that values C1 &amp;amp; D1 remain associated (white). The set A1,B1,C1,D1 is indivisible. &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: 5px; margin-bottom: 1em;"&gt;&lt;IMG alt="" border="0" class="jiveImage" src="http://3.bp.blogspot.com/_IhQc1-zXHmU/SwX-0D6z1mI/AAAAAAAAAFA/r--unqfrnUI/s320/JoinSelection.jpg" style="margin: 0 auto 10px; text-align: center;" /&gt;&lt;/P&gt;&lt;P style="margin-top: 5px; margin-bottom: 1em;"&gt;&lt;SPAN style="font-family: arial;"&gt;Now let's look at Concatenate. Concatenate appends the rows of one table to another. Concatenate never merges any rows. The number of rows in a concatenated table is always the sum of the rows from the two input tables. Here's what our sample data will look like after Concatenate.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new';"&gt;CONCATENATE (Table1) LOAD * RESIDENT Table2;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P style="margin-top: 5px; margin-bottom: 1em;"&gt;&lt;A href="http://2.bp.blogspot.com/_IhQc1-zXHmU/SwXv9-873uI/AAAAAAAAAEg/0MaT2YIqUUo/s1600/ConcatenateResult.jpg" style="font-weight: bold; color: #669922;"&gt;&lt;IMG alt="" border="0" class="jiveImage" src="http://2.bp.blogspot.com/_IhQc1-zXHmU/SwXv9-873uI/AAAAAAAAAEg/0MaT2YIqUUo/s320/ConcatenateResult.jpg" style="border: 0px; margin: 0 10px 10px 0;" /&gt;&lt;/A&gt;&lt;SPAN style="font-family: arial;"&gt;Rows with like Key values are &lt;STRONG&gt;not &lt;/STRONG&gt;merged together.&lt;/SPAN&gt; &lt;SPAN style="font-family: arial;"&gt;The rows from Table2 are simply appended to Table1. Because the tables have different fields, rows will have null values for the fields from the "other" table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: 5px; margin-bottom: 1em;"&gt;&lt;SPAN style="font-family: arial;"&gt;If the data is used to build a chart that utilizes the common field "Key" as dimension, the chart looks just like the JOINed table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: 5px; margin-bottom: 1em;"&gt;&lt;SPAN style="font-family: Arial;"&gt;&lt;IMG alt="" border="0" class="jiveImage" src="http://2.bp.blogspot.com/_IhQc1-zXHmU/SwX2F2wT6OI/AAAAAAAAAEo/JOW93VI1uTA/s320/ConcatenatedChart.jpg" style="margin: 0 auto 10px; text-align: center;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: 5px; margin-bottom: 1em;"&gt;&lt;SPAN style="font-family: arial;"&gt;Let's make the selection "A1" in Field A and see it's impact on our visible charts and tables.&lt;/SPAN&gt;&lt;/P&gt;&lt;IMG alt="" border="0" class="jiveImage" src="http://2.bp.blogspot.com/_IhQc1-zXHmU/SwX52lYgKYI/AAAAAAAAAEw/_v4UfNnoWbI/s320/ConcatenateSelection.jpg" style="margin: 0 auto 10px; text-align: center;" /&gt;&lt;BR /&gt;&lt;P style="margin-top: 5px; margin-bottom: 1em;"&gt;&lt;SPAN style="font-family: arial;"&gt;When A1 is selected, the association to C1 &amp;amp; D1 is lost and C/D values become null in both the Chart and Tablebox. We cannot select both A1 and C1. This is a different result than the JOINed example.&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P style="margin-top: 5px; margin-bottom: 1em;"&gt;&lt;SPAN style="font-family: Arial;"&gt;Let's consider a more realistic example where we may choose between JOIN and CONCATENATE. Consider the two tables below. Note that only one BudgetAmount row is present for each Region-Year combination. In the Sales table, the SalesAmount is broken down by Department within Region.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 5px; margin-bottom: 1em;"&gt;&lt;IMG alt="" border="0" class="jiveImage" src="http://1.bp.blogspot.com/_IhQc1-zXHmU/SwYKST4_1MI/AAAAAAAAAFg/DvwF48aaxCY/s320/BudgetSalesData.jpg" style="margin: 0 auto 10px; text-align: center;" /&gt;&lt;SPAN style="font-family: arial;"&gt;If we load both tables we can produce a chart using expressions like =Sum(BudgetAmount).&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P style="margin-top: 5px; margin-bottom: 1em;"&gt;&lt;A href="http://1.bp.blogspot.com/_IhQc1-zXHmU/SwYMutiG7mI/AAAAAAAAAFo/yNnRRo6g2Yg/s1600/BudgetSalesChartLinked.jpg" style="font-weight: bold; color: #669922;"&gt;&lt;IMG alt="" border="0" class="jiveImage" src="http://1.bp.blogspot.com/_IhQc1-zXHmU/SwYMutiG7mI/AAAAAAAAAFo/yNnRRo6g2Yg/s320/BudgetSalesChartLinked.jpg" style="border: 0px; margin: 0 10px 10px 0;" /&gt;&lt;/A&gt;&lt;SPAN style="font-family: arial;"&gt;The Budget and Sales values have been summed correctly.&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P style="margin-top: 5px; margin-bottom: 1em;"&gt;&lt;/P&gt;&lt;P style="margin-top: 5px; margin-bottom: 1em;"&gt;&lt;/P&gt;&lt;P style="margin-top: 5px; margin-bottom: 1em;"&gt;&lt;/P&gt;&lt;P style="margin-top: 5px; margin-bottom: 1em;"&gt;&lt;/P&gt;&lt;P style="margin-top: 5px; margin-bottom: 1em;"&gt;&lt;/P&gt;&lt;P style="margin-top: 5px; margin-bottom: 1em;"&gt;&lt;A href="http://3.bp.blogspot.com/_IhQc1-zXHmU/SwYYvWFNfSI/AAAAAAAAAGQ/rv2R--o8pzw/s1600/SynKey.jpg" style="font-weight: bold; color: #669922;"&gt;http://3.bp.blogspot.com/_IhQc1-zXHmU/SwYYvWFNfSI/AAAAAAAAAGQ/rv2R--o8pzw/s1600/SynKey.jpg&lt;/A&gt;&lt;/P&gt;&lt;P style="margin-top: 5px; margin-bottom: 1em;"&gt;&lt;/P&gt;&lt;P style="margin-top: 5px; margin-bottom: 1em;"&gt;&lt;/P&gt;&lt;P style="margin-top: 5px; margin-bottom: 1em;"&gt;&lt;/P&gt;&lt;P style="margin-top: 5px; margin-bottom: 1em;"&gt;&lt;/P&gt;&lt;P style="margin-top: 5px; margin-bottom: 1em;"&gt;&lt;A href="http://4.bp.blogspot.com/_IhQc1-zXHmU/SwYaNcwCKuI/AAAAAAAAAGg/_6s_J2aPgOA/s1600/SynKey.jpg" style="font-weight: bold; color: #669922;"&gt;&lt;IMG alt="" border="0" class="jiveImage" src="http://4.bp.blogspot.com/_IhQc1-zXHmU/SwYaNcwCKuI/AAAAAAAAAGg/_6s_J2aPgOA/s320/SynKey.jpg" style="border: 0px; margin: 0 0 10px 10px;" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P style="margin-top: 5px; margin-bottom: 1em;"&gt;&lt;/P&gt;&lt;P style="margin-top: 5px; margin-bottom: 1em;"&gt;We then notice that we have an undesirable synthetic key, created by the Budget and Sales tables sharing the Year and Region fields. One approach to eliminate the synthetic key would be &lt;A href="http://4.bp.blogspot.com/_IhQc1-zXHmU/SwYZ0bB6adI/AAAAAAAAAGY/FK4lnYG5hBE/s1600/SynKey.jpg" style="font-weight: bold; color: #669922;"&gt;http://4.bp.blogspot.com/_IhQc1-zXHmU/SwYZ0bB6adI/AAAAAAAAAGY/FK4lnYG5hBE/s1600/SynKey.jpg&lt;/A&gt;JOIN or CONCATENATE. But which one in this case?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: 5px; margin-bottom: 1em;"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P style="margin-top: 5px; margin-bottom: 1em;"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P style="margin-top: 5px; margin-bottom: 1em;"&gt;&lt;SPAN style="font-family: arial;"&gt;Let's try JOIN and see what the Chart looks like.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 5px; margin-bottom: 1em;"&gt;&lt;SPAN style="font-family: 'courier new';"&gt;OUTER JOIN (Budget) LOAD * RESIDENT SALES&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://2.bp.blogspot.com/_IhQc1-zXHmU/SwYObvrT7dI/AAAAAAAAAFw/bETUTdpuS4A/s1600/BudgetSalesChartJoin.jpg" style="font-weight: bold; color: #669922;"&gt;&lt;IMG alt="" border="0" class="jiveImage" src="http://2.bp.blogspot.com/_IhQc1-zXHmU/SwYObvrT7dI/AAAAAAAAAFw/bETUTdpuS4A/s320/BudgetSalesChartJoin.jpg" style="border: 0px; margin: 0 10px 10px 0;" /&gt;&lt;/A&gt;&lt;BR /&gt;&lt;SPAN style="font-family: arial;"&gt;The summed Budget numbers are incorrect!&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 5px; margin-bottom: 1em;"&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P style="margin-top: 5px; margin-bottom: 1em;"&gt;&lt;SPAN style="font-family: arial;"&gt;A look at raw data of the joined table will identify the problem. The JOIN repeated the BudgetAmount value on each Department row&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;IMG alt="" border="0" class="jiveImage" src="http://1.bp.blogspot.com/_IhQc1-zXHmU/SwYPkZy_5lI/AAAAAAAAAF4/plYlAcGFEdw/s320/BudgetSalesJoinedData.jpg" style="margin: 0 auto 10px; text-align: center;" /&gt;&lt;BR /&gt;&lt;SPAN style="font-family: arial;"&gt;Let's try with CONCATENATE.&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new';"&gt;CONCATENATE (Budget) LOAD * RESIDENT Sales;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;A href="http://3.bp.blogspot.com/_IhQc1-zXHmU/SwYQYGwaAVI/AAAAAAAAAGA/Dag0pXl_-bs/s1600/BudgetSalesChartConcatenate.jpg" style="font-weight: bold; color: #669922;"&gt;&lt;IMG alt="" border="0" class="jiveImage" src="http://3.bp.blogspot.com/_IhQc1-zXHmU/SwYQYGwaAVI/AAAAAAAAAGA/Dag0pXl_-bs/s320/BudgetSalesChartConcatenate.jpg" style="border: 0px; margin: 0 10px 10px 0;" /&gt;&lt;/A&gt;&lt;BR /&gt;&lt;SPAN style="font-family: arial;"&gt;The numbers are now correct and we've accomplished the goal of eliminating the synthetic key.&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN style="font-family: arial;"&gt;A peek at the data in the Concatenated table will make it clear why the chart is now correct. There is only BudgetAmount value or each Year-Region.&lt;/SPAN&gt;&lt;BR /&gt;&lt;P style="margin-top: 5px; margin-bottom: 1em;"&gt;&lt;/P&gt;&lt;P style="margin-top: 5px; margin-bottom: 1em;"&gt;&lt;IMG alt="" border="0" class="jiveImage" src="http://1.bp.blogspot.com/_IhQc1-zXHmU/SwYRMqjKtKI/AAAAAAAAAGI/UpGsbwnlBb8/s320/BudgetSalesConcatenatedData.jpg" style="margin: 0 auto 10px; text-align: center;" /&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P style="margin-top: 5px; margin-bottom: 1em;"&gt;&lt;SPAN style="font-family: arial;"&gt;JOIN and CONCATENATE are both very useful and frequently used functions in Qlikview. It's important to understand the differences between them.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 5px; margin-bottom: 1em;"&gt;&lt;SPAN style="font-family: arial;"&gt;-Rob&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 02 Nov 2013 09:07:54 GMT</pubDate>
    <dc:creator>Umesh</dc:creator>
    <dc:date>2013-11-02T09:07:54Z</dc:date>
    <item>
      <title>Join and Concatenate</title>
      <link>https://community.qlik.com/t5/QlikView/Join-and-Concatenate/m-p/561974#M209715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please some explain me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Difference between join and concatenate&lt;/P&gt;&lt;P&gt;when should each command be used ?&lt;/P&gt;&lt;P&gt;what is more effective ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Nov 2013 06:01:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-and-Concatenate/m-p/561974#M209715</guid>
      <dc:creator>upaliwije</dc:creator>
      <dc:date>2013-11-02T06:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: Join and Concatenate</title>
      <link>https://community.qlik.com/t5/QlikView/Join-and-Concatenate/m-p/561975#M209716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;concatenate append/add tables, loads to previously loaded tables. like&lt;/P&gt;&lt;P&gt;sql union but it will not check duplicate rows and concatanating tables could have different columns&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on the other hand join will link diffrent tables based on linking fields (same field name and having same values in the fields) Join operation is identical with Joins in SQL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Nov 2013 07:54:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-and-Concatenate/m-p/561975#M209716</guid>
      <dc:creator />
      <dc:date>2013-11-02T07:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: Join and Concatenate</title>
      <link>https://community.qlik.com/t5/QlikView/Join-and-Concatenate/m-p/561976#M209717</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;I have attached images to help you explain the concepts. Please view them. I hope it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Nov 2013 08:08:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-and-Concatenate/m-p/561976#M209717</guid>
      <dc:creator />
      <dc:date>2013-11-02T08:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: Join and Concatenate</title>
      <link>https://community.qlik.com/t5/QlikView/Join-and-Concatenate/m-p/561977#M209718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;H2 class="date-header" style="font-size: 17px; color: #555544; font-family: tahoma, 'Trebuchet MS', lucida, helvetica, sans-serif;"&gt;Hi Upali,&lt;/H2&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PFB..&lt;/P&gt;&lt;P class="date-posts" style="color: #555544; font-family: tahoma, 'Trebuchet MS', lucida, helvetica, sans-serif;"&gt;&lt;/P&gt;&lt;DIV class="post-outer"&gt;&lt;DIV class="post hentry"&gt;&lt;A name="1136607933999646890"&gt;&lt;/A&gt;&lt;H3 class="post-title entry-title" style="margin-top: 5px;"&gt;&lt;SPAN style="text-decoration: underline;"&gt;Understanding Join and Concatenate&lt;/SPAN&gt;&lt;/H3&gt;&lt;DIV class="post-header"&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN style="font-family: arial;"&gt;The Qlikview script functions JOIN and CONCATENATE can sometimes be used to tackle the same problem, but there are important differences that should be understood. &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;SPAN style="font-family: arial;"&gt;Examine the sample tables below. Note that they share one common field name, "Key". Also note that Table1 has a Key value "3" that is not present in Table2.&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN style="font-family: Arial;"&gt;&lt;IMG alt="" border="0" class="jiveImage" src="http://4.bp.blogspot.com/_IhQc1-zXHmU/SwXbR49xKnI/AAAAAAAAAEI/uAqaPGNFyQc/s320/sampleData.jpg" style="margin: 0 auto 10px; text-align: center;" /&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: 5px; margin-bottom: 1em;"&gt;&lt;SPAN style="font-family: arial;"&gt;JOIN will combine rows where the Key value matches. The keyword OUTER will also retain rows that do not match rows in the other table. Here's what the merged table will look like after an outer join.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 5px; margin-bottom: 1em;"&gt;&lt;SPAN style="font-family: 'courier new';"&gt;OUTER JOIN (Table1) LOAD * RESIDENT Table2;&lt;/SPAN&gt;&lt;/P&gt;&lt;A href="http://2.bp.blogspot.com/_IhQc1-zXHmU/SwXe2Mtq1iI/AAAAAAAAAEQ/bUi0JS9Y3Oc/s1600/JoinResult.jpg" style="font-weight: bold; color: #669922;"&gt;&lt;IMG alt="" border="0" class="jiveImage" src="http://2.bp.blogspot.com/_IhQc1-zXHmU/SwXe2Mtq1iI/AAAAAAAAAEQ/bUi0JS9Y3Oc/s320/JoinResult.jpg" style="border: 0px; margin: 0 10px 10px 0;" /&gt;&lt;/A&gt;&lt;BR /&gt;&lt;SPAN style="font-family: arial;"&gt;Values A1 and C1, which were in different tables, now occupy the same row in the result table. The row with Key 3 has missing values for C &amp;amp; D, because there was no matching Key in Table2.&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;Creating a chart that uses "Key" for dimension will produce results similar to the Table Box above.&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;IMG alt="" border="0" class="jiveImage" src="http://3.bp.blogspot.com/_IhQc1-zXHmU/SwX8XtnxfTI/AAAAAAAAAE4/dJJjelTYlBU/s320/JoinChart.jpg" style="margin: 0 auto 10px; text-align: center;" /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family: arial;"&gt;The important point is that values with the same Key value have been merged together into a single row. If value A1 is selected, note that values C1 &amp;amp; D1 remain associated (white). The set A1,B1,C1,D1 is indivisible. &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: 5px; margin-bottom: 1em;"&gt;&lt;IMG alt="" border="0" class="jiveImage" src="http://3.bp.blogspot.com/_IhQc1-zXHmU/SwX-0D6z1mI/AAAAAAAAAFA/r--unqfrnUI/s320/JoinSelection.jpg" style="margin: 0 auto 10px; text-align: center;" /&gt;&lt;/P&gt;&lt;P style="margin-top: 5px; margin-bottom: 1em;"&gt;&lt;SPAN style="font-family: arial;"&gt;Now let's look at Concatenate. Concatenate appends the rows of one table to another. Concatenate never merges any rows. The number of rows in a concatenated table is always the sum of the rows from the two input tables. Here's what our sample data will look like after Concatenate.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new';"&gt;CONCATENATE (Table1) LOAD * RESIDENT Table2;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P style="margin-top: 5px; margin-bottom: 1em;"&gt;&lt;A href="http://2.bp.blogspot.com/_IhQc1-zXHmU/SwXv9-873uI/AAAAAAAAAEg/0MaT2YIqUUo/s1600/ConcatenateResult.jpg" style="font-weight: bold; color: #669922;"&gt;&lt;IMG alt="" border="0" class="jiveImage" src="http://2.bp.blogspot.com/_IhQc1-zXHmU/SwXv9-873uI/AAAAAAAAAEg/0MaT2YIqUUo/s320/ConcatenateResult.jpg" style="border: 0px; margin: 0 10px 10px 0;" /&gt;&lt;/A&gt;&lt;SPAN style="font-family: arial;"&gt;Rows with like Key values are &lt;STRONG&gt;not &lt;/STRONG&gt;merged together.&lt;/SPAN&gt; &lt;SPAN style="font-family: arial;"&gt;The rows from Table2 are simply appended to Table1. Because the tables have different fields, rows will have null values for the fields from the "other" table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: 5px; margin-bottom: 1em;"&gt;&lt;SPAN style="font-family: arial;"&gt;If the data is used to build a chart that utilizes the common field "Key" as dimension, the chart looks just like the JOINed table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: 5px; margin-bottom: 1em;"&gt;&lt;SPAN style="font-family: Arial;"&gt;&lt;IMG alt="" border="0" class="jiveImage" src="http://2.bp.blogspot.com/_IhQc1-zXHmU/SwX2F2wT6OI/AAAAAAAAAEo/JOW93VI1uTA/s320/ConcatenatedChart.jpg" style="margin: 0 auto 10px; text-align: center;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: 5px; margin-bottom: 1em;"&gt;&lt;SPAN style="font-family: arial;"&gt;Let's make the selection "A1" in Field A and see it's impact on our visible charts and tables.&lt;/SPAN&gt;&lt;/P&gt;&lt;IMG alt="" border="0" class="jiveImage" src="http://2.bp.blogspot.com/_IhQc1-zXHmU/SwX52lYgKYI/AAAAAAAAAEw/_v4UfNnoWbI/s320/ConcatenateSelection.jpg" style="margin: 0 auto 10px; text-align: center;" /&gt;&lt;BR /&gt;&lt;P style="margin-top: 5px; margin-bottom: 1em;"&gt;&lt;SPAN style="font-family: arial;"&gt;When A1 is selected, the association to C1 &amp;amp; D1 is lost and C/D values become null in both the Chart and Tablebox. We cannot select both A1 and C1. This is a different result than the JOINed example.&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P style="margin-top: 5px; margin-bottom: 1em;"&gt;&lt;SPAN style="font-family: Arial;"&gt;Let's consider a more realistic example where we may choose between JOIN and CONCATENATE. Consider the two tables below. Note that only one BudgetAmount row is present for each Region-Year combination. In the Sales table, the SalesAmount is broken down by Department within Region.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 5px; margin-bottom: 1em;"&gt;&lt;IMG alt="" border="0" class="jiveImage" src="http://1.bp.blogspot.com/_IhQc1-zXHmU/SwYKST4_1MI/AAAAAAAAAFg/DvwF48aaxCY/s320/BudgetSalesData.jpg" style="margin: 0 auto 10px; text-align: center;" /&gt;&lt;SPAN style="font-family: arial;"&gt;If we load both tables we can produce a chart using expressions like =Sum(BudgetAmount).&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P style="margin-top: 5px; margin-bottom: 1em;"&gt;&lt;A href="http://1.bp.blogspot.com/_IhQc1-zXHmU/SwYMutiG7mI/AAAAAAAAAFo/yNnRRo6g2Yg/s1600/BudgetSalesChartLinked.jpg" style="font-weight: bold; color: #669922;"&gt;&lt;IMG alt="" border="0" class="jiveImage" src="http://1.bp.blogspot.com/_IhQc1-zXHmU/SwYMutiG7mI/AAAAAAAAAFo/yNnRRo6g2Yg/s320/BudgetSalesChartLinked.jpg" style="border: 0px; margin: 0 10px 10px 0;" /&gt;&lt;/A&gt;&lt;SPAN style="font-family: arial;"&gt;The Budget and Sales values have been summed correctly.&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P style="margin-top: 5px; margin-bottom: 1em;"&gt;&lt;/P&gt;&lt;P style="margin-top: 5px; margin-bottom: 1em;"&gt;&lt;/P&gt;&lt;P style="margin-top: 5px; margin-bottom: 1em;"&gt;&lt;/P&gt;&lt;P style="margin-top: 5px; margin-bottom: 1em;"&gt;&lt;/P&gt;&lt;P style="margin-top: 5px; margin-bottom: 1em;"&gt;&lt;/P&gt;&lt;P style="margin-top: 5px; margin-bottom: 1em;"&gt;&lt;A href="http://3.bp.blogspot.com/_IhQc1-zXHmU/SwYYvWFNfSI/AAAAAAAAAGQ/rv2R--o8pzw/s1600/SynKey.jpg" style="font-weight: bold; color: #669922;"&gt;http://3.bp.blogspot.com/_IhQc1-zXHmU/SwYYvWFNfSI/AAAAAAAAAGQ/rv2R--o8pzw/s1600/SynKey.jpg&lt;/A&gt;&lt;/P&gt;&lt;P style="margin-top: 5px; margin-bottom: 1em;"&gt;&lt;/P&gt;&lt;P style="margin-top: 5px; margin-bottom: 1em;"&gt;&lt;/P&gt;&lt;P style="margin-top: 5px; margin-bottom: 1em;"&gt;&lt;/P&gt;&lt;P style="margin-top: 5px; margin-bottom: 1em;"&gt;&lt;/P&gt;&lt;P style="margin-top: 5px; margin-bottom: 1em;"&gt;&lt;A href="http://4.bp.blogspot.com/_IhQc1-zXHmU/SwYaNcwCKuI/AAAAAAAAAGg/_6s_J2aPgOA/s1600/SynKey.jpg" style="font-weight: bold; color: #669922;"&gt;&lt;IMG alt="" border="0" class="jiveImage" src="http://4.bp.blogspot.com/_IhQc1-zXHmU/SwYaNcwCKuI/AAAAAAAAAGg/_6s_J2aPgOA/s320/SynKey.jpg" style="border: 0px; margin: 0 0 10px 10px;" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P style="margin-top: 5px; margin-bottom: 1em;"&gt;&lt;/P&gt;&lt;P style="margin-top: 5px; margin-bottom: 1em;"&gt;We then notice that we have an undesirable synthetic key, created by the Budget and Sales tables sharing the Year and Region fields. One approach to eliminate the synthetic key would be &lt;A href="http://4.bp.blogspot.com/_IhQc1-zXHmU/SwYZ0bB6adI/AAAAAAAAAGY/FK4lnYG5hBE/s1600/SynKey.jpg" style="font-weight: bold; color: #669922;"&gt;http://4.bp.blogspot.com/_IhQc1-zXHmU/SwYZ0bB6adI/AAAAAAAAAGY/FK4lnYG5hBE/s1600/SynKey.jpg&lt;/A&gt;JOIN or CONCATENATE. But which one in this case?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: 5px; margin-bottom: 1em;"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P style="margin-top: 5px; margin-bottom: 1em;"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P style="margin-top: 5px; margin-bottom: 1em;"&gt;&lt;SPAN style="font-family: arial;"&gt;Let's try JOIN and see what the Chart looks like.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 5px; margin-bottom: 1em;"&gt;&lt;SPAN style="font-family: 'courier new';"&gt;OUTER JOIN (Budget) LOAD * RESIDENT SALES&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://2.bp.blogspot.com/_IhQc1-zXHmU/SwYObvrT7dI/AAAAAAAAAFw/bETUTdpuS4A/s1600/BudgetSalesChartJoin.jpg" style="font-weight: bold; color: #669922;"&gt;&lt;IMG alt="" border="0" class="jiveImage" src="http://2.bp.blogspot.com/_IhQc1-zXHmU/SwYObvrT7dI/AAAAAAAAAFw/bETUTdpuS4A/s320/BudgetSalesChartJoin.jpg" style="border: 0px; margin: 0 10px 10px 0;" /&gt;&lt;/A&gt;&lt;BR /&gt;&lt;SPAN style="font-family: arial;"&gt;The summed Budget numbers are incorrect!&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 5px; margin-bottom: 1em;"&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P style="margin-top: 5px; margin-bottom: 1em;"&gt;&lt;SPAN style="font-family: arial;"&gt;A look at raw data of the joined table will identify the problem. The JOIN repeated the BudgetAmount value on each Department row&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;IMG alt="" border="0" class="jiveImage" src="http://1.bp.blogspot.com/_IhQc1-zXHmU/SwYPkZy_5lI/AAAAAAAAAF4/plYlAcGFEdw/s320/BudgetSalesJoinedData.jpg" style="margin: 0 auto 10px; text-align: center;" /&gt;&lt;BR /&gt;&lt;SPAN style="font-family: arial;"&gt;Let's try with CONCATENATE.&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new';"&gt;CONCATENATE (Budget) LOAD * RESIDENT Sales;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;A href="http://3.bp.blogspot.com/_IhQc1-zXHmU/SwYQYGwaAVI/AAAAAAAAAGA/Dag0pXl_-bs/s1600/BudgetSalesChartConcatenate.jpg" style="font-weight: bold; color: #669922;"&gt;&lt;IMG alt="" border="0" class="jiveImage" src="http://3.bp.blogspot.com/_IhQc1-zXHmU/SwYQYGwaAVI/AAAAAAAAAGA/Dag0pXl_-bs/s320/BudgetSalesChartConcatenate.jpg" style="border: 0px; margin: 0 10px 10px 0;" /&gt;&lt;/A&gt;&lt;BR /&gt;&lt;SPAN style="font-family: arial;"&gt;The numbers are now correct and we've accomplished the goal of eliminating the synthetic key.&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN style="font-family: arial;"&gt;A peek at the data in the Concatenated table will make it clear why the chart is now correct. There is only BudgetAmount value or each Year-Region.&lt;/SPAN&gt;&lt;BR /&gt;&lt;P style="margin-top: 5px; margin-bottom: 1em;"&gt;&lt;/P&gt;&lt;P style="margin-top: 5px; margin-bottom: 1em;"&gt;&lt;IMG alt="" border="0" class="jiveImage" src="http://1.bp.blogspot.com/_IhQc1-zXHmU/SwYRMqjKtKI/AAAAAAAAAGI/UpGsbwnlBb8/s320/BudgetSalesConcatenatedData.jpg" style="margin: 0 auto 10px; text-align: center;" /&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P style="margin-top: 5px; margin-bottom: 1em;"&gt;&lt;SPAN style="font-family: arial;"&gt;JOIN and CONCATENATE are both very useful and frequently used functions in Qlikview. It's important to understand the differences between them.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 5px; margin-bottom: 1em;"&gt;&lt;SPAN style="font-family: arial;"&gt;-Rob&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Nov 2013 09:07:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-and-Concatenate/m-p/561977#M209718</guid>
      <dc:creator>Umesh</dc:creator>
      <dc:date>2013-11-02T09:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: Join and Concatenate</title>
      <link>https://community.qlik.com/t5/QlikView/Join-and-Concatenate/m-p/561978#M209719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Concatenate is Just appending rows of one table to another table&lt;/P&gt;&lt;P&gt;NoConcatenate is also there&lt;/P&gt;&lt;P&gt;Join means combining both tables based on a common column ... We have diffnt types joins&lt;/P&gt;&lt;P&gt;1)Inner join&lt;/P&gt;&lt;P&gt;2)Left Join&lt;/P&gt;&lt;P&gt;3)Right join &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above Hamman Tariq images are Good examples &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depends on the situation we can use them ...for example Go through Incremental load scenario you will come to know &lt;/P&gt;&lt;P&gt;When will we use both of them &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Nov 2013 09:30:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-and-Concatenate/m-p/561978#M209719</guid>
      <dc:creator>sasikanth</dc:creator>
      <dc:date>2013-11-02T09:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: Join and Concatenate</title>
      <link>https://community.qlik.com/t5/QlikView/Join-and-Concatenate/m-p/561979#M209720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks lot for descriptive explanations. I\&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Nov 2013 07:41:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-and-Concatenate/m-p/561979#M209720</guid>
      <dc:creator>upaliwije</dc:creator>
      <dc:date>2013-11-03T07:41:42Z</dc:date>
    </item>
  </channel>
</rss>

