<?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 Creating a field in the script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Creating-a-field-in-the-script/m-p/493805#M1142784</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are trying to create a field name "PREMIUM" in our script using the following formula:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (AmountType = 'P' , SignedAmount) as PREMIUM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When reloading the script there are no errors however when trying to load the field PREMIUM in a table or chart this field is not showing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Sep 2013 12:44:28 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-09-06T12:44:28Z</dc:date>
    <item>
      <title>Creating a field in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-field-in-the-script/m-p/493805#M1142784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are trying to create a field name "PREMIUM" in our script using the following formula:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (AmountType = 'P' , SignedAmount) as PREMIUM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When reloading the script there are no errors however when trying to load the field PREMIUM in a table or chart this field is not showing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 12:44:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-field-in-the-script/m-p/493805#M1142784</guid>
      <dc:creator />
      <dc:date>2013-09-06T12:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a field in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-field-in-the-script/m-p/493806#M1142785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks fine, please check the data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 13:00:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-field-in-the-script/m-p/493806#M1142785</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-09-06T13:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a field in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-field-in-the-script/m-p/493807#M1142786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Check if your logical statement is correct by adding two more columns.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;LOAD &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[whaterverfields your are using],&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; if (AmountType = 'P' , SignedAmount) as PREMIUM,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; &lt;STRONG&gt;if (AmountType = 'P' , SignedAmount, -1 ) as PREMIUM_TEST,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;AmountType = 'P' as _AmountIsP&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Resident &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; [Your source]&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 13:14:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-field-in-the-script/m-p/493807#M1142786</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2013-09-06T13:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a field in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-field-in-the-script/m-p/493808#M1142787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After you load the script, try to see whether the data is properly populated via Table Viewer (CTRL+T) .&lt;/P&gt;&lt;P&gt;If the field and the data is okay, then what's your expression look like?&lt;/P&gt;&lt;P&gt;Try: Sum(PREMIUM)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Anton&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Sep 2013 15:28:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-field-in-the-script/m-p/493808#M1142787</guid>
      <dc:creator>awqvuserneo</dc:creator>
      <dc:date>2013-09-07T15:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a field in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-field-in-the-script/m-p/493809#M1142789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all for you responses.&amp;nbsp; It's now working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Sep 2013 06:42:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-field-in-the-script/m-p/493809#M1142789</guid>
      <dc:creator />
      <dc:date>2013-09-11T06:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a field in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-field-in-the-script/m-p/493810#M1142791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds great. &lt;/P&gt;&lt;P&gt;A tip: you should mark the question&amp;nbsp; as answered. So that future problem seekers will know it is solved and future problem solvers don't need to open it for trying to help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Sep 2013 07:04:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-field-in-the-script/m-p/493810#M1142791</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2013-09-11T07:04:42Z</dc:date>
    </item>
  </channel>
</rss>

