<?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 How can I re-reference a custom fields in the script? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-can-I-re-reference-a-custom-fields-in-the-script/m-p/190008#M52665</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can do two loads, one with T1 and T2 (according to your example) and the second with T3. But anyway you may loop through all possible values and tables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Step1:LOAD If(Condition) AS T1, If(Condition2) AS T2FROM Source; Step2:LOAD *, If(T1 = 'True' AND T2 = 'True', 'True', 'False') AS T3RESIDENT Step1; DROP TABLE Step1; // needed to avoid unwanted synthetic keys&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Anyway, looping in may experience is always slower than creating those 7 fields in one load.&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Mar 2011 11:36:49 GMT</pubDate>
    <dc:creator>Miguel_Angel_Baeyens</dc:creator>
    <dc:date>2011-03-30T11:36:49Z</dc:date>
    <item>
      <title>How can I re-reference a custom fields in the script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-re-reference-a-custom-fields-in-the-script/m-p/190005#M52662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have two custom fields created in my script;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if( blah blah, 'True','False') as T1&lt;/P&gt;&lt;P&gt;if(blah blah, 'True','False') as T2&lt;/P&gt;&lt;P&gt;How would I create a third field such as:&lt;/P&gt;&lt;P&gt;If(T1 = 'True' and T2 = 'True, 'True', 'False') as T3&lt;/P&gt;&lt;P&gt;At the moment it's erroring as I don't think I can use a custom field in another custom field??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!!!! Mike&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2011 11:10:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-re-reference-a-custom-fields-in-the-script/m-p/190005#M52662</guid>
      <dc:creator />
      <dc:date>2011-03-30T11:10:05Z</dc:date>
    </item>
    <item>
      <title>How can I re-reference a custom fields in the script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-re-reference-a-custom-fields-in-the-script/m-p/190006#M52663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mike,&lt;/P&gt;&lt;P&gt;Since these values are in the same record, use the same conditionals for t3, like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;If(If(blah blah, 'True', 'False') = 'True' AND If(blah blah, 'True', 'False') = 'True', 'True', 'False') AS T3&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2011 11:22:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-re-reference-a-custom-fields-in-the-script/m-p/190006#M52663</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-03-30T11:22:26Z</dc:date>
    </item>
    <item>
      <title>How can I re-reference a custom fields in the script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-re-reference-a-custom-fields-in-the-script/m-p/190007#M52664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for that... I considered that option but actually I have T1 - T7 and the if statements are complex so didn't really want to duplicate... would be tricky to edit down the line.&lt;/P&gt;&lt;P&gt;If no other option then that's what I'll do &lt;IMG alt="Smile" src="http://community.qlik.com/emoticons/emotion-1.gif" /&gt; but wondering if there is anything tidier? &lt;IMG alt="Confused" src="http://community.qlik.com/emoticons/emotion-42.gif" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2011 11:29:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-re-reference-a-custom-fields-in-the-script/m-p/190007#M52664</guid>
      <dc:creator />
      <dc:date>2011-03-30T11:29:24Z</dc:date>
    </item>
    <item>
      <title>How can I re-reference a custom fields in the script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-re-reference-a-custom-fields-in-the-script/m-p/190008#M52665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can do two loads, one with T1 and T2 (according to your example) and the second with T3. But anyway you may loop through all possible values and tables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Step1:LOAD If(Condition) AS T1, If(Condition2) AS T2FROM Source; Step2:LOAD *, If(T1 = 'True' AND T2 = 'True', 'True', 'False') AS T3RESIDENT Step1; DROP TABLE Step1; // needed to avoid unwanted synthetic keys&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Anyway, looping in may experience is always slower than creating those 7 fields in one load.&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2011 11:36:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-re-reference-a-custom-fields-in-the-script/m-p/190008#M52665</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-03-30T11:36:49Z</dc:date>
    </item>
    <item>
      <title>How can I re-reference a custom fields in the script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-re-reference-a-custom-fields-in-the-script/m-p/190009#M52666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the single load you cannot use the custom fields to define another new field.&lt;/P&gt;&lt;P&gt;To do that, you could use a preceding load, which would be the best in this case:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;If(T1='True' and T2='True','True','False') as T3,&lt;/P&gt;&lt;P&gt;*; //Notice how we don't specify the Tablename in the preceding load....&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;if( blah blah, 'True','False') as T1,&lt;/P&gt;&lt;P&gt;if(blah blah, 'True','False') as T2&lt;/P&gt;&lt;P&gt;Resident BlahTable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2011 11:42:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-re-reference-a-custom-fields-in-the-script/m-p/190009#M52666</guid>
      <dc:creator>vidyut</dc:creator>
      <dc:date>2011-03-30T11:42:22Z</dc:date>
    </item>
  </channel>
</rss>

