<?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: Set analysis differ in expression and script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-differ-in-expression-and-script/m-p/430243#M489873</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 thought you always had to surround strings with double quotes in a SET statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also: is your ProductID2 field available at the time of calculation?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dion Verbeke&lt;/P&gt;&lt;P&gt;Sr BI Consultant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Nov 2012 23:06:34 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-11-13T23:06:34Z</dc:date>
    <item>
      <title>Set analysis differ in expression and script</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-differ-in-expression-and-script/m-p/430242#M489872</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 am using &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt; sum( {$&amp;lt;ProductID2 = {$(=max(ProductID2))} &amp;gt;} ListPrice )&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;&lt;STRONG style=": ; font-size: 8pt;"&gt;in a chart expression and it works fine.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;&lt;STRONG style=": ; font-size: 8pt;"&gt;When I use the same code in a script I get an internal error in the {$(=max(ProductID2))} - part.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;set vMySales = sum( {$&amp;lt;ProductID2 = {$(=max(ProductID2))} &amp;gt;} ListPrice )&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG style=": ; font-size: 8pt;"&gt;How come it does not work the same way?&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG style=": ; font-size: 8pt;"&gt;Kind regards&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG style=": ; font-size: 8pt;"&gt;Peter &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2012 21:56:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-differ-in-expression-and-script/m-p/430242#M489872</guid>
      <dc:creator />
      <dc:date>2012-11-13T21:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis differ in expression and script</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-differ-in-expression-and-script/m-p/430243#M489873</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 thought you always had to surround strings with double quotes in a SET statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also: is your ProductID2 field available at the time of calculation?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dion Verbeke&lt;/P&gt;&lt;P&gt;Sr BI Consultant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2012 23:06:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-differ-in-expression-and-script/m-p/430243#M489873</guid>
      <dc:creator />
      <dc:date>2012-11-13T23:06:34Z</dc:date>
    </item>
  </channel>
</rss>

