<?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: Using a fieldname that has been created in the loadscript in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-a-fieldname-that-has-been-created-in-the-loadscript/m-p/313545#M1178275</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I may understand this wrongly but do you mean you get the erro message when you are applying the next load statement???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left Join (Instructions)&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;ID,&lt;/P&gt;&lt;P&gt;If ([Total Price] &amp;gt; 5000, 'Large Order', 'Small Order') as [Order Size]&lt;/P&gt;&lt;P&gt;resident Instructions;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;because this should work...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Feb 2012 13:15:01 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-02-23T13:15:01Z</dc:date>
    <item>
      <title>Using a fieldname that has been created in the loadscript</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-fieldname-that-has-been-created-in-the-loadscript/m-p/313544#M1178273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a simple script that loads some data from a resident table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instructions:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [ID] as [ID],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Name] as [Name],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Cost] * [Markup] * [VAT] as [Total Price]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Resident DataLoad;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inside the script I want to interact with the [Total Price] field to determine some other calculations i.e.&lt;/P&gt;&lt;P&gt;If ([Total Price] &amp;gt; 5000, 'Large Order', 'Small Order') as [Order Size]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But since the [Total Price] field is being created in the script I can't access it, when I reference it as in the example above I get an error that [Total Price] can't be found&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this example I could do something like:&lt;/P&gt;&lt;P&gt;If ([Cost] * [Markup] * [VAT] &amp;gt; 5000, 'Large Order', 'Small Order') as [Order Size]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but that seems redundant and in the scenarios I have the situation is considerably more complex than the example above&lt;/P&gt;&lt;P&gt;﻿&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;JP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2012 13:06:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-fieldname-that-has-been-created-in-the-loadscript/m-p/313544#M1178273</guid>
      <dc:creator />
      <dc:date>2012-02-23T13:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: Using a fieldname that has been created in the loadscript</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-fieldname-that-has-been-created-in-the-loadscript/m-p/313545#M1178275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I may understand this wrongly but do you mean you get the erro message when you are applying the next load statement???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left Join (Instructions)&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;ID,&lt;/P&gt;&lt;P&gt;If ([Total Price] &amp;gt; 5000, 'Large Order', 'Small Order') as [Order Size]&lt;/P&gt;&lt;P&gt;resident Instructions;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;because this should work...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2012 13:15:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-fieldname-that-has-been-created-in-the-loadscript/m-p/313545#M1178275</guid>
      <dc:creator />
      <dc:date>2012-02-23T13:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: Using a fieldname that has been created in the loadscript</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-fieldname-that-has-been-created-in-the-loadscript/m-p/313546#M1178277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you could podt your script so that we can see what you are trying to achieve that would be great ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2012 13:18:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-fieldname-that-has-been-created-in-the-loadscript/m-p/313546#M1178277</guid>
      <dc:creator />
      <dc:date>2012-02-23T13:18:06Z</dc:date>
    </item>
    <item>
      <title>Using a fieldname that has been created in the loadscript</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-fieldname-that-has-been-created-in-the-loadscript/m-p/313547#M1178279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Ali&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That works perfectly. I was trying to access the field in the original load statement rather than running a join like you suggested.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;JP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2012 13:28:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-fieldname-that-has-been-created-in-the-loadscript/m-p/313547#M1178279</guid>
      <dc:creator />
      <dc:date>2012-02-23T13:28:53Z</dc:date>
    </item>
    <item>
      <title>Using a fieldname that has been created in the loadscript</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-fieldname-that-has-been-created-in-the-loadscript/m-p/313548#M1178281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear,&lt;/P&gt;&lt;P&gt;jp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The filed [Total Price]&amp;nbsp; which you created In the instructions Table is created once the table is loaded&lt;/P&gt;&lt;P&gt;before loading the table if you perform any opertion on [Total Price] that one will give error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so you need to add another table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TotalPriceTable:&lt;/P&gt;&lt;P&gt;load * inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;[ID] as [ID],&lt;/P&gt;&lt;P&gt;If ([Total Price] &amp;gt; 5000, 'Large Order', 'Small Order') as [Order Size]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resident Instructions;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2012 13:34:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-fieldname-that-has-been-created-in-the-loadscript/m-p/313548#M1178281</guid>
      <dc:creator>mdmukramali</dc:creator>
      <dc:date>2012-02-23T13:34:32Z</dc:date>
    </item>
  </channel>
</rss>

