<?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: Re: Aggregate calculation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggregate-calculation/m-p/702305#M672938</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 have uploaded a document showing how does the rank and aggr work together, very similar to the one that you want, you only have to replace the fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please tell me if this is what you need.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Sep 2014 07:58:50 GMT</pubDate>
    <dc:creator>maleksafa</dc:creator>
    <dc:date>2014-09-04T07:58:50Z</dc:date>
    <item>
      <title>Aggregate calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-calculation/m-p/702301#M672932</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 trying to build a report with Manufacturer, Quantity Sold:&amp;nbsp; Today, Week, Month and Best Week. I can easily make the report for Today, Week, Month, but I don't have any clue how to find the best weekly sales in this month?&lt;/P&gt;&lt;P&gt;Eg:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Manufacturer&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Today Qty&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Week Qty&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Month Qty&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Best Week Qty in this month&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;HP&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;20&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;100&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;28&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Canon&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;8&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;30&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;170&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;47&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone please suggest a solution for this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dony&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Sep 2014 14:38:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-calculation/m-p/702301#M672932</guid>
      <dc:creator />
      <dc:date>2014-09-03T14:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-calculation/m-p/702302#M672934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dony,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please provide the sample data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Sep 2014 14:40:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-calculation/m-p/702302#M672934</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2014-09-03T14:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-calculation/m-p/702303#M672935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you should use the rank function, and aggregate the sum(Week Qty) by Month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you upload a small document, to check the dimensions properly?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Sep 2014 14:41:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-calculation/m-p/702303#M672935</guid>
      <dc:creator>maleksafa</dc:creator>
      <dc:date>2014-09-03T14:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-calculation/m-p/702304#M672936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Malek Safa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for you reply.&lt;/P&gt;&lt;P&gt;I can make a report like this from your suggestion&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Week&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Quantity&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Rank&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;35&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;504&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;36&lt;/TD&gt;&lt;TD&gt;363&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;33&lt;/TD&gt;&lt;TD&gt;300&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;32&lt;/TD&gt;&lt;TD&gt;280&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;30&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;270&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;31&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;260&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;29&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;255&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;28&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;240&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;34&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;238&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;9&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;27&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;235&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Week: Dimension&lt;/P&gt;&lt;P&gt;Quantity: Sum({&amp;lt;Date={'&amp;gt;$(=QuarterStart(today())) &amp;lt;$(vTodayThisYear)'}&amp;gt;}[Invoiced Quantity])&lt;/P&gt;&lt;P&gt;Rank: RANK(Sum({&amp;lt;Date={'&amp;gt;$(=QuarterStart(today())) &amp;lt;$(vTodayThisYear)'}&amp;gt;}[Invoiced Quantity]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From This I need to find only quantity 504( ie, Rank=1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please help me to do this by using aggr and Rank function as you have suggested?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dony&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Sep 2014 15:31:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-calculation/m-p/702304#M672936</guid>
      <dc:creator />
      <dc:date>2014-09-03T15:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Aggregate calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-calculation/m-p/702305#M672938</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 have uploaded a document showing how does the rank and aggr work together, very similar to the one that you want, you only have to replace the fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please tell me if this is what you need.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2014 07:58:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-calculation/m-p/702305#M672938</guid>
      <dc:creator>maleksafa</dc:creator>
      <dc:date>2014-09-04T07:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Aggregate calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-calculation/m-p/702306#M672941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Malek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help. I fixed the issues now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dony&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2014 13:58:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-calculation/m-p/702306#M672941</guid>
      <dc:creator />
      <dc:date>2014-09-04T13:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Aggregate calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-calculation/m-p/702307#M672943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great, then please close this topic to answered and by marking answers as helpful or correct answer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2014 14:02:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-calculation/m-p/702307#M672943</guid>
      <dc:creator>maleksafa</dc:creator>
      <dc:date>2014-09-04T14:02:36Z</dc:date>
    </item>
  </channel>
</rss>

