<?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 Set Analysis with aggregate in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-aggregate/m-p/225896#M78161</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using an aggregation function in which i want to include set analysis for the previous year and am struggling a little bit. the expression which does not work is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=-sum( {$&amp;lt;[Year-RCV] = {$(=Min([Year-RCV])-1)}&amp;gt;} aggr([Transit Time] &amp;gt;= ([Receipt Date] - [Ship Date]),[Doc. Number]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;am using the same set analysis to count in another expression and it works. the working expression is&lt;/P&gt;&lt;P&gt;=count({$&amp;lt;[Year-RCV] = {$(=Min([Year-RCV])-1)}&amp;gt;} distinct [Doc. Number])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Jan 2010 18:33:54 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-01-28T18:33:54Z</dc:date>
    <item>
      <title>Set Analysis with aggregate</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-aggregate/m-p/225896#M78161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using an aggregation function in which i want to include set analysis for the previous year and am struggling a little bit. the expression which does not work is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=-sum( {$&amp;lt;[Year-RCV] = {$(=Min([Year-RCV])-1)}&amp;gt;} aggr([Transit Time] &amp;gt;= ([Receipt Date] - [Ship Date]),[Doc. Number]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;am using the same set analysis to count in another expression and it works. the working expression is&lt;/P&gt;&lt;P&gt;=count({$&amp;lt;[Year-RCV] = {$(=Min([Year-RCV])-1)}&amp;gt;} distinct [Doc. Number])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2010 18:33:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-aggregate/m-p/225896#M78161</guid>
      <dc:creator />
      <dc:date>2010-01-28T18:33:54Z</dc:date>
    </item>
  </channel>
</rss>

