<?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: Create new field by matching other fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-new-field-by-matching-other-fields/m-p/289083#M1194677</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any way I can add the person's account number to the Application Extract, by matching the [Appl No] of the application and account extracts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because I need to determine how many people mad a purchase in the same month as they were approved, and if I have no account number in my application extract I don't know how to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please look at the second sheet of my file - I REALLY need help with this, I either have to add an account number to the application extract, or I need to add an application number to the transaction extracts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I will have to add transaction and application extracts for the last year (one per month) and I'm not sure how to do this, I don't know when to concatenate and when to join&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 May 2011 08:47:07 GMT</pubDate>
    <dc:creator>gerhardl</dc:creator>
    <dc:date>2011-05-11T08:47:07Z</dc:date>
    <item>
      <title>Create new field by matching other fields</title>
      <link>https://community.qlik.com/t5/QlikView/Create-new-field-by-matching-other-fields/m-p/289077#M1194671</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;Could someone please help me with the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following two extracts I want to use in QV:&lt;/P&gt;&lt;OL start="1"&gt;&lt;LI&gt;Application extract - has application number only&lt;/LI&gt;&lt;LI&gt;Account Extract - has application number AND account number.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to create an account number field in the Application Extract as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, if person A is [Application No] 123 in the application extract, I need it to match it to the [Application No] in the account extract. Then create a new field in the application extract called [Account No], and it must get this account number from the account extract. Does this makes sense?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not, read the rest please, but this might confuse even more:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 3 extracts I am using:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Application Extract - this has an application number&lt;/LI&gt;&lt;LI&gt;Account Extract - this has the application number AND an account number&lt;/LI&gt;&lt;LI&gt;Transaction extract - this has only the account number&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to determine (from the transaction extract) how many of the new accounts made a purchase in each month. The problem is that the transaction and the application extract do not have common fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, what I need to do (I think) is load all 3 extracts, then add a new field to the application extract which CREATES the person's account number, so I can match it to the account numbers in the transaction extract.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, example for Person A:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;In application extract - application number 123&lt;/LI&gt;&lt;LI&gt;In account extract - application number 123, account number 345&lt;/LI&gt;&lt;LI&gt;Transaction account - purchase by account number 345&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need the application extract to have a new field with account number 345 so I can match my applications to my transactions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gerhard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2011 06:45:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-new-field-by-matching-other-fields/m-p/289077#M1194671</guid>
      <dc:creator>gerhardl</dc:creator>
      <dc:date>2011-05-11T06:45:58Z</dc:date>
    </item>
    <item>
      <title>Create new field by matching other fields</title>
      <link>https://community.qlik.com/t5/QlikView/Create-new-field-by-matching-other-fields/m-p/289078#M1194672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Please look at a cut-down version of my script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;LOAD&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;[Appl No] as [Appl no], &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;C&gt;&lt;/C&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(txt, codepage is 1252, embedded labels, delimiter is '~', no quotes);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;STRONG&gt;concatenate LOAD&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/STRONG&gt; [Appl No] as [Appl no],&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;C&gt;&lt;/C&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(txt, codepage is 1252, embedded labels, delimiter is '~', no quotes);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;LOAD &lt;/STRONG&gt;[Account no] as [Account No],&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Appl no],&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;[&lt;STRONG&gt;Account Extracts&lt;/STRONG&gt;\Daily_AccountExtract_A_30-APR-2011_01052011105615.txt]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(txt, codepage is 1252, embedded labels, delimiter is '~', no quotes, header is 1 lines)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;where &lt;/STRONG&gt;(exists([Appl no]));&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/EM&gt;*****UP UNTIL HERE IT WORKS FINE-- IT JUST LOADS THE 1070 new APPS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;LOAD &lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Account No],&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&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; [Transaction Type],&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&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; [Transaction Amount],&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[&lt;STRONG&gt;Transaction Extracts&lt;/STRONG&gt;\Monthly_TransactionExtract_A_01-MAR-2011_31-MAR-2011_01042011040204.txt]&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;(txt, codepage is 1252, embedded labels, delimiter is '~', no quotes, header is 1 lines)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;WHERE &lt;/STRONG&gt;(exists([Account No]));&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ***** HERE SOMETHING GOES WRONG IT NOW LOADS ALL 40 000 ACCOUNTS THAT MADE A PURCHASE - I JUST WANT PURCHASES BY THE 1070 NEW ACCOUNTS&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2011 07:20:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-new-field-by-matching-other-fields/m-p/289078#M1194672</guid>
      <dc:creator>gerhardl</dc:creator>
      <dc:date>2011-05-11T07:20:34Z</dc:date>
    </item>
    <item>
      <title>Create new field by matching other fields</title>
      <link>https://community.qlik.com/t5/QlikView/Create-new-field-by-matching-other-fields/m-p/289079#M1194673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use left join() with where exists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LEFT JOIN&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;LOAD &lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Account No],&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&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; [Transaction Type],&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&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; [Transaction Amount],&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[&lt;STRONG&gt;Transaction Extracts&lt;/STRONG&gt;\Monthly_TransactionExtract_A_01-MAR-2011_31-MAR-2011_01042011040204.txt]&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;(txt, codepage is 1252, embedded labels, delimiter is '~', no quotes, header is 1 lines)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;WHERE &lt;/STRONG&gt;exists([Account No]); &lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2011 07:45:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-new-field-by-matching-other-fields/m-p/289079#M1194673</guid>
      <dc:creator />
      <dc:date>2011-05-11T07:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: Create new field by matching other fields</title>
      <link>https://community.qlik.com/t5/QlikView/Create-new-field-by-matching-other-fields/m-p/289080#M1194674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;get an error message - field not found.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please have a look at my script (attached)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2011 08:07:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-new-field-by-matching-other-fields/m-p/289080#M1194674</guid>
      <dc:creator>gerhardl</dc:creator>
      <dc:date>2011-05-11T08:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: Create new field by matching other fields</title>
      <link>https://community.qlik.com/t5/QlikView/Create-new-field-by-matching-other-fields/m-p/289081#M1194675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you didn't changed last table's [Account No] name. Change it and reload again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2011 08:16:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-new-field-by-matching-other-fields/m-p/289081#M1194675</guid>
      <dc:creator />
      <dc:date>2011-05-11T08:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: Create new field by matching other fields</title>
      <link>https://community.qlik.com/t5/QlikView/Create-new-field-by-matching-other-fields/m-p/289082#M1194676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is driving me crazy - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It loads fine now, but for some reason it gets 1024 Account Numbers - there should only be 1017.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea why this is happening? I have NO experience with QV or anything resembling scripts, so please excuse my stupidity. If you can fix it, please send me the script in a text file (I have QV personal edition so won't be able to open a QV file).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2011 08:26:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-new-field-by-matching-other-fields/m-p/289082#M1194676</guid>
      <dc:creator>gerhardl</dc:creator>
      <dc:date>2011-05-11T08:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: Create new field by matching other fields</title>
      <link>https://community.qlik.com/t5/QlikView/Create-new-field-by-matching-other-fields/m-p/289083#M1194677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any way I can add the person's account number to the Application Extract, by matching the [Appl No] of the application and account extracts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because I need to determine how many people mad a purchase in the same month as they were approved, and if I have no account number in my application extract I don't know how to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please look at the second sheet of my file - I REALLY need help with this, I either have to add an account number to the application extract, or I need to add an application number to the transaction extracts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I will have to add transaction and application extracts for the last year (one per month) and I'm not sure how to do this, I don't know when to concatenate and when to join&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2011 08:47:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-new-field-by-matching-other-fields/m-p/289083#M1194677</guid>
      <dc:creator>gerhardl</dc:creator>
      <dc:date>2011-05-11T08:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: Create new field by matching other fields</title>
      <link>https://community.qlik.com/t5/QlikView/Create-new-field-by-matching-other-fields/m-p/289084#M1194678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok i'm too lazy to read long text cuz my english is not so good ^^&lt;/P&gt;&lt;P&gt;I try follow your data structure.&lt;/P&gt;&lt;P&gt;first you loaded some tables and concatenate them.&lt;/P&gt;&lt;P&gt;second you loaded 2 tables and joined them existing account number. &lt;/P&gt;&lt;P&gt;And now you want join these 2 tables right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let's say your concatenated tables table_1&lt;/P&gt;&lt;P&gt;and second table table_2.&lt;/P&gt;&lt;P&gt;after your script follow something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join (table_2)&lt;/P&gt;&lt;P&gt;load * resident table_1&lt;/P&gt;&lt;P&gt;where exists(appl_no);&lt;/P&gt;&lt;P&gt;drop table table_1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it's helped and you understand my poor English&lt;/P&gt;&lt;P&gt;Muncho&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2011 09:33:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-new-field-by-matching-other-fields/m-p/289084#M1194678</guid>
      <dc:creator />
      <dc:date>2011-05-11T09:33:37Z</dc:date>
    </item>
  </channel>
</rss>

