<?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: Table Links and Sums in Scripts, Create new field. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Table-Links-and-Sums-in-Scripts-Create-new-field/m-p/1076603#M923588</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yep was a issue on the script line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;((( (((t0."estp-blank-l"*t0."estp-blank-w")/1000000)*t1."estrc-coverage")*(t3.OrderedQty+2500))*t1."estrc-usage")/100000) as "Calculated Ink Kg"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Apr 2016 11:12:06 GMT</pubDate>
    <dc:creator>bnelson111</dc:creator>
    <dc:date>2016-04-08T11:12:06Z</dc:date>
    <item>
      <title>Table Links and Sums in Scripts, Create new field.</title>
      <link>https://community.qlik.com/t5/QlikView/Table-Links-and-Sums-in-Scripts-Create-new-field/m-p/1076601#M923586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Was trying new ways to load data from different tables then add. Below is a script which successfully loads the data but i cant manage to calculate the new field "F". The calculation is required in the load statement as i want to sum the results in presentation. Any suggestions, thanks Brett &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[link]:&lt;/P&gt;&lt;P&gt;SQL SELECT t0."estp-blank-l",&lt;/P&gt;&lt;P&gt;t0."estp-blank-w",&lt;/P&gt;&lt;P&gt;t0."k-est-code",&lt;/P&gt;&lt;P&gt;t1."estrc-coverage",&lt;/P&gt;&lt;P&gt;t1."estrc-weight-qty",&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; t1."estrc-usage",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;t1.kinkcode,&lt;/P&gt;&lt;P&gt;t2.JobCode,&lt;/P&gt;&lt;P&gt;t3.OrderedQty&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // num((((((((([t0.estp-blank-l]*[t0.estp-blank-w])/1000)/1000)/100)*[t1.estrc-coverage])*t3OrderedQty)*[t1.estrc-usage])/1000)) as f&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;FROM &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PUB.estprofile as t0,&lt;/P&gt;&lt;P&gt;PUB.estrcoat as t1,&lt;/P&gt;&lt;P&gt;PUB."PV_Job" as t2,&lt;/P&gt;&lt;P&gt;PUB."PV_JobLine" as t3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where t0."k-est-code" = t1."k-est-code"&lt;/P&gt;&lt;P&gt;and t0."k-est-code"=t2.EstCode &lt;/P&gt;&lt;P&gt;and t2.JobCode = t3.JobCode;&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/Table-Links-and-Sums-in-Scripts-Create-new-field/m-p/1076601#M923586</guid>
      <dc:creator>bnelson111</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Table Links and Sums in Scripts, Create new field.</title>
      <link>https://community.qlik.com/t5/QlikView/Table-Links-and-Sums-in-Scripts-Create-new-field/m-p/1076602#M923587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Brett,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By just looking at the formula, it seems like you are missing "." in "t3OrderedQty". Maybe try to change it to "t3.OrderedQty" in order to see if it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2016 17:22:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-Links-and-Sums-in-Scripts-Create-new-field/m-p/1076602#M923587</guid>
      <dc:creator>sinanozdemir</dc:creator>
      <dc:date>2016-04-07T17:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: Table Links and Sums in Scripts, Create new field.</title>
      <link>https://community.qlik.com/t5/QlikView/Table-Links-and-Sums-in-Scripts-Create-new-field/m-p/1076603#M923588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yep was a issue on the script line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;((( (((t0."estp-blank-l"*t0."estp-blank-w")/1000000)*t1."estrc-coverage")*(t3.OrderedQty+2500))*t1."estrc-usage")/100000) as "Calculated Ink Kg"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Apr 2016 11:12:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-Links-and-Sums-in-Scripts-Create-new-field/m-p/1076603#M923588</guid>
      <dc:creator>bnelson111</dc:creator>
      <dc:date>2016-04-08T11:12:06Z</dc:date>
    </item>
  </channel>
</rss>

