<?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 Compare &amp; flag values in same table based on value in another table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Compare-flag-values-in-same-table-based-on-value-in-another/m-p/614484#M226696</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a database containing tables called &lt;STRONG&gt;ACCOUNT&lt;/STRONG&gt;, &lt;STRONG&gt;CONTRACT&lt;/STRONG&gt; &amp;amp; &lt;STRONG&gt;CONTRACTDETAILS&lt;/STRONG&gt;. I have two tables in QV where one flags if contracts are going to expire within the next 60 days and another that shows all the new contracts currently in the process of being processed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I would like to do is to place a flag in the "Contract &amp;lt; 60 days" table if there is a similarly named contract currently being renewed. All contracts (current &amp;amp; upcoming) are stored in the &lt;STRONG&gt;CONTRACTS&lt;/STRONG&gt; table in the database and the flag for upcoming projects (Status = 'Planned') is stored in the &lt;STRONG&gt;CONTRACTDETAILS&lt;/STRONG&gt; table - all other info such as Start/End Dates, etc. are stored in the &lt;STRONG&gt;CONTRACT&lt;/STRONG&gt; table. In QV, the tables look similar to below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Contract &amp;lt; 60 Days:&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="74" style="border: 1px solid #000000; width: 548px; height: 70px;" width="546"&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;ACCOUNT&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;CONTRACT REF&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;ENDDATE&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;Duffy's Shop&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;DUF - Support 2013-2014&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;01/04/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;Sharp Supermarket&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;SHP - Maintenance 2013-2014&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;07/04/2014&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Upcoming Contracts:&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="49" style="border: 1px solid #000000; width: 546px; height: 44px;" width="544"&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;ACCOUNT&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;CONTRACT REF&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;STATUS&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;STARTDATE&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;Duffy's Shop&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;DUF - Support 2014-2015&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;Planned&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;02/04/2014&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I'm looking to accomplish is to read all values in the &lt;STRONG&gt;CONTRACTS&lt;/STRONG&gt; table and flag if there is a similar named &lt;STRONG&gt;CONTRACT REF&lt;/STRONG&gt; for the same account, where the Start Date (upcoming) &amp;gt;= End Date (current).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Mar 2014 12:12:16 GMT</pubDate>
    <dc:creator>ciaran_mcgowan</dc:creator>
    <dc:date>2014-03-24T12:12:16Z</dc:date>
    <item>
      <title>Compare &amp; flag values in same table based on value in another table</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-flag-values-in-same-table-based-on-value-in-another/m-p/614484#M226696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a database containing tables called &lt;STRONG&gt;ACCOUNT&lt;/STRONG&gt;, &lt;STRONG&gt;CONTRACT&lt;/STRONG&gt; &amp;amp; &lt;STRONG&gt;CONTRACTDETAILS&lt;/STRONG&gt;. I have two tables in QV where one flags if contracts are going to expire within the next 60 days and another that shows all the new contracts currently in the process of being processed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I would like to do is to place a flag in the "Contract &amp;lt; 60 days" table if there is a similarly named contract currently being renewed. All contracts (current &amp;amp; upcoming) are stored in the &lt;STRONG&gt;CONTRACTS&lt;/STRONG&gt; table in the database and the flag for upcoming projects (Status = 'Planned') is stored in the &lt;STRONG&gt;CONTRACTDETAILS&lt;/STRONG&gt; table - all other info such as Start/End Dates, etc. are stored in the &lt;STRONG&gt;CONTRACT&lt;/STRONG&gt; table. In QV, the tables look similar to below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Contract &amp;lt; 60 Days:&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="74" style="border: 1px solid #000000; width: 548px; height: 70px;" width="546"&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;ACCOUNT&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;CONTRACT REF&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;ENDDATE&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;Duffy's Shop&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;DUF - Support 2013-2014&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;01/04/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;Sharp Supermarket&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;SHP - Maintenance 2013-2014&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;07/04/2014&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Upcoming Contracts:&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="49" style="border: 1px solid #000000; width: 546px; height: 44px;" width="544"&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;ACCOUNT&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;CONTRACT REF&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;STATUS&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;STARTDATE&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;Duffy's Shop&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;DUF - Support 2014-2015&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;Planned&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;02/04/2014&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I'm looking to accomplish is to read all values in the &lt;STRONG&gt;CONTRACTS&lt;/STRONG&gt; table and flag if there is a similar named &lt;STRONG&gt;CONTRACT REF&lt;/STRONG&gt; for the same account, where the Start Date (upcoming) &amp;gt;= End Date (current).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Mar 2014 12:12:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-flag-values-in-same-table-based-on-value-in-another/m-p/614484#M226696</guid>
      <dc:creator>ciaran_mcgowan</dc:creator>
      <dc:date>2014-03-24T12:12:16Z</dc:date>
    </item>
  </channel>
</rss>

