<?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 Replicate this expression in script? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Replicate-this-expression-in-script/m-p/879230#M660863</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Listed below is an expression that I am using in one of my pivot tables. I am wondering if it is possible to replicate this in the script and create a column that does the same thing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(sum(TOTAL &amp;lt;Person&amp;gt; amount) &amp;lt;= 700000, sum(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;amount&lt;/SPAN&gt;*.0000),&lt;/P&gt;&lt;P&gt;if(sum(TOTAL &amp;lt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Person&lt;/SPAN&gt;&amp;gt; &lt;SPAN style="font-size: 13.3333330154419px;"&gt;amount&lt;/SPAN&gt;) &amp;gt; 700000 and sum(TOTAL &amp;lt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Person&lt;/SPAN&gt;&amp;gt; &lt;SPAN style="font-size: 13.3333330154419px;"&gt;amount&lt;/SPAN&gt;) &amp;lt;= 1100000, sum(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;amount&lt;/SPAN&gt;*.0005),&lt;/P&gt;&lt;P&gt;if(sum(TOTAL &amp;lt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Person&lt;/SPAN&gt;&amp;gt; &lt;SPAN style="font-size: 13.3333330154419px;"&gt;amount&lt;/SPAN&gt;) &amp;gt; 1100000 and sum(TOTAL &amp;lt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Person&lt;/SPAN&gt;&amp;gt; &lt;SPAN style="font-size: 13.3333330154419px;"&gt;amount&lt;/SPAN&gt;) &amp;lt;= 1500000, sum(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;amount&lt;/SPAN&gt;*.0010),&lt;/P&gt;&lt;P&gt;if(sum(TOTAL &amp;lt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Person&lt;/SPAN&gt;&amp;gt; &lt;SPAN style="font-size: 13.3333330154419px;"&gt;amount&lt;/SPAN&gt;) &amp;gt; 1500000 and sum(TOTAL &amp;lt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Person&lt;/SPAN&gt;&amp;gt; &lt;SPAN style="font-size: 13.3333330154419px;"&gt;amount&lt;/SPAN&gt;) &amp;lt;= 2000000, sum(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;amount&lt;/SPAN&gt;*.0020),&lt;/P&gt;&lt;P&gt;if(sum(TOTAL &amp;lt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Person&lt;/SPAN&gt;&amp;gt; &lt;SPAN style="font-size: 13.3333330154419px;"&gt;amount&lt;/SPAN&gt;) &amp;gt; 2000000, sum(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;amount&lt;/SPAN&gt;*.0030))))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically what I am trying to do is sum all of the loan values that apply to a specific person on a specific close date and then assign a corresponding field value for each row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for example, if Person A has 7 loans that closed on March 31st, 2015 and the total of those 7 loans is 1000000 the new field will display whatever the loan amount is for each given loan * .0005.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible to do in the script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Apr 2015 16:37:27 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-04-08T16:37:27Z</dc:date>
    <item>
      <title>Replicate this expression in script?</title>
      <link>https://community.qlik.com/t5/QlikView/Replicate-this-expression-in-script/m-p/879230#M660863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Listed below is an expression that I am using in one of my pivot tables. I am wondering if it is possible to replicate this in the script and create a column that does the same thing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(sum(TOTAL &amp;lt;Person&amp;gt; amount) &amp;lt;= 700000, sum(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;amount&lt;/SPAN&gt;*.0000),&lt;/P&gt;&lt;P&gt;if(sum(TOTAL &amp;lt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Person&lt;/SPAN&gt;&amp;gt; &lt;SPAN style="font-size: 13.3333330154419px;"&gt;amount&lt;/SPAN&gt;) &amp;gt; 700000 and sum(TOTAL &amp;lt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Person&lt;/SPAN&gt;&amp;gt; &lt;SPAN style="font-size: 13.3333330154419px;"&gt;amount&lt;/SPAN&gt;) &amp;lt;= 1100000, sum(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;amount&lt;/SPAN&gt;*.0005),&lt;/P&gt;&lt;P&gt;if(sum(TOTAL &amp;lt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Person&lt;/SPAN&gt;&amp;gt; &lt;SPAN style="font-size: 13.3333330154419px;"&gt;amount&lt;/SPAN&gt;) &amp;gt; 1100000 and sum(TOTAL &amp;lt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Person&lt;/SPAN&gt;&amp;gt; &lt;SPAN style="font-size: 13.3333330154419px;"&gt;amount&lt;/SPAN&gt;) &amp;lt;= 1500000, sum(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;amount&lt;/SPAN&gt;*.0010),&lt;/P&gt;&lt;P&gt;if(sum(TOTAL &amp;lt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Person&lt;/SPAN&gt;&amp;gt; &lt;SPAN style="font-size: 13.3333330154419px;"&gt;amount&lt;/SPAN&gt;) &amp;gt; 1500000 and sum(TOTAL &amp;lt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Person&lt;/SPAN&gt;&amp;gt; &lt;SPAN style="font-size: 13.3333330154419px;"&gt;amount&lt;/SPAN&gt;) &amp;lt;= 2000000, sum(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;amount&lt;/SPAN&gt;*.0020),&lt;/P&gt;&lt;P&gt;if(sum(TOTAL &amp;lt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Person&lt;/SPAN&gt;&amp;gt; &lt;SPAN style="font-size: 13.3333330154419px;"&gt;amount&lt;/SPAN&gt;) &amp;gt; 2000000, sum(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;amount&lt;/SPAN&gt;*.0030))))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically what I am trying to do is sum all of the loan values that apply to a specific person on a specific close date and then assign a corresponding field value for each row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for example, if Person A has 7 loans that closed on March 31st, 2015 and the total of those 7 loans is 1000000 the new field will display whatever the loan amount is for each given loan * .0005.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible to do in the script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 16:37:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replicate-this-expression-in-script/m-p/879230#M660863</guid>
      <dc:creator />
      <dc:date>2015-04-08T16:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: Replicate this expression in script?</title>
      <link>https://community.qlik.com/t5/QlikView/Replicate-this-expression-in-script/m-p/879231#M660864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Is this possible to do in the script?&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Probably. Can you post a Qlikview document with the script and the pivot table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 17:08:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replicate-this-expression-in-script/m-p/879231#M660864</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-04-08T17:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: Replicate this expression in script?</title>
      <link>https://community.qlik.com/t5/QlikView/Replicate-this-expression-in-script/m-p/879232#M660865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Load *,&lt;/P&gt;&lt;P&gt;if(SumAmt &amp;lt;= 700000, SumAmt*.0000,&lt;/P&gt;&lt;P&gt;if(SumAmt &amp;gt; 700000 and SumAmt &amp;lt;= 1100000, SumAmt*.0005,&lt;/P&gt;&lt;P&gt;if(SumAmt &amp;gt; 1100000 and SumAmt &amp;lt;= 1500000, SumAmt*.0010,&lt;/P&gt;&lt;P&gt;if(SumAmt &amp;gt; 1500000 and SumAmt &amp;lt;= 2000000, SumAmt*.0020,&lt;/P&gt;&lt;P&gt;if(SumAmt &amp;gt; 2000000, SumAmt*.0030)))));&lt;/P&gt;&lt;P&gt;Load Person, Sum(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;amount) As SumAmt Resident Source;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 04:41:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replicate-this-expression-in-script/m-p/879232#M660865</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2015-04-09T04:41:43Z</dc:date>
    </item>
  </channel>
</rss>

