<?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 Scripting, adding a calculated field to a table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Scripting-adding-a-calculated-field-to-a-table/m-p/498894#M186380</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have this table:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QV1.JPG" class="jive-image" src="https://community.qlik.com/legacyfs/online/46337_QV1.JPG" /&gt;&lt;/P&gt;&lt;P&gt;in my scipt i want to add a new field: &lt;STRONG&gt;Formål&lt;/STRONG&gt;&lt;BR /&gt;if Formål_tmp has a value then use this value, else use the value in Bærer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QV2.JPG" class="jive-image" src="https://community.qlik.com/legacyfs/online/46338_QV2.JPG" /&gt;&lt;/P&gt;&lt;P&gt;But it doesnt work. The result is.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QV3.JPG" class="jive-image" src="https://community.qlik.com/legacyfs/online/46339_QV3.JPG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jesper&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Sep 2013 09:03:43 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-09-09T09:03:43Z</dc:date>
    <item>
      <title>Scripting, adding a calculated field to a table</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-adding-a-calculated-field-to-a-table/m-p/498894#M186380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have this table:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QV1.JPG" class="jive-image" src="https://community.qlik.com/legacyfs/online/46337_QV1.JPG" /&gt;&lt;/P&gt;&lt;P&gt;in my scipt i want to add a new field: &lt;STRONG&gt;Formål&lt;/STRONG&gt;&lt;BR /&gt;if Formål_tmp has a value then use this value, else use the value in Bærer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QV2.JPG" class="jive-image" src="https://community.qlik.com/legacyfs/online/46338_QV2.JPG" /&gt;&lt;/P&gt;&lt;P&gt;But it doesnt work. The result is.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QV3.JPG" class="jive-image" src="https://community.qlik.com/legacyfs/online/46339_QV3.JPG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jesper&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Sep 2013 09:03:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-adding-a-calculated-field-to-a-table/m-p/498894#M186380</guid>
      <dc:creator />
      <dc:date>2013-09-09T09:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting, adding a calculated field to a table</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-adding-a-calculated-field-to-a-table/m-p/498895#M186381</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;&lt;/P&gt;&lt;P&gt;If(Len(Trim(Formal_tmp))=0, Barrer, Formal_tmp) as Formal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Sep 2013 09:11:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-adding-a-calculated-field-to-a-table/m-p/498895#M186381</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-09-09T09:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting, adding a calculated field to a table</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-adding-a-calculated-field-to-a-table/m-p/498896#M186382</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;try adding the column dato to your resident load.&lt;/P&gt;&lt;P&gt;When you don't, you only get existing couples of (Baerer, Formal_tmp). The '-' (null) value here is an absence of value, not a real null-value in the Formal_tmp column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Brice&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT: Here is a great article concerning NULL values&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-3155"&gt;NULL handling in QlikView&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Sep 2013 09:11:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-adding-a-calculated-field-to-a-table/m-p/498896#M186382</guid>
      <dc:creator>Brice-SACCUCCI</dc:creator>
      <dc:date>2013-09-09T09:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting, adding a calculated field to a table</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-adding-a-calculated-field-to-a-table/m-p/498897#M186383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks but still not working.&lt;/P&gt;&lt;P&gt;Looks like there &lt;SPAN style="text-decoration: underline;"&gt;must&lt;/SPAN&gt; be a value in Formål_tmp in order for the join to work so I try to add a dummy value "&amp;lt;empty&amp;gt;" e.g. in stead&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Sep 2013 09:31:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-adding-a-calculated-field-to-a-table/m-p/498897#M186383</guid>
      <dc:creator />
      <dc:date>2013-09-09T09:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting, adding a calculated field to a table</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-adding-a-calculated-field-to-a-table/m-p/498898#M186384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if( len(subfield(date&amp;amp;'/'&amp;amp;formaltmp,'/',2))=0,baerer,formal_tm) a Formal in script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;Sunil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Sep 2013 09:37:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-adding-a-calculated-field-to-a-table/m-p/498898#M186384</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2013-09-09T09:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting, adding a calculated field to a table</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-adding-a-calculated-field-to-a-table/m-p/498899#M186385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks but same result&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Sep 2013 09:42:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-adding-a-calculated-field-to-a-table/m-p/498899#M186385</guid>
      <dc:creator />
      <dc:date>2013-09-09T09:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting, adding a calculated field to a table</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-adding-a-calculated-field-to-a-table/m-p/498900#M186386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jesper,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you try this yet:&lt;/P&gt;&lt;P&gt;If(Len(Formal_tmp)&amp;lt;1, Barrer, Formal_tmp) as Formal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sokkorn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Sep 2013 09:42:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-adding-a-calculated-field-to-a-table/m-p/498900#M186386</guid>
      <dc:creator>Sokkorn</dc:creator>
      <dc:date>2013-09-09T09:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting, adding a calculated field to a table</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-adding-a-calculated-field-to-a-table/m-p/498901#M186387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes and i didnt work. I even tried to just add a field: &lt;STRONG&gt;len(Formål_tmp)&lt;/STRONG&gt; but it came up as a null value&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Sep 2013 09:45:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-adding-a-calculated-field-to-a-table/m-p/498901#M186387</guid>
      <dc:creator />
      <dc:date>2013-09-09T09:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting, adding a calculated field to a table</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-adding-a-calculated-field-to-a-table/m-p/498902#M186388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your join key is Formal_tmp, it would not work. Because the NULL value can't be referred to take part in join. Rather you try to put this section(IF()..) of code in the earlier table(bugdetposter). &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Sep 2013 09:45:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-adding-a-calculated-field-to-a-table/m-p/498902#M186388</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-09-09T09:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting, adding a calculated field to a table</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-adding-a-calculated-field-to-a-table/m-p/498903#M186389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;my thought excactly. Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Sep 2013 09:47:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-adding-a-calculated-field-to-a-table/m-p/498903#M186389</guid>
      <dc:creator />
      <dc:date>2013-09-09T09:47:49Z</dc:date>
    </item>
  </channel>
</rss>

