<?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: Help with script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-script/m-p/633378#M678195</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are testing the CLASS function, make sure you dimension column is wide enough to display the values returned, such as:&amp;nbsp; 100 &amp;lt;= PriceBand &amp;lt; 200&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 May 2014 21:55:36 GMT</pubDate>
    <dc:creator>Colin-Albert</dc:creator>
    <dc:date>2014-05-14T21:55:36Z</dc:date>
    <item>
      <title>Help with script</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-script/m-p/633374#M678191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any better way to write below script using apply maps or any other suggestions please&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; keySalesStatistics,&lt;/P&gt;&lt;P&gt;&amp;nbsp; sum([Sales Amount])/ sum([Sales Quantity])&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as ItemPrice,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(sum([Sales Amount])/ sum([Sales Quantity])&amp;nbsp; &amp;lt; 2.50, '1: less than $2.50',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(sum([Sales Amount])/ sum([Sales Quantity])&amp;nbsp; &amp;lt; 5.00, '2: $2.50&amp;nbsp; to $ 4.99',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(sum([Sales Amount])/ sum([Sales Quantity])&amp;nbsp; &amp;lt; 7.50, '3: $5.00&amp;nbsp; to $ 7.49',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(sum([Sales Amount])/ sum([Sales Quantity])&amp;nbsp; &amp;lt; 10.00,'4: $7.50&amp;nbsp; to $ 9.99',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(sum([Sales Amount])/ sum([Sales Quantity])&amp;nbsp; &amp;lt; 12.50,'5: $10.00 to $12.49',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(sum([Sales Amount])/ sum([Sales Quantity])&amp;nbsp; &amp;lt; 15.00, '6: $12.50 to $14.99',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(sum([Sales Amount])/ sum([Sales Quantity])&amp;nbsp; &amp;lt; 17.50, '7: $15.00 to $17.49',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(sum([Sales Amount])/ sum([Sales Quantity])&amp;nbsp; &amp;lt; 20.00, '8: $17.50 to $19.99',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(sum([Sales Amount])/ sum([Sales Quantity])&amp;nbsp; &amp;lt; 22.50, '9: $20.00 to $22.49',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(sum([Sales Amount])/ sum([Sales Quantity])&amp;nbsp; &amp;lt; 25.00, '10: $22.50 to $24.99',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(sum([Sales Amount])/ sum([Sales Quantity])&amp;nbsp; &amp;lt; 27.50, '11: $25.00 to $27.49',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(sum([Sales Amount])/ sum([Sales Quantity])&amp;nbsp; &amp;lt; 30.00, '12: $27.50 to $29.99',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(sum([Sales Amount])/ sum([Sales Quantity])&amp;nbsp; &amp;lt; 35.00, '13: $30.00 to $34.99',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(sum([Sales Amount])/ sum([Sales Quantity])&amp;nbsp; &amp;lt; 40.00, '14: $35.00 to $39.99',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(sum([Sales Amount])/ sum([Sales Quantity])&amp;nbsp; &amp;lt; 45.00, '15: $40.00 to $44.99',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '16: $45.00+')))))))))))))))&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as ItemPriceBand&lt;/P&gt;&lt;P&gt;from test.QVD&lt;/P&gt;&lt;P&gt;Group by keySalesStatistics&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 15:10:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-script/m-p/633374#M678191</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-14T15:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: Help with script</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-script/m-p/633375#M678192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try Class(var,10,'x',5 ) with var = 23 returns '15&amp;lt;=x&amp;lt;25'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Class(ItemPrice,2.5 ,'ItemPrice' )&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; keySalesStatistics,&lt;/P&gt;&lt;P&gt;&amp;nbsp; sum([Sales Amount])/ sum([Sales Quantity])&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as ItemPrice&lt;/P&gt;&lt;P&gt;FROM from test.QVD;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 15:16:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-script/m-p/633375#M678192</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-14T15:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Help with script</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-script/m-p/633376#M678193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eruditio, Sorry for the late reply.. i am trying to understand how that function works. Can you please show me how to write that in the attached application. So that it would be easy for me to understand....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 17:43:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-script/m-p/633376#M678193</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-14T17:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Help with script</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-script/m-p/633377#M678194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vinay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I made a sample code in your script with explanations.&lt;/P&gt;&lt;P&gt;If you still have issues, don't hesitate to reach out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Antoine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 21:35:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-script/m-p/633377#M678194</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-14T21:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: Help with script</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-script/m-p/633378#M678195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are testing the CLASS function, make sure you dimension column is wide enough to display the values returned, such as:&amp;nbsp; 100 &amp;lt;= PriceBand &amp;lt; 200&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 21:55:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-script/m-p/633378#M678195</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2014-05-14T21:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Help with script</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-script/m-p/633379#M678196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eruditio, Thanks a lot man for your help... please accept me friend request. please don't mind if i tag you in any of the questions related to scripting. That is lot helpful.&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2014 12:45:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-script/m-p/633379#M678196</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-15T12:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Help with script</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-script/m-p/633380#M678197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Antoine,&amp;nbsp; Can we set up different intervals for the class function... for example if you see in the below example after 30$ bucket (&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; if(sum([Sales Amount])/ sum([Sales Quantity])&amp;nbsp; &amp;lt; 30.00, '12: $27.50 to $29.99',&lt;/SPAN&gt;). It is assigned to 35$ .&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;if(sum([Sales Amount])/ sum([Sales Quantity])&amp;nbsp; &amp;lt; 35.00, '13: $30.00 to $34.99',&lt;/SPAN&gt;.originally our increment was 2.5 and how can i set that up to 5$....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2014 20:48:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-script/m-p/633380#M678197</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-15T20:48:46Z</dc:date>
    </item>
    <item>
      <title>Re: Help with script</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-script/m-p/633381#M678199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the class function nested inside an if to take care of the upper and lower limits.&lt;/P&gt;&lt;P&gt;Be aware that it will reduce performance&lt;/P&gt;&lt;P&gt;IF ( value &amp;gt; x, yourstatment, if(value &amp;lt; Y, yourstatment, class() ) ) as ItemPriceBand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2014 09:06:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-script/m-p/633381#M678199</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-16T09:06:36Z</dc:date>
    </item>
  </channel>
</rss>

