<?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 LOAD distinct - Question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/LOAD-distinct-Question/m-p/1598033#M737838</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I am trying to load some data from a given csv-file.&lt;BR /&gt;&lt;BR /&gt;Very simlified extract of the data:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Anmerkung 2019-07-02 130844.jpg" style="width: 331px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/14742iCCF302C084226EE1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Anmerkung 2019-07-02 130844.jpg" alt="Anmerkung 2019-07-02 130844.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have the following requirements:&lt;/P&gt;&lt;P&gt;* if I filter for claim 4711 amount should be 2 (not 4)&lt;BR /&gt;* if I filter for claim 4711 the sum of cost should be 25&lt;BR /&gt;* if I filter for unit 10 sum of cost should be 25&lt;BR /&gt;* if I count the number of claims it should be 3 (not 4)&lt;/P&gt;&lt;P&gt;I already have the idea that in the LOAD I should use the keyword "distinct" - but I don´t know exactly how to do this.&lt;BR /&gt;&lt;BR /&gt;Can anybody give me hints for the LOAD?&lt;BR /&gt;&lt;BR /&gt;Thank you in advance!&lt;BR /&gt;&lt;BR /&gt;Rainer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 03:07:08 GMT</pubDate>
    <dc:creator>cosmicyes</dc:creator>
    <dc:date>2024-11-16T03:07:08Z</dc:date>
    <item>
      <title>LOAD distinct - Question</title>
      <link>https://community.qlik.com/t5/QlikView/LOAD-distinct-Question/m-p/1598033#M737838</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I am trying to load some data from a given csv-file.&lt;BR /&gt;&lt;BR /&gt;Very simlified extract of the data:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Anmerkung 2019-07-02 130844.jpg" style="width: 331px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/14742iCCF302C084226EE1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Anmerkung 2019-07-02 130844.jpg" alt="Anmerkung 2019-07-02 130844.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have the following requirements:&lt;/P&gt;&lt;P&gt;* if I filter for claim 4711 amount should be 2 (not 4)&lt;BR /&gt;* if I filter for claim 4711 the sum of cost should be 25&lt;BR /&gt;* if I filter for unit 10 sum of cost should be 25&lt;BR /&gt;* if I count the number of claims it should be 3 (not 4)&lt;/P&gt;&lt;P&gt;I already have the idea that in the LOAD I should use the keyword "distinct" - but I don´t know exactly how to do this.&lt;BR /&gt;&lt;BR /&gt;Can anybody give me hints for the LOAD?&lt;BR /&gt;&lt;BR /&gt;Thank you in advance!&lt;BR /&gt;&lt;BR /&gt;Rainer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:07:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/LOAD-distinct-Question/m-p/1598033#M737838</guid>
      <dc:creator>cosmicyes</dc:creator>
      <dc:date>2024-11-16T03:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: LOAD distinct - Question</title>
      <link>https://community.qlik.com/t5/QlikView/LOAD-distinct-Question/m-p/1598036#M737839</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;No you should not be using DISTINCT with the LOAD statement as you do want to load all the rows in the csv.&lt;/P&gt;&lt;P&gt;When you come to the front end of things in charts and tables you should be using DISTINCT in functions like Sum() and Count().&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So a count of claims would be Count(DISTINCT claim) and in your example that would return 3.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Adrian&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2019 11:33:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/LOAD-distinct-Question/m-p/1598036#M737839</guid>
      <dc:creator>atoz1158</dc:creator>
      <dc:date>2019-07-02T11:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: LOAD distinct - Question</title>
      <link>https://community.qlik.com/t5/QlikView/LOAD-distinct-Question/m-p/1598061#M737840</link>
      <description>&lt;P&gt;Your requirements 1, 2 and 4 might be manageable with a distinct in the load or the UI expressions but not 3. I assume that you need some more logic to prepare all wanted results within a single table and/or to split the task into several tables.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2019 12:08:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/LOAD-distinct-Question/m-p/1598061#M737840</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2019-07-02T12:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: LOAD distinct - Question</title>
      <link>https://community.qlik.com/t5/QlikView/LOAD-distinct-Question/m-p/1598088#M737841</link>
      <description>&lt;P&gt;something like that? What is the logic for unit? I can't understand it&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table1:&lt;BR /&gt;load&lt;BR /&gt;claim,&lt;BR /&gt;sum(amount) as amount,&lt;BR /&gt;sum(unit) as unit,&lt;BR /&gt;sum(cost) as cost&lt;BR /&gt;group by claim&lt;BR /&gt;;&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;claim, amount, unit, cost&lt;BR /&gt;4711, 2, 10, 10&lt;BR /&gt;4711, 2, 11, 15&lt;BR /&gt;4712, 3, 10, 10&lt;BR /&gt;4713, 1, 12, 5&lt;BR /&gt;];&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2019 12:34:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/LOAD-distinct-Question/m-p/1598088#M737841</guid>
      <dc:creator>lanlizgu</dc:creator>
      <dc:date>2019-07-02T12:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: LOAD distinct - Question</title>
      <link>https://community.qlik.com/t5/QlikView/LOAD-distinct-Question/m-p/1598153#M737842</link>
      <description>&lt;P&gt;Wow, thank you all for your very helpful answers.&lt;BR /&gt;I think especially the answer of&amp;nbsp;&lt;SPAN class=""&gt;Lanlizgu will lead me to the right direction.&lt;BR /&gt;I´ll need some more testing and will mark an answer as solution asap.&lt;BR /&gt;But also I guess I´ll have some further questions &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2019 14:01:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/LOAD-distinct-Question/m-p/1598153#M737842</guid>
      <dc:creator>cosmicyes</dc:creator>
      <dc:date>2019-07-02T14:01:28Z</dc:date>
    </item>
  </channel>
</rss>

