<?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 Add a calculated field from the script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Add-a-calculated-field-from-the-script/m-p/391839#M146157</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;In the image attached I have a table loaded in line called 'Tasas' where the field 'Tasa' is a currency USD rate per month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The table called 'APUNTES' has a field called 'SALDO' have amounts in local currency. This table is not loaded in line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I 'm just looking for the way to add to the table 'APUNTES' a field called 'USD' which would be USD = SALDO/Tasa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I wrote SALDO/Tasa AS USD, the script did not recognize 'Tasa' howevere it was previously loaded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An idea please.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="28456" class="jive-image-thumbnail jive-image" onclick="" alt="usd.png" src="https://community.qlik.com/legacyfs/online/28456_usd.png" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Jan 2013 17:33:18 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-01-03T17:33:18Z</dc:date>
    <item>
      <title>Add a calculated field from the script</title>
      <link>https://community.qlik.com/t5/QlikView/Add-a-calculated-field-from-the-script/m-p/391839#M146157</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;In the image attached I have a table loaded in line called 'Tasas' where the field 'Tasa' is a currency USD rate per month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The table called 'APUNTES' has a field called 'SALDO' have amounts in local currency. This table is not loaded in line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I 'm just looking for the way to add to the table 'APUNTES' a field called 'USD' which would be USD = SALDO/Tasa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I wrote SALDO/Tasa AS USD, the script did not recognize 'Tasa' howevere it was previously loaded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An idea please.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="28456" class="jive-image-thumbnail jive-image" onclick="" alt="usd.png" src="https://community.qlik.com/legacyfs/online/28456_usd.png" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2013 17:33:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-a-calculated-field-from-the-script/m-p/391839#M146157</guid>
      <dc:creator />
      <dc:date>2013-01-03T17:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: Add a calculated field from the script</title>
      <link>https://community.qlik.com/t5/QlikView/Add-a-calculated-field-from-the-script/m-p/391840#M146158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use a mapping table and applymap:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TasasMap:&lt;/P&gt;&lt;P&gt;mapping load * resident Tasas;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APUNTES:&lt;/P&gt;&lt;P&gt;Load *, applymap('TasasMap',DIV_MES_AÑO) * SALDO as USD&lt;/P&gt;&lt;P&gt;from ...etc;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2013 17:46:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-a-calculated-field-from-the-script/m-p/391840#M146158</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-01-03T17:46:47Z</dc:date>
    </item>
  </channel>
</rss>

