<?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: Compare 2 tables and flag if the values match/don't match in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Compare-2-tables-and-flag-if-the-values-match-don-t-match/m-p/1365450#M821124</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Aug 2017 14:22:13 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-08-08T14:22:13Z</dc:date>
    <item>
      <title>Compare 2 tables and flag if the values match/don't match</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-2-tables-and-flag-if-the-values-match-don-t-match/m-p/1365444#M821111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Follow up on a recent question...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load * inline [&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;User, Salary&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A, 20&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;B, 10&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;C, 50&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load * inline [&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Username, Log Date&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;B, 12,6,2017&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;C, 5/4/2016&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want a new field, called UserType, that compares the two lists of Users. First list is Users, but second is Usernames, but I want when these values are the exact same. &lt;STRONG&gt;If in the first and second list, then call it UserType 'A'. If not in the second list, call it UserType 'B'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-2-tables-and-flag-if-the-values-match-don-t-match/m-p/1365444#M821111</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Compare 2 tables and flag if the values match/don't match</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-2-tables-and-flag-if-the-values-match-don-t-match/m-p/1365445#M821113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;A:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;Load&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;inline&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt; User, Salary, UserType&lt;BR /&gt; A, 20, A&lt;BR /&gt; B, 10, A&lt;BR /&gt; C, 50, A&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Inner&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;join&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;BR /&gt; B:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;Load&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;inline&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt; User, Log Date&lt;BR /&gt; B, 12,6,2017&lt;BR /&gt; C, 5/4/2016&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;noconcatenate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&amp;nbsp; B1:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;Load&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;inline&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt; User, Log Date&lt;BR /&gt; B, 12,6,2017&lt;BR /&gt; C, 5/4/2016&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt;&amp;nbsp; A1:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;Load&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;inline&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt; User, Salary, UserType&lt;BR /&gt; A, 20, B&lt;BR /&gt; B, 10, B&lt;BR /&gt; C, 50, B&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Where&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;not&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Exists&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;User&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;);&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;drop&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Table&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; B1; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2017 20:53:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-2-tables-and-flag-if-the-values-match-don-t-match/m-p/1365445#M821113</guid>
      <dc:creator>krishnacbe</dc:creator>
      <dc:date>2017-08-07T20:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: Compare 2 tables and flag if the values match/don't match</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-2-tables-and-flag-if-the-values-match-don-t-match/m-p/1365446#M821116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is your expected output? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2017 20:55:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-2-tables-and-flag-if-the-values-match-don-t-match/m-p/1365446#M821116</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-08-07T20:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: Compare 2 tables and flag if the values match/don't match</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-2-tables-and-flag-if-the-values-match-don-t-match/m-p/1365447#M821118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UserList: &lt;/P&gt;&lt;P&gt;Load * inline [&lt;/P&gt;&lt;P&gt;Username, Log Date&lt;/P&gt;&lt;P&gt;B, 12,6,2017&lt;/P&gt;&lt;P&gt;C, 5/4/2016&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;User:&lt;/P&gt;&lt;P&gt;Load * inline [&lt;/P&gt;&lt;P&gt;User, Salary&lt;/P&gt;&lt;P&gt;A, 20&lt;/P&gt;&lt;P&gt;B, 10&lt;/P&gt;&lt;P&gt;C, 50&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EmployeeName:&lt;/P&gt;&lt;P&gt;Load User as Employee, Salary, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(Exists(Username, User), 'A', 'B') AS GroupType &lt;/P&gt;&lt;P&gt;Resident User; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLES User, UserList;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2017 20:58:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-2-tables-and-flag-if-the-values-match-don-t-match/m-p/1365447#M821118</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-08-07T20:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: Compare 2 tables and flag if the values match/don't match</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-2-tables-and-flag-if-the-values-match-don-t-match/m-p/1365448#M821119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aaron,&lt;/P&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Users:&lt;/P&gt;&lt;P&gt;Load * inline [&lt;/P&gt;&lt;P&gt;User, Salary&lt;/P&gt;&lt;P&gt;A, 20&lt;/P&gt;&lt;P&gt;B, 10&lt;/P&gt;&lt;P&gt;C, 50&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UserNames:&lt;/P&gt;&lt;P&gt;Load * inline [&lt;/P&gt;&lt;P&gt;Username, Log Date&lt;/P&gt;&lt;P&gt;B, 12,6,2017&lt;/P&gt;&lt;P&gt;C, 5/4/2016&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AllUsers:&lt;/P&gt;&lt;P&gt;LOAD User as UserRef, 'A'&amp;nbsp; as UserType Resident Users;&lt;/P&gt;&lt;P&gt;LOAD Username as UserRef, 'B'&amp;nbsp; as UserType Resident UserNames Where not Exists(User,Username);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gives:&lt;/P&gt;&lt;TABLE bgcolor="#ffffff" border="1" cellpadding="2" cellspacing="0" style="font-size: 9pt;"&gt;&lt;TBODY&gt;&lt;TR bgcolor="#f5f5f5"&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;UserRef&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;UserType&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;A&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;A&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;B&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;A&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;C&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;A&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2017 21:12:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-2-tables-and-flag-if-the-values-match-don-t-match/m-p/1365448#M821119</guid>
      <dc:creator>effinty2112</dc:creator>
      <dc:date>2017-08-07T21:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: Compare 2 tables and flag if the values match/don't match</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-2-tables-and-flag-if-the-values-match-don-t-match/m-p/1365449#M821122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Users:&lt;/P&gt;&lt;P&gt;Load * inline [&lt;/P&gt;&lt;P&gt;User, Salary&lt;/P&gt;&lt;P&gt;A, 20&lt;/P&gt;&lt;P&gt;B, 10&lt;/P&gt;&lt;P&gt;C, 50&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left Join(Users)&lt;/P&gt;&lt;P&gt;LOAD Username as User,[Log Date],1 as Flag;&lt;/P&gt;&lt;P&gt;Load * inline [&lt;/P&gt;&lt;P&gt;Username, Log Date&lt;/P&gt;&lt;P&gt;B, 12/6/2017&lt;/P&gt;&lt;P&gt;C, 5/4/2016&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Final:&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Flag=1,'A','B') as UserType&lt;/P&gt;&lt;P&gt;Resident Users;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table Users;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/172777_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Aug 2017 10:23:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-2-tables-and-flag-if-the-values-match-don-t-match/m-p/1365449#M821122</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2017-08-08T10:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: Compare 2 tables and flag if the values match/don't match</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-2-tables-and-flag-if-the-values-match-don-t-match/m-p/1365450#M821124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Aug 2017 14:22:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-2-tables-and-flag-if-the-values-match-don-t-match/m-p/1365450#M821124</guid>
      <dc:creator />
      <dc:date>2017-08-08T14:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: Compare 2 tables and flag if the values match/don't match</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-2-tables-and-flag-if-the-values-match-don-t-match/m-p/1365451#M821127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Aug 2017 14:22:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-2-tables-and-flag-if-the-values-match-don-t-match/m-p/1365451#M821127</guid>
      <dc:creator />
      <dc:date>2017-08-08T14:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: Compare 2 tables and flag if the values match/don't match</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-2-tables-and-flag-if-the-values-match-don-t-match/m-p/1365452#M821129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Aug 2017 14:22:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-2-tables-and-flag-if-the-values-match-don-t-match/m-p/1365452#M821129</guid>
      <dc:creator />
      <dc:date>2017-08-08T14:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: Compare 2 tables and flag if the values match/don't match</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-2-tables-and-flag-if-the-values-match-don-t-match/m-p/1365453#M821131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Aug 2017 14:23:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-2-tables-and-flag-if-the-values-match-don-t-match/m-p/1365453#M821131</guid>
      <dc:creator />
      <dc:date>2017-08-08T14:23:14Z</dc:date>
    </item>
  </channel>
</rss>

