<?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 Avoiding duplicate row for more reloading data from a QVD in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Avoiding-duplicate-row-for-more-reloading-data-from-a-QVD/m-p/316690#M1201340</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Glad to know you have solved the problem.&lt;/P&gt;&lt;P&gt;QlikView is very sensitive in regards to case for both field and values, and this is the first thing to take into account when you are loading data formatted differently. Anyway, to make sure (for example in key fields) that the information is formatted alike, you can use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Upper(KeyField) AS KeyField&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;In all tables where KeyField will be used, so values will be always the same. Lower() and Capitalize() are good choices as well.&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Mar 2011 12:54:40 GMT</pubDate>
    <dc:creator>Miguel_Angel_Baeyens</dc:creator>
    <dc:date>2011-03-28T12:54:40Z</dc:date>
    <item>
      <title>Avoiding duplicate row for more reloading data from a QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Avoiding-duplicate-row-for-more-reloading-data-from-a-QVD/m-p/316683#M1201331</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'm using QV 10 PE. I have created a QVD loader document and a QVW document to consume the data loaded from a QVD.&lt;/P&gt;&lt;P&gt;For more reloading data I can see duplicate rows in list or table boxes.&lt;/P&gt;&lt;P&gt;How can I do avoid this behaviour, please? Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2011 07:09:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Avoiding-duplicate-row-for-more-reloading-data-from-a-QVD/m-p/316683#M1201331</guid>
      <dc:creator />
      <dc:date>2011-03-28T07:09:35Z</dc:date>
    </item>
    <item>
      <title>Avoiding duplicate row for more reloading data from a QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Avoiding-duplicate-row-for-more-reloading-data-from-a-QVD/m-p/316684#M1201332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I don't think I'm getting your issue right, but if you want to avoid loading records from one QVD (say Sales) that don't have correspondence with another table (say Items) you can do something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Items:LOAD ItemID, ItemNameFROM Items.qvd (qvd); Sales:LOAD DocumentNo, ItemID, Customer, AmountFROM Sales.qvd (qvd) WHERE EXISTS(ItemID); // Only for Items previously loaded&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2011 08:05:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Avoiding-duplicate-row-for-more-reloading-data-from-a-QVD/m-p/316684#M1201332</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-03-28T08:05:09Z</dc:date>
    </item>
    <item>
      <title>Avoiding duplicate row for more reloading data from a QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Avoiding-duplicate-row-for-more-reloading-data-from-a-QVD/m-p/316685#M1201335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Miguel,&lt;/P&gt;&lt;P&gt;seeing you examples I have duplicate rows for Items and Sales. Perhaps, I must put a delete inside the loader.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2011 08:21:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Avoiding-duplicate-row-for-more-reloading-data-from-a-QVD/m-p/316685#M1201335</guid>
      <dc:creator />
      <dc:date>2011-03-28T08:21:28Z</dc:date>
    </item>
    <item>
      <title>Avoiding duplicate row for more reloading data from a QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Avoiding-duplicate-row-for-more-reloading-data-from-a-QVD/m-p/316686#M1201336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you mean you do have duplicates in your Items.qvd file (or the correspoding in your datamodel) then you may do a distinct load, using maxstring() and grouping by one field that it's not duplicated.&lt;/P&gt;&lt;P&gt;Something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Temp:LOAD * INLINE [ItemID, ItemNameA, 1A, 11B, 2B, 22C, 3]; Def:NOCONCATENATE LOAD ItemID, MaxString(ItemName) AS ItemNameRESIDENT TempGROUP BY ItemID; DROP TABLE Temp;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2011 08:40:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Avoiding-duplicate-row-for-more-reloading-data-from-a-QVD/m-p/316686#M1201336</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-03-28T08:40:49Z</dc:date>
    </item>
    <item>
      <title>Avoiding duplicate row for more reloading data from a QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Avoiding-duplicate-row-for-more-reloading-data-from-a-QVD/m-p/316687#M1201337</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 I explain better the issue. I read from a relational SQL Server db without any duplicate records.&lt;/P&gt;&lt;P&gt;I have a loader document that stores in QVD files. A file f.e. could contain Items. Another QV document it is used to load from QVD files.&lt;/P&gt;&lt;P&gt;So I have execute the first time the loader and then the QV document that consumes the loaded data. No problems.&lt;/P&gt;&lt;P&gt;Then, I have launched the second time the loader and the 2nd document: now, I have duplicate rows. I think this is an expected behaviour using QVD files and so perhaps there is the right practice to manage this case.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2011 08:52:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Avoiding-duplicate-row-for-more-reloading-data-from-a-QVD/m-p/316687#M1201337</guid>
      <dc:creator />
      <dc:date>2011-03-28T08:52:49Z</dc:date>
    </item>
    <item>
      <title>Avoiding duplicate row for more reloading data from a QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Avoiding-duplicate-row-for-more-reloading-data-from-a-QVD/m-p/316688#M1201338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Andy,&lt;/P&gt;&lt;P&gt;QVD files store no more and no less than you are loading into memory. But if there are concatenations (implicit or explicit) or joins the table in QlikView may add or remove records. Same with partial reloads, when you are using ADD instead of REPLACE or something like that.&lt;/P&gt;&lt;P&gt;But reading in a new empty document the QVD file must return the same number of records the source table had in the moment of the STORE statement.&lt;/P&gt;&lt;P&gt;Another case is that your aggregations or different tables can cause more records to be added. This usually will return unexpected values in expressions.&lt;/P&gt;&lt;P&gt;Anyway, if you can post some simple code that is troubling your document would help.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2011 09:34:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Avoiding-duplicate-row-for-more-reloading-data-from-a-QVD/m-p/316688#M1201338</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-03-28T09:34:47Z</dc:date>
    </item>
    <item>
      <title>Avoiding duplicate row for more reloading data from a QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Avoiding-duplicate-row-for-more-reloading-data-from-a-QVD/m-p/316689#M1201339</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 tried to comment pieces of code and I have understood the problem.&lt;/P&gt;&lt;P&gt;In my relational db, I have filled some dimension tables with code written in uppercase mode. In the referenced table, I have written the foreign key in lowercase manner: no violation of relationship has occured, but QV has loaded the dimension tables with code in uppercase and in lowercase and so has duplicated the rows.&lt;/P&gt;&lt;P&gt;For me, QV should manage this case; for SQL Server, there aren't any errors.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2011 12:48:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Avoiding-duplicate-row-for-more-reloading-data-from-a-QVD/m-p/316689#M1201339</guid>
      <dc:creator />
      <dc:date>2011-03-28T12:48:53Z</dc:date>
    </item>
    <item>
      <title>Avoiding duplicate row for more reloading data from a QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Avoiding-duplicate-row-for-more-reloading-data-from-a-QVD/m-p/316690#M1201340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Glad to know you have solved the problem.&lt;/P&gt;&lt;P&gt;QlikView is very sensitive in regards to case for both field and values, and this is the first thing to take into account when you are loading data formatted differently. Anyway, to make sure (for example in key fields) that the information is formatted alike, you can use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Upper(KeyField) AS KeyField&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;In all tables where KeyField will be used, so values will be always the same. Lower() and Capitalize() are good choices as well.&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2011 12:54:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Avoiding-duplicate-row-for-more-reloading-data-from-a-QVD/m-p/316690#M1201340</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-03-28T12:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: Avoiding duplicate row for more reloading data from a QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Avoiding-duplicate-row-for-more-reloading-data-from-a-QVD/m-p/316691#M1201341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try Load Distinct ... From Items; (it could be, that you have crap in your Item table &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or Load Distinct From Sales, but this is more dangerous ... you can lose some data you need...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2013 08:58:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Avoiding-duplicate-row-for-more-reloading-data-from-a-QVD/m-p/316691#M1201341</guid>
      <dc:creator />
      <dc:date>2013-11-11T08:58:18Z</dc:date>
    </item>
  </channel>
</rss>

