<?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: Script Error........! in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Script-Error/m-p/687825#M1051213</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;IF(PRD_CODE='LI' And GRO_PRE &amp;gt; 600 And GRO_PRE &amp;lt; 650, PRO_CODE='LI1')&amp;nbsp; Etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Watch out for the double quotes as you have it at the end of the statement. Should be single quote.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Josh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Oct 2014 03:09:59 GMT</pubDate>
    <dc:creator>jduenyas</dc:creator>
    <dc:date>2014-10-24T03:09:59Z</dc:date>
    <item>
      <title>Script Error........!</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Error/m-p/687824#M1051212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have same product codes in my data base with different prices. so what I do is, product codes renamed in my script as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(PRD_CODE='LI' AND 600&amp;lt;GRO_PRE&amp;gt;650, PRO_CODE="LI1"),&lt;/P&gt;&lt;P&gt;IF(PRD_CODE='LI' AND 1150&amp;lt;GRO_PRE&amp;gt;1250, PRO_CODE="LI2"),&lt;/P&gt;&lt;P&gt;IF(PRD_CODE='LI' AND 1550&amp;lt;GRO_PRE&amp;gt;1650, PRO_CODE="LI3"),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the script above conditions are not shows an error but script can not loaded. The machine is getting stuck.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please&amp;nbsp; help to solve the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Priyantha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2014 02:48:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Error/m-p/687824#M1051212</guid>
      <dc:creator />
      <dc:date>2014-10-24T02:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: Script Error........!</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Error/m-p/687825#M1051213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;IF(PRD_CODE='LI' And GRO_PRE &amp;gt; 600 And GRO_PRE &amp;lt; 650, PRO_CODE='LI1')&amp;nbsp; Etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Watch out for the double quotes as you have it at the end of the statement. Should be single quote.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Josh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2014 03:09:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Error/m-p/687825#M1051213</guid>
      <dc:creator>jduenyas</dc:creator>
      <dc:date>2014-10-24T03:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: Script Error........!</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Error/m-p/687826#M1051214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Piyantha, you may have different prices for the same product code because of you are using different price list, Try to bundle price list and product code together&amp;nbsp; generate a unique product code. or if you want just distinct product codes, just load sql with DISTINCT or&amp;nbsp; use MODE() function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2014 03:11:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Error/m-p/687826#M1051214</guid>
      <dc:creator />
      <dc:date>2014-10-24T03:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: Script Error........!</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Error/m-p/687827#M1051215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Priyantha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(PRD_CODE='LI' AND GRO_PRE &amp;gt; 600 And GRO_PRE &amp;lt; 650, Replace(PRO_CODE,'LI','LI1')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;KC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2014 03:12:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Error/m-p/687827#M1051215</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2014-10-24T03:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: Script Error........!</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Error/m-p/687828#M1051216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can use following SCRIPT to bundle the pricelist and productcode product &amp;amp;&amp;nbsp; '|' &amp;amp;&amp;nbsp; pricelist as Productkey,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2014 03:14:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Error/m-p/687828#M1051216</guid>
      <dc:creator />
      <dc:date>2014-10-24T03:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: Script Error........!</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Error/m-p/687829#M1051217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Priyantha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you check logic which I have highlight below. It seem not make sense.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;PRIYANTHA BANDARA wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;IF(PRD_CODE='LI' AND &lt;STRONG&gt;&lt;EM style="text-decoration: underline;"&gt;600&amp;lt;GRO_PRE&amp;gt;650&lt;/EM&gt;&lt;/STRONG&gt;, PRO_CODE="LI1"),&lt;/P&gt;
&lt;P&gt;IF(PRD_CODE='LI' AND 1150&amp;lt;GRO_PRE&amp;gt;1250, PRO_CODE="LI2"),&lt;/P&gt;
&lt;P&gt;IF(PRD_CODE='LI' AND 1550&amp;lt;GRO_PRE&amp;gt;1650, PRO_CODE="LI3"),&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Anyhow, here is my idea:&lt;/P&gt;&lt;P&gt;If(PRD_CODE='LI',&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(GRO_PRE&amp;gt;650,'L|1',&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(GRO_PRE&amp;gt;1250,'L|2',&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(GRO_PRE&amp;gt;1650,'L|3','Others')))&lt;/P&gt;&lt;P&gt;,PRD_CODE&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sokkorn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2014 03:35:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Error/m-p/687829#M1051217</guid>
      <dc:creator>Sokkorn</dc:creator>
      <dc:date>2014-10-24T03:35:48Z</dc:date>
    </item>
  </channel>
</rss>

