<?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 Adding a calculated field to an existing table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Adding-a-calculated-field-to-an-existing-table/m-p/1375365#M817921</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;I'm new on QV and trying to add a sales revenue List box.&lt;/P&gt;&lt;P&gt;The sales revenue is &lt;SPAN style="font-size: 10pt;"&gt;a sum of &lt;/SPAN&gt;salesprice&lt;SPAN style="font-size: 10pt;"&gt; in products table and &lt;/SPAN&gt;quantity&lt;SPAN style="font-size: 10pt;"&gt; in sales table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I figured I can add to the sales table a sales revenue field. in the script but I don't know how to do that.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll appreciate any help on the subject:)&lt;/P&gt;&lt;P&gt;Thank you in advance &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>lianelon</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Adding a calculated field to an existing table</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-a-calculated-field-to-an-existing-table/m-p/1375365#M817921</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;I'm new on QV and trying to add a sales revenue List box.&lt;/P&gt;&lt;P&gt;The sales revenue is &lt;SPAN style="font-size: 10pt;"&gt;a sum of &lt;/SPAN&gt;salesprice&lt;SPAN style="font-size: 10pt;"&gt; in products table and &lt;/SPAN&gt;quantity&lt;SPAN style="font-size: 10pt;"&gt; in sales table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I figured I can add to the sales table a sales revenue field. in the script but I don't know how to do that.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll appreciate any help on the subject:)&lt;/P&gt;&lt;P&gt;Thank you in advance &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-a-calculated-field-to-an-existing-table/m-p/1375365#M817921</guid>
      <dc:creator>lianelon</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a calculated field to an existing table</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-a-calculated-field-to-an-existing-table/m-p/1375366#M817922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In script or in the UI?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have correctly loaded all tables, then the UI step is probably easiest. Create a straight table and add Product ID as dimension. Then add and expression like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= Salesprice * Sum(Quantity)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even though these fields are in different tables, QlikView will perform the necessary Joins on the fly and calculate the aggregated total. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 15:46:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-a-calculated-field-to-an-existing-table/m-p/1375366#M817922</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2017-08-24T15:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a calculated field to an existing table</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-a-calculated-field-to-an-existing-table/m-p/1375367#M817923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use mapping table in the script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Map_saleprice:&lt;/P&gt;&lt;P&gt;Mapping Load&lt;/P&gt;&lt;P&gt;Productid,&lt;/P&gt;&lt;P&gt;Saleprice&lt;/P&gt;&lt;P&gt;From products;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sale:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Applymap ('Map_saleprice',productId)*quantity as salerevenu,&lt;/P&gt;&lt;P&gt;Field2,&lt;/P&gt;&lt;P&gt;Field3&lt;/P&gt;&lt;P&gt;From sales;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hth&lt;/P&gt;&lt;P&gt;Sasi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 19:10:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-a-calculated-field-to-an-existing-table/m-p/1375367#M817923</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2017-08-24T19:10:19Z</dc:date>
    </item>
  </channel>
</rss>

