<?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: Recalculate field in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Recalculate-field-in-script/m-p/553527#M690613</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you'll need at least one identifying column to match the row for the join:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEFT JOIN (MyTable)&lt;/P&gt;&lt;P&gt;LOAD ID, &amp;lt;Expression&amp;gt; as Exp&lt;/P&gt;&lt;P&gt;Resident MyTable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Sep 2013 20:39:08 GMT</pubDate>
    <dc:creator>rbecher</dc:creator>
    <dc:date>2013-09-23T20:39:08Z</dc:date>
    <item>
      <title>Recalculate field in script</title>
      <link>https://community.qlik.com/t5/QlikView/Recalculate-field-in-script/m-p/553526#M690612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At the end of my script I want to recalculate the [Exp hrs].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In one LOAD-statement I'm adding the fields [%Date], [Actual Hours], [Exp hrs] and [Calculation Method] to [MyTable]&lt;/P&gt;&lt;P&gt;I'm using a JOIN to add the field [Target Prod]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now depending on the Calculation Method the Expected hours need to be recalculated.&lt;/P&gt;&lt;P&gt;My join doesn't recalculate all the records in [MyTable]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// use calculation method to recalculate [Exp hrs]&lt;/P&gt;&lt;P&gt;LEFT JOIN ([MyTable])&lt;/P&gt;&lt;P&gt;LOAD If ([Calculation Method]=2, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF ([Actual Hours]&amp;gt;0, [Target Prod],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Exp hrs])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as [Exp Hours]&lt;/P&gt;&lt;P&gt;RESIDENT MyTable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Fields [Exp hrs];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone tell me how I'm supposed to recalculate all records?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Sep 2013 08:47:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Recalculate-field-in-script/m-p/553526#M690612</guid>
      <dc:creator />
      <dc:date>2013-09-23T08:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: Recalculate field in script</title>
      <link>https://community.qlik.com/t5/QlikView/Recalculate-field-in-script/m-p/553527#M690613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you'll need at least one identifying column to match the row for the join:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEFT JOIN (MyTable)&lt;/P&gt;&lt;P&gt;LOAD ID, &amp;lt;Expression&amp;gt; as Exp&lt;/P&gt;&lt;P&gt;Resident MyTable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Sep 2013 20:39:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Recalculate-field-in-script/m-p/553527#M690613</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2013-09-23T20:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: Recalculate field in script</title>
      <link>https://community.qlik.com/t5/QlikView/Recalculate-field-in-script/m-p/553528#M690614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why JOIN?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NewTable:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; *,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; If ([Calculation Method]=2,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF ([Actual Hours]&amp;gt;0, [Target Prod],&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0),&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Exp hrs])&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as [Exp Hours]&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;resident &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;MyTable&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Drop table MyTable&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Sep 2013 21:11:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Recalculate-field-in-script/m-p/553528#M690614</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2013-09-23T21:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: Recalculate field in script</title>
      <link>https://community.qlik.com/t5/QlikView/Recalculate-field-in-script/m-p/553529#M690615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why Join: if this is a large fact table it could have serious memory implications..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Sep 2013 15:17:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Recalculate-field-in-script/m-p/553529#M690615</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2013-09-24T15:17:10Z</dc:date>
    </item>
  </channel>
</rss>

