<?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: Wrong values after (left) join in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Wrong-values-after-left-join/m-p/1821670#M1213589</link>
    <description>&lt;P&gt;Thanks a lot! This works perfectly &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Diana&lt;/P&gt;</description>
    <pubDate>Tue, 13 Jul 2021 09:01:53 GMT</pubDate>
    <dc:creator>Diana_B</dc:creator>
    <dc:date>2021-07-13T09:01:53Z</dc:date>
    <item>
      <title>Wrong values after (left) join</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-values-after-left-join/m-p/1821471#M1213561</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I am relatively new to QlikView and need your help with following problem:&lt;/P&gt;&lt;P&gt;When joining some fields from another table&amp;nbsp;(see script below) I get wrong values in my pivot-table .&lt;/P&gt;&lt;P&gt;The dimension is [Patienten-ID] and expression in the table is just "sum(Therapieanzahl)" which should be 141 for one particular Patient-ID and after joining the value is 1128.&lt;/P&gt;&lt;P&gt;How can I solve this problem?&lt;/P&gt;&lt;P&gt;If you need further information please let me know.&lt;/P&gt;&lt;P&gt;Thx for your help!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Diana&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Gesamtliste: 
LOAD [Patienten-ID], 
Therapiedauer_Buchstabencode, 
Div(Aufenthaltsdauer, 7) as [Aufenthaltsdauer in Wochen], 
Therapieanzahl, 
[KTL-Code], 
Therapieklasse, 
If(Aufenthaltsdauer&amp;gt;=7,'ja', 'nein') as [Aufenthalt_Berücksichtigung] Resident Gesamt_KTL ; 

Join LOAD [PatID] as [Patienten-ID], 
Patient, 
Fallnummer, 
Patklasse, 
Bereich, 
Bereich_lang 
Resident Abrechnungsbereich ; 

DROP Tables Gesamt_KTL, Abrechnungsbereich;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jul 2021 14:33:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-values-after-left-join/m-p/1821471#M1213561</guid>
      <dc:creator>Diana_B</dc:creator>
      <dc:date>2021-07-12T14:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong values after (left) join</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-values-after-left-join/m-p/1821532#M1213571</link>
      <description>&lt;P&gt;It's because the joining table doesn't have distinct values.&amp;nbsp;&lt;/P&gt;&lt;P&gt;From your code, if you check the table&lt;/P&gt;&lt;PRE&gt;Abrechnungsbereich&lt;/PRE&gt;&lt;P&gt;and you will find that it has duplicate values.&lt;/P&gt;&lt;P&gt;Try to remove the duplicate values to get the correct result.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jul 2021 17:27:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-values-after-left-join/m-p/1821532#M1213571</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2021-07-12T17:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong values after (left) join</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-values-after-left-join/m-p/1821670#M1213589</link>
      <description>&lt;P&gt;Thanks a lot! This works perfectly &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Diana&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jul 2021 09:01:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-values-after-left-join/m-p/1821670#M1213589</guid>
      <dc:creator>Diana_B</dc:creator>
      <dc:date>2021-07-13T09:01:53Z</dc:date>
    </item>
  </channel>
</rss>

