<?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: Re: Issues in the Comparision of two fields ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Issues-in-the-Comparision-of-two-fields/m-p/627359#M1090692</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go to edit script and write the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="xml" __jive_macro_name="code" class="_jivemacro_uid_14010367329817003 jive_text_macro jive_macro_code" jivemacro_uid="_14010367329817003"&gt;
&lt;P&gt;table1:&lt;/P&gt;
&lt;P&gt;load * Inline [&lt;/P&gt;
&lt;P&gt;KEY,CODE&lt;/P&gt;
&lt;P&gt;ABC,AB&lt;/P&gt;
&lt;P&gt;DEF,DE&lt;/P&gt;
&lt;P&gt;XYZ,XY&lt;/P&gt;
&lt;P&gt;YYY,YY];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;table2:&lt;/P&gt;
&lt;P&gt;Join load * Inline [&lt;/P&gt;
&lt;P&gt;KEY,FIELD1&lt;/P&gt;
&lt;P&gt;ABC,G-H-G-H-G-A-B-AB-ABC&lt;/P&gt;
&lt;P&gt;DEF,AB-AB-DE-EF&lt;/P&gt;
&lt;P&gt;XYZ,ABC-XY-QYZ&lt;/P&gt;
&lt;P&gt;YYY,TT];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;tabfinal:&lt;/P&gt;
&lt;P&gt;NoConcatenate load KEY,CODE,FIELD1, if(SubStringCount(FIELD1,CODE)&amp;gt;0,'PRESENT','ABSENT') as CODEFLAG Resident table1;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DROP Table table1;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;ASHFAQ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 25 May 2014 16:52:20 GMT</pubDate>
    <dc:creator>ashfaq_haseeb</dc:creator>
    <dc:date>2014-05-25T16:52:20Z</dc:date>
    <item>
      <title>Issues in the Comparision of two fields ?</title>
      <link>https://community.qlik.com/t5/QlikView/Issues-in-the-Comparision-of-two-fields/m-p/627353#M1090686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to Qlikview.&lt;/P&gt;&lt;P&gt;I have below questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to compare two fields - Field A and Field B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field A - Data - 0000012345&lt;/P&gt;&lt;P&gt;Field B - Data - 12345&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to make it field field B in 10 digit formate - i need to append leading zero to make it 10 digit&lt;/P&gt;&lt;P&gt;so, I can compare two fields data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have use Num (12345,'0000000000') AS Field B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i have Load script output it shows in 10 digit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, when I have joins two fields - it does not joins based on data matching between two fields.&lt;/P&gt;&lt;P&gt;so, can you please guide me what would be the issue ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;does is because two fields have different data types ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what would be data type of Num (12345,'0000000000') ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any assistance would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 May 2014 15:06:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issues-in-the-Comparision-of-two-fields/m-p/627353#M1090686</guid>
      <dc:creator />
      <dc:date>2014-05-25T15:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: Issues in the Comparision of two fields ?</title>
      <link>https://community.qlik.com/t5/QlikView/Issues-in-the-Comparision-of-two-fields/m-p/627354#M1090687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;may be like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;ASHFAQ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 May 2014 15:35:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issues-in-the-Comparision-of-two-fields/m-p/627354#M1090687</guid>
      <dc:creator>ashfaq_haseeb</dc:creator>
      <dc:date>2014-05-25T15:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: Issues in the Comparision of two fields ?</title>
      <link>https://community.qlik.com/t5/QlikView/Issues-in-the-Comparision-of-two-fields/m-p/627355#M1090688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you please suggest me solution of this ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 May 2014 15:37:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issues-in-the-Comparision-of-two-fields/m-p/627355#M1090688</guid>
      <dc:creator />
      <dc:date>2014-05-25T15:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: Issues in the Comparision of two fields ?</title>
      <link>https://community.qlik.com/t5/QlikView/Issues-in-the-Comparision-of-two-fields/m-p/627356#M1090689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;look at my attachment. It has solution in&amp;nbsp; it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;ASHFAQ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 May 2014 15:45:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issues-in-the-Comparision-of-two-fields/m-p/627356#M1090689</guid>
      <dc:creator>ashfaq_haseeb</dc:creator>
      <dc:date>2014-05-25T15:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: Issues in the Comparision of two fields ?</title>
      <link>https://community.qlik.com/t5/QlikView/Issues-in-the-Comparision-of-two-fields/m-p/627357#M1090690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am new to qlikview and new to this forum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you please guide me and provide me link of that thread or document ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 May 2014 16:24:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issues-in-the-Comparision-of-two-fields/m-p/627357#M1090690</guid>
      <dc:creator />
      <dc:date>2014-05-25T16:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: Issues in the Comparision of two fields ?</title>
      <link>https://community.qlik.com/t5/QlikView/Issues-in-the-Comparision-of-two-fields/m-p/627358#M1090691</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;or post your qlikview document&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// table with 0000012345&lt;/P&gt;&lt;P&gt;table1:&lt;/P&gt;&lt;P&gt;load * inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;f1,f2&lt;/P&gt;&lt;P&gt;0000012345,aaaaaaaa&lt;/P&gt;&lt;P&gt;0000067890,cccccccc&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// table with 12345 with num function to change 12345 in 0000012345&lt;/P&gt;&lt;P&gt;table2:&lt;/P&gt;&lt;P&gt;load &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; num(f1, '0000000000') as f1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; f3;&lt;/P&gt;&lt;P&gt;load * inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;f1,f3&lt;/P&gt;&lt;P&gt;12345,bbbbbbbb&lt;/P&gt;&lt;P&gt;67890,cccccccc&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// join table1 and table2 &lt;/P&gt;&lt;P&gt;left join (table1) load * Resident table2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop Table table2;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 May 2014 16:41:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issues-in-the-Comparision-of-two-fields/m-p/627358#M1090691</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-05-25T16:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Issues in the Comparision of two fields ?</title>
      <link>https://community.qlik.com/t5/QlikView/Issues-in-the-Comparision-of-two-fields/m-p/627359#M1090692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go to edit script and write the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="xml" __jive_macro_name="code" class="_jivemacro_uid_14010367329817003 jive_text_macro jive_macro_code" jivemacro_uid="_14010367329817003"&gt;
&lt;P&gt;table1:&lt;/P&gt;
&lt;P&gt;load * Inline [&lt;/P&gt;
&lt;P&gt;KEY,CODE&lt;/P&gt;
&lt;P&gt;ABC,AB&lt;/P&gt;
&lt;P&gt;DEF,DE&lt;/P&gt;
&lt;P&gt;XYZ,XY&lt;/P&gt;
&lt;P&gt;YYY,YY];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;table2:&lt;/P&gt;
&lt;P&gt;Join load * Inline [&lt;/P&gt;
&lt;P&gt;KEY,FIELD1&lt;/P&gt;
&lt;P&gt;ABC,G-H-G-H-G-A-B-AB-ABC&lt;/P&gt;
&lt;P&gt;DEF,AB-AB-DE-EF&lt;/P&gt;
&lt;P&gt;XYZ,ABC-XY-QYZ&lt;/P&gt;
&lt;P&gt;YYY,TT];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;tabfinal:&lt;/P&gt;
&lt;P&gt;NoConcatenate load KEY,CODE,FIELD1, if(SubStringCount(FIELD1,CODE)&amp;gt;0,'PRESENT','ABSENT') as CODEFLAG Resident table1;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DROP Table table1;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;ASHFAQ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 May 2014 16:52:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issues-in-the-Comparision-of-two-fields/m-p/627359#M1090692</guid>
      <dc:creator>ashfaq_haseeb</dc:creator>
      <dc:date>2014-05-25T16:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: Issues in the Comparision of two fields ?</title>
      <link>https://community.qlik.com/t5/QlikView/Issues-in-the-Comparision-of-two-fields/m-p/627360#M1090693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;table1:&lt;/P&gt;&lt;P&gt;Load *,&lt;/P&gt;&lt;P&gt;AutoNumberHash128(FieldA)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Key&lt;/P&gt;&lt;P&gt;from path;&lt;/P&gt;&lt;P&gt;join&lt;/P&gt;&lt;P&gt;//table 2:&lt;/P&gt;&lt;P&gt;load *,&lt;/P&gt;&lt;P&gt;autonumberhash128(fieldB)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Key&lt;/P&gt;&lt;P&gt;from path;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 May 2014 17:27:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issues-in-the-Comparision-of-two-fields/m-p/627360#M1090693</guid>
      <dc:creator>preminqlik</dc:creator>
      <dc:date>2014-05-25T17:27:35Z</dc:date>
    </item>
  </channel>
</rss>

