<?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: Adding Set Analysis to Sum(aggr()) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Adding-Set-Analysis-to-Sum-aggr/m-p/1445396#M433218</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Within the first sum:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;=NUM(&lt;STRONG&gt;SUM(&lt;/STRONG&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&lt;STRONG&gt;{&amp;lt;Check_Date = {'&amp;gt;= $(vYearStart) &amp;lt;= $(vYearEnd)'}&amp;gt;}&lt;/STRONG&gt;&lt;/SPAN&gt; ((aggr(avg(num([Check Date])-num([Invoice Date])),[KEY_CompanyInvoiceNumberVendorNum]))*[Invoice $]))/&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;(Sum(IF(aggr(([Check Amount]),[Check Number])&amp;gt;0, aggr(([Check Amount]),[Check Number]),Aggr(sum([Gross Amount]),[Check Number])))),'#,##0')&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Nov 2017 11:54:27 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-11-09T11:54:27Z</dc:date>
    <item>
      <title>Adding Set Analysis to Sum(aggr())</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-Set-Analysis-to-Sum-aggr/m-p/1445395#M433217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have the below expression to calculate a weightage.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=NUM(SUM(((aggr(avg(num([Check Date])-num([Invoice Date])),[KEY_CompanyInvoiceNumberVendorNum]))*[Invoice $]))/&lt;/P&gt;&lt;P&gt;(Sum(IF(aggr(([Check Amount]),[Check Number])&amp;gt;0, aggr(([Check Amount]),[Check Number]),Aggr(sum([Gross Amount]),[Check Number])))),'#,##0')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This expression should be modified to add a set analysis like below, into the above expression:&lt;/P&gt;&lt;P&gt;{&amp;lt;Check_Date = {'&amp;gt;= $(vYearStart) &amp;lt;= $(vYearEnd)'}&amp;gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Pooja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Nov 2017 11:31:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-Set-Analysis-to-Sum-aggr/m-p/1445395#M433217</guid>
      <dc:creator>poojask123</dc:creator>
      <dc:date>2017-11-09T11:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Set Analysis to Sum(aggr())</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-Set-Analysis-to-Sum-aggr/m-p/1445396#M433218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Within the first sum:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;=NUM(&lt;STRONG&gt;SUM(&lt;/STRONG&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&lt;STRONG&gt;{&amp;lt;Check_Date = {'&amp;gt;= $(vYearStart) &amp;lt;= $(vYearEnd)'}&amp;gt;}&lt;/STRONG&gt;&lt;/SPAN&gt; ((aggr(avg(num([Check Date])-num([Invoice Date])),[KEY_CompanyInvoiceNumberVendorNum]))*[Invoice $]))/&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;(Sum(IF(aggr(([Check Amount]),[Check Number])&amp;gt;0, aggr(([Check Amount]),[Check Number]),Aggr(sum([Gross Amount]),[Check Number])))),'#,##0')&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Nov 2017 11:54:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-Set-Analysis-to-Sum-aggr/m-p/1445396#M433218</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-09T11:54:27Z</dc:date>
    </item>
  </channel>
</rss>

