<?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 Conditional aggregate in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Conditional-aggregate/m-p/577055#M477332</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 the following expression which works fine: "=Sum(Aggr(FirstSortedValue([Loan($)],-Date),[Grower No.])) ". In my data, I have a column with "Year" in it. How can I tweak the expression so that it only sums up where Year = 2014 for example. I am getting myself in a twist trying to use the if function here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Herbert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Apr 2014 17:44:02 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-04-29T17:44:02Z</dc:date>
    <item>
      <title>Conditional aggregate</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-aggregate/m-p/577055#M477332</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 the following expression which works fine: "=Sum(Aggr(FirstSortedValue([Loan($)],-Date),[Grower No.])) ". In my data, I have a column with "Year" in it. How can I tweak the expression so that it only sums up where Year = 2014 for example. I am getting myself in a twist trying to use the if function here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Herbert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2014 17:44:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-aggregate/m-p/577055#M477332</guid>
      <dc:creator />
      <dc:date>2014-04-29T17:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional aggregate</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-aggregate/m-p/577056#M477333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=Sum({&amp;lt;Year = {2014}&amp;gt;} Aggr(FirstSortedValue(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;{&amp;lt;Year = {2014}&amp;gt;}&lt;/SPAN&gt; [Loan($)],-Date),[Grower No.])) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2014 17:50:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-aggregate/m-p/577056#M477333</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2014-04-29T17:50:24Z</dc:date>
    </item>
  </channel>
</rss>

