<?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 Concatenate is creating records in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Concatenate-is-creating-records/m-p/194867#M55611</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Umang,&lt;/P&gt;&lt;P&gt;I believe the Concatenate does not try to match values, it just adds the second table in the bottom of the 1st, which is exactly what I want. The function that does this matching is the JOIN.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Jun 2010 22:17:49 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-06-18T22:17:49Z</dc:date>
    <item>
      <title>Concatenate is creating records</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenate-is-creating-records/m-p/194863#M55607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In theory when I concatenate two tables the total of rows will be the sum of the rows in each table but that is not what is going on with my script.&lt;/P&gt;&lt;P&gt;If I load the tables separely (in different QVW files), this is the number of rows I get, which is correct.&lt;/P&gt;&lt;P&gt;# of rows in table 1: 37,690,284&lt;BR /&gt;# of rows in table 2: 15,215,949&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;After I join the tables, this is what I get, which is absolutely wrong.&lt;/P&gt;&lt;P&gt;# of rows in table 1: 37,690,284&lt;BR /&gt;# of rows in table 2: 52,906,233&lt;/P&gt;&lt;P&gt;Does anybody knows what could be wrong?&lt;/P&gt;&lt;P&gt;This is my script:&lt;BR /&gt;Load&lt;BR /&gt; Key1&lt;BR /&gt;, Key2&lt;BR /&gt;, Key3&lt;BR /&gt;, Amount&lt;BR /&gt;, Quantity&lt;BR /&gt;From myQvd1.qvd(qvd);&lt;/P&gt;&lt;P&gt;Concatenate&lt;/P&gt;&lt;P&gt;Load&lt;BR /&gt; Key1&lt;BR /&gt;, Key2&lt;BR /&gt;, Key3&lt;BR /&gt;, Amount&lt;BR /&gt;, Quantity&lt;BR /&gt;From myQvd2.qvd(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jun 2010 21:25:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenate-is-creating-records/m-p/194863#M55607</guid>
      <dc:creator />
      <dc:date>2010-06-18T21:25:34Z</dc:date>
    </item>
    <item>
      <title>Concatenate is creating records</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenate-is-creating-records/m-p/194864#M55608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;37,690,284 + 15,215,949 = 52,906,233&lt;/P&gt;&lt;P&gt;What do you mean by "join the tables"? If you are concatenating, you should be making ONE table, not two, and you shouldn't need to join them. The script you show should be making ONE table. I don't know what you're talking about when you give a count of rows in two different tables after you should have been building only one table. Is that your problem? You're building two tables when it should be one? I really don't think I understand your question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jun 2010 22:09:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenate-is-creating-records/m-p/194864#M55608</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-06-18T22:09:15Z</dc:date>
    </item>
    <item>
      <title>Concatenate is creating records</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenate-is-creating-records/m-p/194865#M55609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe the values in table two are different than table one and hence a concatenate would just add rows in the joined table as matching values may not be the same&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jun 2010 22:13:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenate-is-creating-records/m-p/194865#M55609</guid>
      <dc:creator />
      <dc:date>2010-06-18T22:13:27Z</dc:date>
    </item>
    <item>
      <title>Concatenate is creating records</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenate-is-creating-records/m-p/194866#M55610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I expect one table as the result. Let me explain a little better.&lt;/P&gt;&lt;P&gt;Table1 has 2009 data, table2 has 2010 data. If I load only 2009 the results of my charts are correct for 2009. If I load only 2010 the results are also correct for 2010. However if I load both, the results are correct for 2010 but wrong to 2009, almost double of what should be.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jun 2010 22:15:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenate-is-creating-records/m-p/194866#M55610</guid>
      <dc:creator />
      <dc:date>2010-06-18T22:15:32Z</dc:date>
    </item>
    <item>
      <title>Concatenate is creating records</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenate-is-creating-records/m-p/194867#M55611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Umang,&lt;/P&gt;&lt;P&gt;I believe the Concatenate does not try to match values, it just adds the second table in the bottom of the 1st, which is exactly what I want. The function that does this matching is the JOIN.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jun 2010 22:17:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenate-is-creating-records/m-p/194867#M55611</guid>
      <dc:creator />
      <dc:date>2010-06-18T22:17:49Z</dc:date>
    </item>
    <item>
      <title>Concatenate is creating records</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenate-is-creating-records/m-p/194868#M55612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any idea guys?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jun 2010 22:58:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenate-is-creating-records/m-p/194868#M55612</guid>
      <dc:creator />
      <dc:date>2010-06-18T22:58:27Z</dc:date>
    </item>
    <item>
      <title>Concatenate is creating records</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenate-is-creating-records/m-p/194869#M55613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nope. Some bug somewhere, probably in your code, possibly in QlikView itself. Can't say other than that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jun 2010 23:07:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenate-is-creating-records/m-p/194869#M55613</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-06-18T23:07:31Z</dc:date>
    </item>
    <item>
      <title>Concatenate is creating records</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenate-is-creating-records/m-p/194870#M55614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Igor,&lt;/P&gt;&lt;P&gt;I don't see anything wrong in this part of code. Apparently concatenate creates one table, and the only place where you can see the number of rows of the "first table" is the log file. But notthing is wrong here either. You load first 37+ mln rows from QVD1, and log file shows this number, and append another 15 + mln rows from QVD2, and log file shows the resulting number.&lt;BR /&gt;If something is wrong - it is in the overall data model and/or the chart. None of the fields in the script above implies the date (2009 or 2010), so I can't see how you address this in chart.&lt;/P&gt;&lt;P&gt;The bottom line - concatenate does not create records.&lt;BR /&gt;(And, concatenate is not join - it's more like union.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Jun 2010 03:32:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenate-is-creating-records/m-p/194870#M55614</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-06-19T03:32:23Z</dc:date>
    </item>
    <item>
      <title>Concatenate is creating records</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenate-is-creating-records/m-p/194871#M55615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i think the confusion comes from the way the log window shows the count of rows it reads. when it reads from a table that gets concatenated to a table previously loaded, the log window does not show how many rows it read from the 2nd table, it shows the combined amount.&lt;/P&gt;&lt;P&gt;for example. if table A has 1000 rows and table b has 354 rows, the log will show this:&lt;BR /&gt;table A 1000 rows fetched&lt;/P&gt;&lt;P&gt;table B 1354 rows fetched&lt;/P&gt;&lt;P&gt;Mansyno&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Jun 2010 10:26:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenate-is-creating-records/m-p/194871#M55615</guid>
      <dc:creator>wizardo</dc:creator>
      <dc:date>2010-06-20T10:26:22Z</dc:date>
    </item>
    <item>
      <title>Concatenate is creating records</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenate-is-creating-records/m-p/194872#M55616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michael,&lt;/P&gt;&lt;P&gt;The problem is not actually the # of rows, is the calculation that is wrong, it is giving me more than it should.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jun 2010 17:07:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenate-is-creating-records/m-p/194872#M55616</guid>
      <dc:creator />
      <dc:date>2010-06-21T17:07:43Z</dc:date>
    </item>
    <item>
      <title>Concatenate is creating records</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenate-is-creating-records/m-p/194873#M55617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michael,&lt;/P&gt;&lt;P&gt;Regarding to the Year, one of my Key columns is Year, I renamed them here in this post to protect my customer's data structure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jun 2010 17:09:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenate-is-creating-records/m-p/194873#M55617</guid>
      <dc:creator />
      <dc:date>2010-06-21T17:09:32Z</dc:date>
    </item>
    <item>
      <title>Concatenate is creating records</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenate-is-creating-records/m-p/194874#M55618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check carefully your data and logic. Try to make a calculation manually from your QV data. I'm pretty sure you will find a cause of the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jun 2010 17:55:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenate-is-creating-records/m-p/194874#M55618</guid>
      <dc:creator />
      <dc:date>2010-06-21T17:55:31Z</dc:date>
    </item>
    <item>
      <title>Concatenate is creating records</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenate-is-creating-records/m-p/194875#M55619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is working now, but I cannot explain why.&lt;/P&gt;&lt;P&gt;I simply create another column called Balance. The 1st load I said 'Current Year' As Balance. In the 2nd load I said 'Prior Yer' As Balance.&lt;/P&gt;&lt;P&gt;Now and I do my year over year comparation, I use Set Analysis to indentify which Year I want:&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;Balance={'Prior Year'}&amp;gt;} Amount)&lt;/P&gt;&lt;P&gt;I also checked the data. Prior Year is only 2009, non 2010. Current Year is always 2010, none 2009. So I do not understand why my workaround made that work, but it is working.&lt;/P&gt;&lt;P&gt;Thank you all for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jun 2010 18:07:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenate-is-creating-records/m-p/194875#M55619</guid>
      <dc:creator />
      <dc:date>2010-06-21T18:07:04Z</dc:date>
    </item>
  </channel>
</rss>

