<?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 Grouping customers by date last ordered in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Grouping-customers-by-date-last-ordered/m-p/736725#M263507</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 need to group customers in to 'buckets' depending on the&lt;BR /&gt;last time they purchased.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;This needs calculate from the max order date - when 0 selections are made,&lt;BR /&gt;or filter by the max date when an item or geographical location is selected.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Originally I had tried to write this into the script, but I can only get it&lt;BR /&gt;to work for the max order date over all.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Would this be better calculated with in the chart?&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;I need to display results in a bar chart.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;see example below;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Oct 2014 13:26:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-10-01T13:26:22Z</dc:date>
    <item>
      <title>Grouping customers by date last ordered</title>
      <link>https://community.qlik.com/t5/QlikView/Grouping-customers-by-date-last-ordered/m-p/736725#M263507</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 need to group customers in to 'buckets' depending on the&lt;BR /&gt;last time they purchased.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;This needs calculate from the max order date - when 0 selections are made,&lt;BR /&gt;or filter by the max date when an item or geographical location is selected.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Originally I had tried to write this into the script, but I can only get it&lt;BR /&gt;to work for the max order date over all.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Would this be better calculated with in the chart?&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;I need to display results in a bar chart.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;see example below;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 13:26:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Grouping-customers-by-date-last-ordered/m-p/736725#M263507</guid>
      <dc:creator />
      <dc:date>2014-10-01T13:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping customers by date last ordered</title>
      <link>https://community.qlik.com/t5/QlikView/Grouping-customers-by-date-last-ordered/m-p/736726#M263508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use class function to create buckets in chart&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2014/07/14/buckets" title="http://community.qlik.com/blogs/qlikviewdesignblog/2014/07/14/buckets"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2014/07/14/buckets&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 13:32:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Grouping-customers-by-date-last-ordered/m-p/736726#M263508</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-10-01T13:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping customers by date last ordered</title>
      <link>https://community.qlik.com/t5/QlikView/Grouping-customers-by-date-last-ordered/m-p/736727#M263509</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;one solution could be (at front end):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="68124" alt="QlikCommunity_Thread_136024_Pic2.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/68124_QlikCommunity_Thread_136024_Pic2.JPG.jpg" style="width: 620px; height: 196px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_136024_Pic4.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/68127_QlikCommunity_Thread_136024_Pic4.JPG.jpg" style="width: 620px; height: 293px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="68125" alt="QlikCommunity_Thread_136024_Pic1.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/68125_QlikCommunity_Thread_136024_Pic1.JPG.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="68126" alt="QlikCommunity_Thread_136024_Pic3.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/68126_QlikCommunity_Thread_136024_Pic3.JPG.jpg" style="width: 620px; height: 553px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 21:23:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Grouping-customers-by-date-last-ordered/m-p/736727#M263509</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-10-01T21:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping customers by date last ordered</title>
      <link>https://community.qlik.com/t5/QlikView/Grouping-customers-by-date-last-ordered/m-p/736728#M263510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marco&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for this its working really well.&lt;/P&gt;&lt;P&gt;I just have one more question - i'm stuggling to put this expression into an if statement so that customers with 0 value, or 0 orders are not included.&amp;nbsp; - can you advise?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Heather&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2014 08:24:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Grouping-customers-by-date-last-ordered/m-p/736728#M263510</guid>
      <dc:creator />
      <dc:date>2014-10-02T08:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping customers by date last ordered</title>
      <link>https://community.qlik.com/t5/QlikView/Grouping-customers-by-date-last-ordered/m-p/736729#M263511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=If( Aggr(Div(Today()-Max([order date]),7), customer) &amp;gt; 0,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dual (...)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select "Suppress when value is null"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2014 12:30:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Grouping-customers-by-date-last-ordered/m-p/736729#M263511</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-10-02T12:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping customers by date last ordered</title>
      <link>https://community.qlik.com/t5/QlikView/Grouping-customers-by-date-last-ordered/m-p/736730#M263512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you this have solved my issue!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2014 12:48:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Grouping-customers-by-date-last-ordered/m-p/736730#M263512</guid>
      <dc:creator />
      <dc:date>2014-10-02T12:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping customers by date last ordered</title>
      <link>https://community.qlik.com/t5/QlikView/Grouping-customers-by-date-last-ordered/m-p/736731#M263513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i've reverted back to the orignal expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Dual&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Replace&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Class&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Div&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()-&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),7),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Customerr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),4),'&amp;lt;= x &amp;lt;','-'),&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Class&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Div&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()-&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),7),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Customer&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),4)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;so that I can include customers that have ordered less than a week ago, however this is causeing me an issue with the bucket labels.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Because '0' now takes up positiion 1 as it were, bucket 0-4 only contains the count of customers that ordred in 0-3 weeks. customers that ordered 4 weeks ago now sit in the 4-8 bucket, which containts customers that ordered between 4 and 7 weeks ago and customer that ordered 8 weeks ago sit in bucket 8-12....and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I re-lable the buckets to reflect what's actually in them?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2014 11:16:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Grouping-customers-by-date-last-ordered/m-p/736731#M263513</guid>
      <dc:creator />
      <dc:date>2014-10-23T11:16:29Z</dc:date>
    </item>
  </channel>
</rss>

