<?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: Issue with calculated field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Issue-with-calculated-field/m-p/1053996#M944233</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Petter. Do you have any ideas how I could get round this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using a 'Noconcatenate load', but that just destroyed my reload - presuming it overwhelmed the system with synthetic keys. Same happened when I tried to rename the calculated fields to (e.g.) Points_Difference_13, Points_Difference_14...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Jan 2016 14:25:22 GMT</pubDate>
    <dc:creator>jessica_webb</dc:creator>
    <dc:date>2016-01-08T14:25:22Z</dc:date>
    <item>
      <title>Issue with calculated field</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-calculated-field/m-p/1053994#M944231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have four tables of data in my script. Each table has all identical fields. &lt;/P&gt;&lt;P&gt;The tables/fields are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Table 2012-13]:&lt;/P&gt;&lt;P&gt;LOAD UPN,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Points,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #ff0000;"&gt; '' as Points_Difference&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;FROM...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Table 2013-14]:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD UPN,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Points,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #ff0000; font-size: 13.3333px;"&gt;Points - Lookup('Points','UPN',UPN, 'Table 2012-13') as Points_Difference&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;FROM...&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Table 2014-15]:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD UPN,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Points,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #ff0000; font-size: 13.3333px;"&gt;Points - Lookup('Points','UPN',UPN, 'Table 2013-14') as Points_Difference&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;FROM...&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Table 2015-16]:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD UPN,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Points,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #ff0000; font-size: 13.3333px;"&gt;Points - Lookup('Points','UPN',UPN, 'Table 2014-15') as Points_Difference&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;FROM...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In each table, I am trying to create a calculated field that gives me the difference between points for each UPN, each year. &lt;/P&gt;&lt;P&gt;These are the bits of script in red.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reload etc works fine, however, when I create a table to show me the points table for each 'Year', I get the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE bgcolor="#ffffff" border="1" cellpadding="2" cellspacing="0" style="font-size: 9pt;"&gt;&lt;TBODY&gt;&lt;TR bgcolor="#f5f5f5"&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt; Year&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Points&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Points_Difference&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;2012/13&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;27&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&amp;nbsp; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;2013/14&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;30&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;3&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;2014/15&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;32&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;3&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2015/16&lt;/TD&gt;&lt;TD&gt;35&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems the lookup works in &lt;SPAN style="font-size: 13.3333px;"&gt;[Table 2012-13], as I specified '' as the value there. It's also working in &lt;SPAN style="font-size: 13.3333px;"&gt;[Table 2013-13] (difference between 30 and 27 shows as 3). But then it seems to stick at that value, and the calculation doesn't work for the remaining two tables. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is anyone able to see where I've gone wrong? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;BR /&gt;Jess&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2016 13:57:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-calculated-field/m-p/1053994#M944231</guid>
      <dc:creator>jessica_webb</dc:creator>
      <dc:date>2016-01-08T13:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with calculated field</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-calculated-field/m-p/1053995#M944232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since these four tables are getting auto concatenated the tables are not four but just one in spite of the load script's table.labels.... So doing lookup to tables that are never materialised will fail.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2016 14:18:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-calculated-field/m-p/1053995#M944232</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2016-01-08T14:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with calculated field</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-calculated-field/m-p/1053996#M944233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Petter. Do you have any ideas how I could get round this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using a 'Noconcatenate load', but that just destroyed my reload - presuming it overwhelmed the system with synthetic keys. Same happened when I tried to rename the calculated fields to (e.g.) Points_Difference_13, Points_Difference_14...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2016 14:25:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-calculated-field/m-p/1053996#M944233</guid>
      <dc:creator>jessica_webb</dc:creator>
      <dc:date>2016-01-08T14:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with calculated field</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-calculated-field/m-p/1053997#M944234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I might have some ideas... but being online only with my Samsung Note 4 at the moment I will have to get back to you later today. Maybe.some others pitch in before I have time... &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2016 14:29:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-calculated-field/m-p/1053997#M944234</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2016-01-08T14:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with calculated field</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-calculated-field/m-p/1053998#M944235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jessica,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's a simple solution. &lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;I let you replace LOAD INLINE by your LOAD FROM ...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&lt;EM&gt;//[Table 2012-13]:&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;T_Data&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; UPN, Year, Points&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 2012, 10&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, 2012, 11&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, 2012, 12&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4, 2012, 13&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&lt;EM&gt;//[Table 2013-14]:&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; UPN, Year, Points&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 2013, 11&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, 2013, 12&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, 2013, 13&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4, 2013, 14&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&lt;EM&gt;//[Table 2014-15]:&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; UPN, Year, Points&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 2014, 13&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, 2014, 14&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, 2014, 15&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4, 2014, 16&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&lt;EM&gt;//[Table 2015-16]:&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; UPN, Year, Points&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 2015, 16&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, 2015, 17&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, 2015, 18&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4, 2015, 19&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&lt;EM&gt;//Associate previous Point to current Points &lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;left join (&lt;STRONG style="font-size: 13.3333px;"&gt;T_Data&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;load UPN,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Year + 1 as Year,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Points as PreviousPoints&lt;/P&gt;&lt;P&gt;resident &lt;STRONG style="font-size: 13.3333px;"&gt;T_Data&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&lt;EM&gt;//Do calculation of Points difference&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;left join (&lt;STRONG style="font-size: 13.3333px;"&gt;T_Data&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;load UPN,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Year,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Points - PreviousPoints as Points_Difference&lt;/P&gt;&lt;P&gt;resident &lt;STRONG style="font-size: 13.3333px;"&gt;T_Data&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #99cc00;"&gt;//Remove previous Points value&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;DROP Field PreviousPoints;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2016 15:12:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-calculated-field/m-p/1053998#M944235</guid>
      <dc:creator>sfatoux72</dc:creator>
      <dc:date>2016-01-08T15:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with calculated field</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-calculated-field/m-p/1053999#M944236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sébastien, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much, that seems to be working perfectly. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Very much appreciated! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best wishes,&lt;/P&gt;&lt;P&gt;Jess&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2016 15:32:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-calculated-field/m-p/1053999#M944236</guid>
      <dc:creator>jessica_webb</dc:creator>
      <dc:date>2016-01-08T15:32:44Z</dc:date>
    </item>
  </channel>
</rss>

