<?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: right join problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/right-join-problem/m-p/1152347#M630116</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Edwin, group by ID1 and ID2, regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Aug 2016 07:44:02 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-08-09T07:44:02Z</dc:date>
    <item>
      <title>right join problem</title>
      <link>https://community.qlik.com/t5/QlikView/right-join-problem/m-p/1152346#M630115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I have a problem with a selection in my script.&lt;/P&gt;&lt;P&gt;My original table looks like this:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="210" style="border: 1px solid rgb(0, 0, 0); border-image: none; width: 809px; height: 211.54px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;ID1&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;ID2&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;VALUE&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;18&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;33&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;67&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;33&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to find the lowest value for every ID2 and also show the corresponding ID1, so I made the following script:&lt;/P&gt;&lt;P&gt;TABLE1:&lt;BR /&gt; load * INLINE [&lt;BR /&gt; ID1, ID2, VALUE, &lt;BR /&gt;1, 10, 4&lt;BR /&gt;1, 10, 7&lt;BR /&gt;2, 18, &lt;BR /&gt;3, 33, 67&lt;BR /&gt;3, 33, 5&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RIGHT JOIN(TABLE1)&lt;BR /&gt;LOAD&lt;BR /&gt;ID2,&lt;BR /&gt;MIN(VALUE) AS VALUE&lt;BR /&gt;RESIDENT TABLE1 GROUP BY ID2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/133965_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is not as desired, ID1 is missing in the line where there is no value.&lt;/P&gt;&lt;P&gt;Can someone please tell me why ID1 is missing (I expected it to be 2) and how I can solve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Edwin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2016 22:51:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/right-join-problem/m-p/1152346#M630115</guid>
      <dc:creator>ekuijper</dc:creator>
      <dc:date>2016-08-08T22:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: right join problem</title>
      <link>https://community.qlik.com/t5/QlikView/right-join-problem/m-p/1152347#M630116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Edwin, group by ID1 and ID2, regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2016 07:44:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/right-join-problem/m-p/1152347#M630116</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-09T07:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: right join problem</title>
      <link>https://community.qlik.com/t5/QlikView/right-join-problem/m-p/1152348#M630118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think because of the null value your facing this issue, try to populate the 0 in null value places and check again that should work &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2016 07:54:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/right-join-problem/m-p/1152348#M630118</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2016-08-09T07:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: right join problem</title>
      <link>https://community.qlik.com/t5/QlikView/right-join-problem/m-p/1152349#M630119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;another solution could be&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;TABLE1:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;load * INLINE [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ID1, ID2, VALUE, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1, 10, 4&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1, 10, 7&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2, 18, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;3, 33, 67&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;3, 33, 5&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;T2:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;NoConcatenate&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;load&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; ID1, ID2, VALUE&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident TABLE1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Where ID1 &amp;lt;&amp;gt; Peek('ID1')&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;order by ID1, ID2, VALUE;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;drop Table TABLE1;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;IMG alt="1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/134021_1.png" style="height: auto; width: auto;" /&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2016 07:55:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/right-join-problem/m-p/1152349#M630119</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2016-08-09T07:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: right join problem</title>
      <link>https://community.qlik.com/t5/QlikView/right-join-problem/m-p/1152350#M630122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Edwin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;TABLE1:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9.0pt; font-family: 'Courier New';"&gt;load&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;INLINE&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;[&lt;BR /&gt; ID1, ID2, VALUE, &lt;BR /&gt; 1, 10, 4&lt;BR /&gt; 1, 10, 7&lt;BR /&gt; 2, 18, &lt;BR /&gt; 3, 12, 2&lt;BR /&gt; 3, 12, 67&lt;BR /&gt; 3, 33, 5&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;;&lt;BR /&gt; &lt;BR /&gt; Final: &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;NoConcatenate&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9.0pt; font-family: 'Courier New';"&gt;LOAD&lt;/STRONG&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;ID1&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;ID2&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;FirstSortedValue&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;VALUE&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;VALUE&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;AS&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;VALUE&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;RESIDENT&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; TABLE1 &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;GROUP&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;BY&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;ID1&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;ID2&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9.0pt; font-family: 'Courier New';"&gt;DROP&lt;/STRONG&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Table&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; TABLE1; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2016 07:56:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/right-join-problem/m-p/1152350#M630122</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2016-08-09T07:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: right join problem</title>
      <link>https://community.qlik.com/t5/QlikView/right-join-problem/m-p/1152351#M630124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tamil,&lt;/P&gt;&lt;P&gt;Thanks, this works great&lt;/P&gt;&lt;P&gt;Edwin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2016 08:33:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/right-join-problem/m-p/1152351#M630124</guid>
      <dc:creator>ekuijper</dc:creator>
      <dc:date>2016-08-09T08:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: right join problem</title>
      <link>https://community.qlik.com/t5/QlikView/right-join-problem/m-p/1152352#M630125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Massimo,&lt;/P&gt;&lt;P&gt;Thanks for this solution, I have two working options now.&lt;/P&gt;&lt;P&gt;Edwin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2016 08:33:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/right-join-problem/m-p/1152352#M630125</guid>
      <dc:creator>ekuijper</dc:creator>
      <dc:date>2016-08-09T08:33:59Z</dc:date>
    </item>
  </channel>
</rss>

