<?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: Aggregating Purchases by Hour and Day in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggregating-Purchases-by-Hour-and-Day/m-p/1349842#M460548</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;The above was just a sample of how I am looking for the data to be displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 May 2017 18:11:55 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-05-02T18:11:55Z</dc:date>
    <item>
      <title>Aggregating Purchases by Hour and Day</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregating-Purchases-by-Hour-and-Day/m-p/1349840#M460546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hello --&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: #3d3d3d;"&gt;I am working through a problem and having some difficulty getting the result I am looking for.&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: #3d3d3d;"&gt;Below is a simple table of what I am trying to achieve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;THEAD style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TH class="header" style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center; background-position: no-repeat; color: #ffffff; background-color: #6690bc;" valign="middle"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Merchandise Division&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH class="header" style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center; background-position: no-repeat; color: #ffffff; background-color: #6690bc;" valign="middle"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Hour&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH class="header" style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center; background-position: no-repeat; color: #ffffff; background-color: #6690bc;" valign="middle"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Day&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH class="header" style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center; background-position: no-repeat; color: #ffffff; background-color: #6690bc;" valign="middle"&gt;Hour (All)&lt;/TH&gt;&lt;TH class="header" style="border: 1px solid #000000; font-style: inherit; font-family: inherit; text-align: center; background-position: no-repeat; color: #ffffff; background-color: #6690bc;" valign="middle"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Day (All)&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;Apparel&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;10&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;Mon&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;8&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;Tues&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;Accessories&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;15&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;Tues&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;8&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;Tues&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;Cosmetics&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;17&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;Tues&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;8&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;Tues&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;Electronics&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;9&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;Sun&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;8&lt;/TD&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: inherit;"&gt;Tues&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;What I am looking for here is the top number of sales by hour and day per listed merchandise division. The goal would be to sum the orders by hour and day and output the hour and day which had the highest number of sales per division. I would also like to list the top hour across all division and days within the table as well.&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: #3d3d3d;"&gt;I've tried a few set analyses but I think what I am trying to achieve is a bit more robust then I can handle.&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: #3d3d3d;"&gt;Any thoughts on how one might achieve this?&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I've attached a small data set which can better explain the inputs I am working with.&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: #3d3d3d;"&gt;Best,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 May 2017 12:05:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregating-Purchases-by-Hour-and-Day/m-p/1349840#M460546</guid>
      <dc:creator />
      <dc:date>2017-05-02T12:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregating Purchases by Hour and Day</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregating-Purchases-by-Hour-and-Day/m-p/1349841#M460547</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;Can you help us to understand how did you got this numbers from your sample data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 May 2017 18:10:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregating-Purchases-by-Hour-and-Day/m-p/1349841#M460547</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2017-05-02T18:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregating Purchases by Hour and Day</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregating-Purchases-by-Hour-and-Day/m-p/1349842#M460548</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;The above was just a sample of how I am looking for the data to be displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 May 2017 18:11:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregating-Purchases-by-Hour-and-Day/m-p/1349842#M460548</guid>
      <dc:creator />
      <dc:date>2017-05-02T18:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregating Purchases by Hour and Day</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregating-Purchases-by-Hour-and-Day/m-p/1349843#M460549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you can tell us the output which you need with correct numbers from the sample data you had given.&lt;/P&gt;&lt;P&gt;This will help us to think about the logic. Or if you have the logics for each column please let us know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 May 2017 18:16:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregating-Purchases-by-Hour-and-Day/m-p/1349843#M460549</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2017-05-02T18:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregating Purchases by Hour and Day</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregating-Purchases-by-Hour-and-Day/m-p/1349844#M460550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaushik, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below would be the correct answers for each division / total data set. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am trying to show is what hour / day were the top in terms of revenue for each division. Likewise, when combining all of the divisions what was the top hour and day. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;Top Hour / Divison&lt;/TD&gt;&lt;TD&gt;Top Hour / Revenue&lt;/TD&gt;&lt;TD&gt;Top Hour / ALL&lt;/TD&gt;&lt;TD&gt;Top Hour / Revenue ALL&lt;/TD&gt;&lt;TD&gt;Top Day / Division&lt;/TD&gt;&lt;TD&gt;Top Day / Revenue&lt;/TD&gt;&lt;TD&gt;Top Day / ALL&lt;/TD&gt;&lt;TD&gt;Top Day / Revenue ALL&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Accessories&lt;/TD&gt;&lt;TD&gt;22&lt;/TD&gt;&lt;TD&gt;$34,431.00&lt;/TD&gt;&lt;TD&gt;16&lt;/TD&gt;&lt;TD&gt; $106,387&lt;/TD&gt;&lt;TD&gt;Sunday&lt;/TD&gt;&lt;TD&gt;$54,980.00&lt;/TD&gt;&lt;TD&gt;Tuesday&lt;/TD&gt;&lt;TD&gt;$258,383.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Apparel&lt;/TD&gt;&lt;TD&gt;17&lt;/TD&gt;&lt;TD&gt;$31,359.00&lt;/TD&gt;&lt;TD&gt;16&lt;/TD&gt;&lt;TD&gt; $106,387&lt;/TD&gt;&lt;TD&gt;Tuesday&lt;/TD&gt;&lt;TD&gt;$43,541.00&lt;/TD&gt;&lt;TD&gt;Tuesday&lt;/TD&gt;&lt;TD&gt;$258,383.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Cosmetics&lt;/TD&gt;&lt;TD&gt;15&lt;/TD&gt;&lt;TD&gt;$50,447.00&lt;/TD&gt;&lt;TD&gt;16&lt;/TD&gt;&lt;TD&gt; $106,387&lt;/TD&gt;&lt;TD&gt;Thursday&lt;/TD&gt;&lt;TD&gt;$135,867.00&lt;/TD&gt;&lt;TD&gt;Tuesday&lt;/TD&gt;&lt;TD&gt;$258,383.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Electronics&lt;/TD&gt;&lt;TD&gt;16&lt;/TD&gt;&lt;TD&gt;$49,703.00&lt;/TD&gt;&lt;TD&gt;16&lt;/TD&gt;&lt;TD&gt; $106,387&lt;/TD&gt;&lt;TD&gt;Wednesday&lt;/TD&gt;&lt;TD&gt;$74,414.00&lt;/TD&gt;&lt;TD&gt;Tuesday&lt;/TD&gt;&lt;TD&gt;$258,383.00&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 May 2017 18:28:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregating-Purchases-by-Hour-and-Day/m-p/1349844#M460550</guid>
      <dc:creator />
      <dc:date>2017-05-02T18:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregating Purchases by Hour and Day</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregating-Purchases-by-Hour-and-Day/m-p/1349845#M460551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this out -&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/161935_Capture.PNG" style="height: 102px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 May 2017 21:43:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregating-Purchases-by-Hour-and-Day/m-p/1349845#M460551</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2017-05-02T21:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregating Purchases by Hour and Day</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregating-Purchases-by-Hour-and-Day/m-p/1349846#M460552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks pretty amazing! I am checking out the solution now, thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will comment in a moment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 May 2017 22:07:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregating-Purchases-by-Hour-and-Day/m-p/1349846#M460552</guid>
      <dc:creator />
      <dc:date>2017-05-02T22:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregating Purchases by Hour and Day</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregating-Purchases-by-Hour-and-Day/m-p/1349847#M460553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Digvijay,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Please share the method in plain text. I am using personalized edition and I am not able to open the QLikview file.&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2017 06:56:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregating-Purchases-by-Hour-and-Day/m-p/1349847#M460553</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-03T06:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregating Purchases by Hour and Day</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregating-Purchases-by-Hour-and-Day/m-p/1349848#M460554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can feel your pain &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt; , me too on personal edition, here are the expressions - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Aggr(if(Rank(Sum([Total Revenue]))=1,[Order Hour]),[Merchandise Division],[Order Hour])&lt;/P&gt;&lt;P&gt;2. Max(Aggr(sum([Total Revenue]),[Merchandise Division],[Order Hour]))&lt;/P&gt;&lt;P&gt;3. Aggr(NODISTINCT if(Rank(total Sum([Total Revenue]))=1,[Order Hour]),[Order Hour])&lt;/P&gt;&lt;P&gt;4. Max(total Aggr(sum([Total Revenue]),[Order Hour]))&lt;/P&gt;&lt;P&gt;5. Aggr(if(Rank(Sum([Total Revenue]))=1,[Order Day]),[Merchandise Division],[Order Day])&lt;/P&gt;&lt;P&gt;6. Max(Aggr(sum([Total Revenue]),[Merchandise Division],[Order Day]))&lt;/P&gt;&lt;P&gt;7. Aggr(NODISTINCT if(Rank(total Sum([Total Revenue]))=1,[Order Day]),[Order Day])&lt;/P&gt;&lt;P&gt;8. Max(total Aggr(sum([Total Revenue]),[Order Day]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2017 14:41:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregating-Purchases-by-Hour-and-Day/m-p/1349848#M460554</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2017-05-03T14:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregating Purchases by Hour and Day</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregating-Purchases-by-Hour-and-Day/m-p/1349849#M460555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much Digvijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2017 19:45:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregating-Purchases-by-Hour-and-Day/m-p/1349849#M460555</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-03T19:45:22Z</dc:date>
    </item>
  </channel>
</rss>

