<?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: How to eliminate duplicate lines in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-eliminate-duplicate-lines/m-p/390687#M698979</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your model has everything thrown together in a single table. That means that all lines with an OrderID occur twice:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;once from the invoices data&lt;/LI&gt;&lt;LI&gt;once from the orders data&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;That is, they occur twice if there are corresponding invoices. For example ORD002 has no invoices, so no duplicates. Use Table Viewer-&amp;gt;Preview to check your data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your solution is to use QlikView as ... QlikView: construct an associative model with a few tables and appropriate keys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Nov 2012 12:23:47 GMT</pubDate>
    <dc:creator>Peter_Cammaert</dc:creator>
    <dc:date>2012-11-29T12:23:47Z</dc:date>
    <item>
      <title>How to eliminate duplicate lines</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-eliminate-duplicate-lines/m-p/390686#M698978</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 am working on a QV Model to determine orders that are invoiced , partially invoiced and outstanding.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 4&amp;nbsp; tables namely:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Order Header &lt;/LI&gt;&lt;LI&gt;Order Detail&lt;/LI&gt;&lt;LI&gt;Invoice Header &lt;/LI&gt;&lt;LI&gt;Invoice Detail&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;When an order is invoiced , it generates an invoice number, otherwise invoice number&amp;nbsp; its shown as "****NEW***.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;However i have the following issue where the result I am achieving there are duplicates per line for orders that are invoiced.&amp;nbsp; See attached excel file called "Outcome Results"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="color: #000000;"&gt;The duplicate lines are highlighted in yellow in Table called "Current Result"&lt;/SPAN&gt; &lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #000000;"&gt;The ideal result i want to achieve is in Table called "Ideal Result"&lt;/SPAN&gt; &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I apply the scripting so that I dont have duplicates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;I have attached the excel file where the table sits as well as the QV Model&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Please can you help&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kind regards&lt;/P&gt;&lt;P&gt;Nayan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;﻿&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2012 10:48:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-eliminate-duplicate-lines/m-p/390686#M698978</guid>
      <dc:creator />
      <dc:date>2012-11-29T10:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to eliminate duplicate lines</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-eliminate-duplicate-lines/m-p/390687#M698979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your model has everything thrown together in a single table. That means that all lines with an OrderID occur twice:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;once from the invoices data&lt;/LI&gt;&lt;LI&gt;once from the orders data&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;That is, they occur twice if there are corresponding invoices. For example ORD002 has no invoices, so no duplicates. Use Table Viewer-&amp;gt;Preview to check your data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your solution is to use QlikView as ... QlikView: construct an associative model with a few tables and appropriate keys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2012 12:23:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-eliminate-duplicate-lines/m-p/390687#M698979</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2012-11-29T12:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to eliminate duplicate lines</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-eliminate-duplicate-lines/m-p/390688#M698980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your rersponse.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new at Qlikview and at scripting, hence I do not how to create an associative model. I just know basics.&amp;nbsp; In the model that i have attached previously, can you assist with the scripting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kind regards&lt;/P&gt;&lt;P&gt;Nayan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2012 12:33:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-eliminate-duplicate-lines/m-p/390688#M698980</guid>
      <dc:creator />
      <dc:date>2012-11-29T12:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to eliminate duplicate lines</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-eliminate-duplicate-lines/m-p/390689#M698981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nayan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Load and join orders and orderlines in a table and call this one Orders&lt;/LI&gt;&lt;LI&gt;Load and join invoices and invoicelines in a second table and call this one Invoices.&lt;/LI&gt;&lt;LI&gt;While loading this last table, give all fields a prefix to avoid linking them to the corresponding fields in Orders.&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;Except for OrderID&lt;/EM&gt;. That field should be used as a key tying the two together.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Teaching you how to write Load scripts would take me too far. But hey, QlikView has excellent Designer/Developer trainings that teach you how to master QlikView in a few days. Make sure to look into them if you want to do some serious development in QlikView.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2012 12:58:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-eliminate-duplicate-lines/m-p/390689#M698981</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2012-11-29T12:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to eliminate duplicate lines</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-eliminate-duplicate-lines/m-p/390690#M698982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will have a go and let you know.&amp;nbsp; I think i know how to do the last part, I have not had experience with the first part of joining 2 tables and renaming it.&amp;nbsp; But i will have a go.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Nayan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2012 13:45:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-eliminate-duplicate-lines/m-p/390690#M698982</guid>
      <dc:creator />
      <dc:date>2012-11-29T13:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to eliminate duplicate lines</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-eliminate-duplicate-lines/m-p/390691#M698983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just to let you know, I have come right with the scripting.&amp;nbsp; It&amp;nbsp; was the hard way but manage to do it . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kind regards&lt;/P&gt;&lt;P&gt;Nayan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2012 11:38:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-eliminate-duplicate-lines/m-p/390691#M698983</guid>
      <dc:creator />
      <dc:date>2012-11-30T11:38:55Z</dc:date>
    </item>
  </channel>
</rss>

