<?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: Self Join Table Transformation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Self-Join-Table-Transformation/m-p/1619809#M445680</link>
    <description>&lt;P&gt;If you are handling strings rather than char type column, ord() function doesn't work well.&lt;/P&gt;&lt;P&gt;You need to do a mapping load to get the numeric row count of each distinct records as the Key:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="clipboard_image_0.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/18388i260D3C8AFFE2BEB9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="clipboard_image_0.png" alt="clipboard_image_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Refer attached qvw for reference.&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Arthur Fong&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Sep 2019 04:42:09 GMT</pubDate>
    <dc:creator>Arthur_Fong</dc:creator>
    <dc:date>2019-09-04T04:42:09Z</dc:date>
    <item>
      <title>Self Join Table Transformation</title>
      <link>https://community.qlik.com/t5/QlikView/Self-Join-Table-Transformation/m-p/1619755#M445674</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm looking to transform the below table such that i obtain the resulting table&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Column&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;a&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;b&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;c&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;STRONG&gt;Result&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Column1&lt;/TD&gt;&lt;TD&gt;Column2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;a&lt;/TD&gt;&lt;TD&gt;b&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;a&lt;/TD&gt;&lt;TD&gt;c&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;b&lt;/TD&gt;&lt;TD&gt;c&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I realize i have to perform a cartesian product of sorts, but i don't want to count aa, bb, cc. Also i don't want to count ba because it is the same as ab. In other, if original table column has n values, resulting table should contain (n)(n-1)/2 rows.&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can we do this using QlikView? Any suggestions are welcome.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vishal&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 20:09:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Self-Join-Table-Transformation/m-p/1619755#M445674</guid>
      <dc:creator>vishalj88</dc:creator>
      <dc:date>2024-11-16T20:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: Self Join Table Transformation</title>
      <link>https://community.qlik.com/t5/QlikView/Self-Join-Table-Transformation/m-p/1619789#M445679</link>
      <description>&lt;P&gt;My way of doing this will be using ord() function to capture the number of each character.&lt;/P&gt;&lt;P&gt;Summing these 2 columns will get the unique key for each rows:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="clipboard_image_0.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/18385iF5F40EFBBA413DE1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="clipboard_image_0.png" alt="clipboard_image_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;eg: A(97) + B(98) is the same with B(98) + A(97)&lt;/P&gt;&lt;P&gt;Then, sort these rows according to the Unique Keys.&lt;/P&gt;&lt;P&gt;Finally, apply filter to grab Unique Keys that is not equal to peek(Unique Keys).&lt;/P&gt;&lt;P&gt;Refer attached qvw for reference.&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Arthur Fong&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2019 01:15:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Self-Join-Table-Transformation/m-p/1619789#M445679</guid>
      <dc:creator>Arthur_Fong</dc:creator>
      <dc:date>2019-09-04T01:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: Self Join Table Transformation</title>
      <link>https://community.qlik.com/t5/QlikView/Self-Join-Table-Transformation/m-p/1619809#M445680</link>
      <description>&lt;P&gt;If you are handling strings rather than char type column, ord() function doesn't work well.&lt;/P&gt;&lt;P&gt;You need to do a mapping load to get the numeric row count of each distinct records as the Key:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="clipboard_image_0.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/18388i260D3C8AFFE2BEB9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="clipboard_image_0.png" alt="clipboard_image_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Refer attached qvw for reference.&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Arthur Fong&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2019 04:42:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Self-Join-Table-Transformation/m-p/1619809#M445680</guid>
      <dc:creator>Arthur_Fong</dc:creator>
      <dc:date>2019-09-04T04:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: Self Join Table Transformation</title>
      <link>https://community.qlik.com/t5/QlikView/Self-Join-Table-Transformation/m-p/1620063#M445693</link>
      <description>&lt;P&gt;Thanks Arthur for your 2 suggestions. Both are pretty close. However the second solution doesn't work when we have more than 3 distinct values. For instance, in the &lt;STRONG&gt;attached&lt;/STRONG&gt; with 6 values you can get to column sum of 8 by multiple ways: 2+6, 3+5. This will incorrectly remove more records than it should. But i think we're on the correct track. Other suggestion are welcome.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2019 13:12:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Self-Join-Table-Transformation/m-p/1620063#M445693</guid>
      <dc:creator>vishalj88</dc:creator>
      <dc:date>2019-09-04T13:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: Self Join Table Transformation</title>
      <link>https://community.qlik.com/t5/QlikView/Self-Join-Table-Transformation/m-p/1620084#M445698</link>
      <description>&lt;P&gt;If that is the case,&lt;/P&gt;&lt;P&gt;Create another identifier by multiplying both unique rows:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="clipboard_image_0.png" style="width: 444px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/18437i16CBEFFC95E381CF/image-dimensions/444x407?v=v2" width="444" height="407" role="button" title="clipboard_image_0.png" alt="clipboard_image_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="clipboard_image_2.png" style="width: 769px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/18440iF2AB89521EF494C2/image-dimensions/769x146?v=v2" width="769" height="146" role="button" title="clipboard_image_2.png" alt="clipboard_image_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Arthur Fong&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2019 13:26:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Self-Join-Table-Transformation/m-p/1620084#M445698</guid>
      <dc:creator>Arthur_Fong</dc:creator>
      <dc:date>2019-09-04T13:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: Self Join Table Transformation</title>
      <link>https://community.qlik.com/t5/QlikView/Self-Join-Table-Transformation/m-p/1620104#M445712</link>
      <description>brilliant! Thanks Arthur</description>
      <pubDate>Wed, 04 Sep 2019 14:07:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Self-Join-Table-Transformation/m-p/1620104#M445712</guid>
      <dc:creator>vishalj88</dc:creator>
      <dc:date>2019-09-04T14:07:07Z</dc:date>
    </item>
  </channel>
</rss>

