<?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 2 Fields ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/compare-2-Fields/m-p/236952#M88075</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry my fault,&lt;BR /&gt;&lt;BR /&gt;i have wrong expressed myself.&lt;BR /&gt;But, in the meantime, I have understood it.&lt;BR /&gt;&lt;BR /&gt;Many thanks once more!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 May 2010 20:33:07 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-05-10T20:33:07Z</dc:date>
    <item>
      <title>compare 2 Fields ?</title>
      <link>https://community.qlik.com/t5/QlikView/compare-2-Fields/m-p/236946#M88069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Together,&lt;BR /&gt;&lt;BR /&gt;I am slowly go crazy !&lt;BR /&gt;I have two fields x and y with these values:&lt;BR /&gt;&lt;BR /&gt;Field x = {a, b, c, d, e,f,g}&lt;BR /&gt;&lt;BR /&gt;Field y = {b, c, d}.&lt;BR /&gt;&lt;BR /&gt;I would like to generate a new field z from these both fields where only the values are included which seem in both fields x, y.&lt;BR /&gt;&lt;BR /&gt;Then this would be a new field z = {b, c, d}.&lt;BR /&gt;&lt;BR /&gt;How have i code this in script?&lt;BR /&gt;&lt;BR /&gt;Thank you very much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 May 2010 18:42:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-2-Fields/m-p/236946#M88069</guid>
      <dc:creator />
      <dc:date>2010-05-10T18:42:36Z</dc:date>
    </item>
    <item>
      <title>compare 2 Fields ?</title>
      <link>https://community.qlik.com/t5/QlikView/compare-2-Fields/m-p/236947#M88070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;Here a script which create a new table with a field z which contains the duplicate value&lt;/P&gt;&lt;P&gt;table:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt; x&lt;BR /&gt; a&lt;BR /&gt; b&lt;BR /&gt; c&lt;BR /&gt; d&lt;BR /&gt; e&lt;BR /&gt; f&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;Concatenate LOAD * INLINE [&lt;BR /&gt; x&lt;BR /&gt; b&lt;BR /&gt; c&lt;BR /&gt; d&lt;BR /&gt; ];&lt;BR /&gt;&lt;BR /&gt;compte:&lt;BR /&gt;Load x , count(x) as n&lt;BR /&gt;resident table&lt;BR /&gt;group by x ;&lt;BR /&gt;&lt;BR /&gt;Duplicate:&lt;BR /&gt;Load x as z&lt;BR /&gt;resident compte&lt;BR /&gt;where n &amp;gt; 1 ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 May 2010 19:38:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-2-Fields/m-p/236947#M88070</guid>
      <dc:creator />
      <dc:date>2010-05-10T19:38:21Z</dc:date>
    </item>
    <item>
      <title>compare 2 Fields ?</title>
      <link>https://community.qlik.com/t5/QlikView/compare-2-Fields/m-p/236948#M88071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TableZ:&lt;BR /&gt;LOAD fieldvalue('X',iterno()) as Z&lt;BR /&gt;AUTOGENERATE 1&lt;BR /&gt;WHILE len(fieldvalue('X',iterno()))&lt;BR /&gt;;&lt;BR /&gt;INNER JOIN (TableZ)&lt;BR /&gt;LOAD fieldvalue('Y',iterno()) as Z&lt;BR /&gt;AUTOGENERATE 1&lt;BR /&gt;WHILE len(fieldvalue('Y',iterno()))&lt;BR /&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 May 2010 19:48:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-2-Fields/m-p/236948#M88071</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-05-10T19:48:39Z</dc:date>
    </item>
    <item>
      <title>compare 2 Fields ?</title>
      <link>https://community.qlik.com/t5/QlikView/compare-2-Fields/m-p/236949#M88072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John Witherspoon,&lt;/P&gt;&lt;P&gt;you are my hero &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank you very match &lt;IMG alt="Big Smile" src="http://community.qlik.com/emoticons/emotion-2.gif" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 May 2010 19:59:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-2-Fields/m-p/236949#M88072</guid>
      <dc:creator />
      <dc:date>2010-05-10T19:59:40Z</dc:date>
    </item>
    <item>
      <title>compare 2 Fields ?</title>
      <link>https://community.qlik.com/t5/QlikView/compare-2-Fields/m-p/236950#M88073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi J.W,&lt;/P&gt;&lt;P&gt;Once more thank you very much!&lt;BR /&gt;&lt;BR /&gt;If you can also show me how I provide a key in the generated z table.&lt;BR /&gt;I thought of something like that:&lt;/P&gt;&lt;P&gt;z as key1&lt;BR /&gt; and in another field z2 as key1.&lt;BR /&gt;&lt;BR /&gt;Over again thank you very much!&lt;BR /&gt;&lt;BR /&gt;Many greetings,&lt;BR /&gt;honour&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 May 2010 20:18:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-2-Fields/m-p/236950#M88073</guid>
      <dc:creator />
      <dc:date>2010-05-10T20:18:38Z</dc:date>
    </item>
    <item>
      <title>compare 2 Fields ?</title>
      <link>https://community.qlik.com/t5/QlikView/compare-2-Fields/m-p/236951#M88074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I don't understand what you're asking for.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 May 2010 20:22:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-2-Fields/m-p/236951#M88074</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-05-10T20:22:05Z</dc:date>
    </item>
    <item>
      <title>compare 2 Fields ?</title>
      <link>https://community.qlik.com/t5/QlikView/compare-2-Fields/m-p/236952#M88075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry my fault,&lt;BR /&gt;&lt;BR /&gt;i have wrong expressed myself.&lt;BR /&gt;But, in the meantime, I have understood it.&lt;BR /&gt;&lt;BR /&gt;Many thanks once more!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 May 2010 20:33:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-2-Fields/m-p/236952#M88075</guid>
      <dc:creator />
      <dc:date>2010-05-10T20:33:07Z</dc:date>
    </item>
    <item>
      <title>compare 2 Fields ?</title>
      <link>https://community.qlik.com/t5/QlikView/compare-2-Fields/m-p/236953#M88076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a table named Customers, there is a column in it named Code. The thing that i want to do is match the column of the table in Match() function. We mostly do as follows:&lt;/P&gt;&lt;P&gt;TempCustomers:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Code,&lt;/P&gt;&lt;P&gt;If (Match(Code, '1','3','2','4','5','6','7','8','9','10') as XYZ&lt;/P&gt;&lt;P&gt;Resident Customers;&lt;/P&gt;&lt;P&gt;What I need is i want to have all values passed from match write a Load Statement where it is written above in If (Match(Code, Load Statement) as XYZ or If (Match(Code, Customers) as XYZ&lt;/P&gt;&lt;P&gt;My senior says its possible, I dont think so it is? I dont know what the hell he is talking about.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Khalid&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jun 2010 10:21:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-2-Fields/m-p/236953#M88076</guid>
      <dc:creator />
      <dc:date>2010-06-17T10:21:50Z</dc:date>
    </item>
    <item>
      <title>compare 2 Fields ?</title>
      <link>https://community.qlik.com/t5/QlikView/compare-2-Fields/m-p/236954#M88077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To see if I understand what you want...&lt;/P&gt;&lt;P&gt;You're loading a list of codes in a load statement. Then in another load statement, if the code for that row is in the previously-loaded list, you want to assign one value, like 'in list', and if not, another value, like 'not in list'. Is that correct? So you want something like this?&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;[Code List]:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Code&lt;BR /&gt;1&lt;BR /&gt;2&lt;BR /&gt;3&lt;BR /&gt;4&lt;BR /&gt;];&lt;BR /&gt;[Real Table]:&lt;BR /&gt;LOAD&lt;BR /&gt; Something&lt;BR /&gt;,SomethingElse&lt;BR /&gt;,if(Code is in the Code List table,'in list','not in list') as XYZ&lt;BR /&gt;...&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;If so, then yes, I'm already thinking of two solutions, both pretty simple. Neither uses match(), though. Oh, now I'm thinking of a third solution using match(), but it's signifiantly more complicated than the other two. However, if your senior is telling you that it's possible, but NOT telling you how to do it, does he or she want you to discover a solution for yourself? Or should I just tell you the solutions I'm thinking of?&lt;/P&gt;&lt;P&gt;Edit: Posted five or six solutions in the other thread where you posted essentially the same question:&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/forums/p/27167/117122.aspx#117122"&gt;http://community.qlik.com/forums/p/27167/117122.aspx#117122&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jun 2010 18:16:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-2-Fields/m-p/236954#M88077</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-06-17T18:16:07Z</dc:date>
    </item>
  </channel>
</rss>

