<?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: Comparing values in the same table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Comparing-values-in-the-same-table/m-p/535809#M483433</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gysbert, Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your help. I managed to make it work using Gysbert's method, however I also like what Mark did. I always liked that QV lets you do something in more than one way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again guys!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Jul 2013 15:50:42 GMT</pubDate>
    <dc:creator>qlikplaut</dc:creator>
    <dc:date>2013-07-03T15:50:42Z</dc:date>
    <item>
      <title>Comparing values in the same table</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-values-in-the-same-table/m-p/535806#M483430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm struck and I need your advice. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="161" style="width: 328px; height: 168px;" width="326"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl70" height="17" style="text-align: center;" width="64"&gt;year&lt;/TD&gt;&lt;TD class="xl70" style="border-left-style: none; text-align: center;" width="128"&gt;CustomerID&lt;/TD&gt;&lt;TD class="xl70" style="border-left-style: none; text-align: center;" width="91"&gt;ProductID&lt;/TD&gt;&lt;TD class="xl70" style="border-left-style: none; text-align: center;" width="258"&gt;flag&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="17" style="border-top-style: none; text-align: center;"&gt;2012&lt;/TD&gt;&lt;TD class="xl68" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;b001&lt;/TD&gt;&lt;TD class="xl68" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;a001&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;lost&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="17" style="border-top-style: none; text-align: center;"&gt;2012&lt;/TD&gt;&lt;TD class="xl68" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;b002&lt;/TD&gt;&lt;TD class="xl68" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;a002&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="17" style="border-top-style: none; text-align: center;"&gt;2012&lt;/TD&gt;&lt;TD class="xl68" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;b003&lt;/TD&gt;&lt;TD class="xl68" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;a003&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="17" style="border-top-style: none; text-align: center;"&gt;2012&lt;/TD&gt;&lt;TD class="xl68" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;b004&lt;/TD&gt;&lt;TD class="xl68" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;a004&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;lost&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top-style: none; text-align: center;"&gt;2013&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;b002&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;a002&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;renew&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top-style: none; text-align: center;"&gt;2013&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;b005&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;a001&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;new&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top-style: none; text-align: center;"&gt;2013&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;b006&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;a003&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;new&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top-style: none; text-align: center;"&gt;2013&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;b003&lt;/TD&gt;&lt;TD class="xl69" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;a003&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;renew&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table with year, customerID and productID and I want to create a column named flag (preferably in the load script). I would also be satisfied with creating 3 columns (lost,renew,new), but I don't know exactly how to do this with values from the same table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;renew= customerID&amp;amp;productID exist in 2013 and also in 2012.&lt;/P&gt;&lt;P&gt;lost = customerID&amp;amp;productID exist in 2012 but not in 2013&lt;/P&gt;&lt;P&gt;new = customerID&amp;amp;productID exist in 2013 but not in 2012&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I compare the values? My guess would be to use one of the functions: exists, lookup or peek.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2013 10:54:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-values-in-the-same-table/m-p/535806#M483430</guid>
      <dc:creator>qlikplaut</dc:creator>
      <dc:date>2013-07-03T10:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing values in the same table</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-values-in-the-same-table/m-p/535807#M483431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See attached example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2013 11:26:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-values-in-the-same-table/m-p/535807#M483431</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-07-03T11:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing values in the same table</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-values-in-the-same-table/m-p/535808#M483432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is another approach, although &lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://community.qlik.com/people/gwassenaar" id="jive-9654426235470855326979" style="background-color: #ffffff; font-size: 12px; color: #007fc0; font-weight: bold; font-family: Arial; text-align: center;"&gt;Gysbert Wassenaar&lt;/A&gt; method is much cleaner.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2013 12:52:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-values-in-the-same-table/m-p/535808#M483432</guid>
      <dc:creator>RedSky001</dc:creator>
      <dc:date>2013-07-03T12:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing values in the same table</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-values-in-the-same-table/m-p/535809#M483433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gysbert, Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your help. I managed to make it work using Gysbert's method, however I also like what Mark did. I always liked that QV lets you do something in more than one way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again guys!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2013 15:50:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-values-in-the-same-table/m-p/535809#M483433</guid>
      <dc:creator>qlikplaut</dc:creator>
      <dc:date>2013-07-03T15:50:42Z</dc:date>
    </item>
  </channel>
</rss>

