<?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 expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-expression/m-p/279624#M104056</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;= Sum({&amp;lt;Year={$(=FirstSortedValue(Year)) has only set analysis where is the field to be summed? Probably you are looking for&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= Sum({&amp;lt;Year={"$(=FirstSortedValue(Year))"}&amp;gt;} Sale).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Besides is best to have computed expressions of set analysis to be within double quotes (").&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Oct 2011 15:35:44 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-10-27T15:35:44Z</dc:date>
    <item>
      <title>Set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression/m-p/279621#M104053</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 am using below set expression in straight table. It is not displaying any data why ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;Year={$(=Only(Year)-1)}&amp;gt;} Sale)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone what is mistake in above expression ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2011 14:20:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression/m-p/279621#M104053</guid>
      <dc:creator />
      <dc:date>2011-10-27T14:20:21Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression/m-p/279622#M104054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Venkat,&lt;/P&gt;&lt;P&gt;Probably there is no data for that year. Anyways what does this expression return &lt;STRONG&gt;Only(Year)-1&lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it returns null then try using Max Function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2011 14:56:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression/m-p/279622#M104054</guid>
      <dc:creator />
      <dc:date>2011-10-27T14:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression/m-p/279623#M104055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kiran, first thanks to your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that returns null, so now i used the max function. Now it is working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried below expression , it is not generating any value, and what is FirstSortedValue and why it is not generating any result ?&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt; &lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;= Sum({&amp;lt;Year={$(=FirstSortedValue(Year))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2011 15:27:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression/m-p/279623#M104055</guid>
      <dc:creator />
      <dc:date>2011-10-27T15:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression/m-p/279624#M104056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;= Sum({&amp;lt;Year={$(=FirstSortedValue(Year)) has only set analysis where is the field to be summed? Probably you are looking for&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= Sum({&amp;lt;Year={"$(=FirstSortedValue(Year))"}&amp;gt;} Sale).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Besides is best to have computed expressions of set analysis to be within double quotes (").&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2011 15:35:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression/m-p/279624#M104056</guid>
      <dc:creator />
      <dc:date>2011-10-27T15:35:44Z</dc:date>
    </item>
  </channel>
</rss>

