<?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: Date bucket in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-bucket/m-p/1442619#M432724</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried this expression, what is for &lt;STRONG style=": ; color: #3d3d3d; font-style: inherit; font-size: 13.3333px; font-family: inherit; font-weight: inherit;"&gt;Dual('',4) ??.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #3d3d3d; font-style: inherit; font-size: 13.3333px; font-family: inherit; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #3d3d3d; font-style: inherit; font-size: 13.3333px; font-family: inherit; font-weight: inherit;"&gt;is it for &amp;gt;15 days??&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Aug 2017 07:18:16 GMT</pubDate>
    <dc:creator>abc_18</dc:creator>
    <dc:date>2017-08-22T07:18:16Z</dc:date>
    <item>
      <title>Date bucket</title>
      <link>https://community.qlik.com/t5/QlikView/Date-bucket/m-p/1442616#M432721</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;Hi All,&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 have 'Created Date' field which is in format of&amp;nbsp; 3/18/2013&amp;nbsp; 10:38:11 AM.&amp;nbsp; &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I need to create buckets for&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; the dates like below&lt;/SPAN&gt;&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;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;'0-5 Days' , '6&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;-10 Days&lt;/SPAN&gt;' ,'11&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;-15 Days'&lt;/SPAN&gt; and "&amp;gt;15 Days"&amp;nbsp; .&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Aug 2017 07:04:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-bucket/m-p/1442616#M432721</guid>
      <dc:creator>abc_18</dc:creator>
      <dc:date>2017-08-22T07:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: Date bucket</title>
      <link>https://community.qlik.com/t5/QlikView/Date-bucket/m-p/1442617#M432722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would ask you to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load *, If(Day &amp;gt;=0 and Day &amp;lt;= 5, Dual('0-5 Days',1),&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;If(Day &amp;gt;=6 and Day &amp;lt;= 10, Dual('6-10 Days',2),&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;If(Day &amp;gt;=11 and Day &amp;lt;= 15, Dual('0-5 Days',3),&amp;nbsp; Dual('',4)))) as Bucket;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load [Created Date], Day([Created Date]] as Day From Table;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Aug 2017 07:09:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-bucket/m-p/1442617#M432722</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-08-22T07:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: Date bucket</title>
      <link>https://community.qlik.com/t5/QlikView/Date-bucket/m-p/1442618#M432723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use class function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;Class(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Created Date&lt;/SPAN&gt;, 5, 'Days') As DaysBucket;&lt;/P&gt;&lt;P&gt;From Location;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Aug 2017 07:15:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-bucket/m-p/1442618#M432723</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2017-08-22T07:15:28Z</dc:date>
    </item>
    <item>
      <title>Re: Date bucket</title>
      <link>https://community.qlik.com/t5/QlikView/Date-bucket/m-p/1442619#M432724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried this expression, what is for &lt;STRONG style=": ; color: #3d3d3d; font-style: inherit; font-size: 13.3333px; font-family: inherit; font-weight: inherit;"&gt;Dual('',4) ??.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #3d3d3d; font-style: inherit; font-size: 13.3333px; font-family: inherit; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #3d3d3d; font-style: inherit; font-size: 13.3333px; font-family: inherit; font-weight: inherit;"&gt;is it for &amp;gt;15 days??&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Aug 2017 07:18:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-bucket/m-p/1442619#M432724</guid>
      <dc:creator>abc_18</dc:creator>
      <dc:date>2017-08-22T07:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: Date bucket</title>
      <link>https://community.qlik.com/t5/QlikView/Date-bucket/m-p/1442620#M432725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Aug 2017 07:19:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-bucket/m-p/1442620#M432725</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-08-22T07:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: Date bucket</title>
      <link>https://community.qlik.com/t5/QlikView/Date-bucket/m-p/1442621#M432726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can I rename it like &amp;gt;15 Days??&lt;/P&gt;&lt;P&gt;because in bar chart for label where data is greater thn &amp;gt;15 is displaying blank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Aug 2017 07:21:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-bucket/m-p/1442621#M432726</guid>
      <dc:creator>abc_18</dc:creator>
      <dc:date>2017-08-22T07:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: Date bucket</title>
      <link>https://community.qlik.com/t5/QlikView/Date-bucket/m-p/1442622#M432727</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;Try 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;Load *, If(Day &amp;gt;=0 and Day &amp;lt;= 5, Dual('0-5 Days',1),&amp;nbsp; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;If(Day &amp;gt;=6 and Day &amp;lt;= 10, Dual('6-10 Days',2),&amp;nbsp; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;If(Day &amp;gt;=11 and Day &amp;lt;= 15, Dual('0-5 Days',3),&amp;nbsp; Dual('&lt;STRONG&gt;&amp;gt;15 Days&lt;/STRONG&gt;',4)))) as Bucket;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load [Created Date], Day([Created Date]] as Day From Table;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Aug 2017 07:23:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-bucket/m-p/1442622#M432727</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-08-22T07:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: Date bucket</title>
      <link>https://community.qlik.com/t5/QlikView/Date-bucket/m-p/1442623#M432728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shika,&lt;/P&gt;&lt;P&gt;I think you want to have buckets for time intervals rather than dates. Such an interval (let's call it DateDiff) might be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DateDiff = Interval(Today() - Date(Timestamp#('3/18/2013&amp;nbsp; 10:38:11 PM','M/D/YYYY&amp;nbsp; hh:mm:ss TT')),'D') giving 1617 days for this particular date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now we can put them into your buckets:&lt;/P&gt;&lt;P&gt;DateBucket = &lt;/P&gt;&lt;P&gt;Pick(&lt;/P&gt;&lt;P&gt;Match(-1,&lt;/P&gt;&lt;P&gt;DateDiff&amp;lt;=5,&lt;/P&gt;&lt;P&gt;DateDiff&amp;lt;=10,&lt;/P&gt;&lt;P&gt;DateDiff&amp;lt;=15,&lt;/P&gt;&lt;P&gt;-1),&lt;/P&gt;&lt;P&gt;'0-5 Days','6-10 Days','11-15 Days','&amp;gt;15 Days')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Aug 2017 07:48:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-bucket/m-p/1442623#M432728</guid>
      <dc:creator>effinty2112</dc:creator>
      <dc:date>2017-08-22T07:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: Date bucket</title>
      <link>https://community.qlik.com/t5/QlikView/Date-bucket/m-p/1828759#M1214222</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot_20210816-155401.png" style="width: 720px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/60138iFC535EC8C95D2EDC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot_20210816-155401.png" alt="Screenshot_20210816-155401.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;i need 1-100 days&lt;/P&gt;&lt;P&gt;100-300 days&lt;/P&gt;&lt;P&gt;300-500 days&lt;/P&gt;&lt;P&gt;500 to max&lt;/P&gt;&lt;P&gt;I have invoice date&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to create bucket wise&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Aug 2021 10:26:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-bucket/m-p/1828759#M1214222</guid>
      <dc:creator>Vijayqlik4171</dc:creator>
      <dc:date>2021-08-16T10:26:34Z</dc:date>
    </item>
  </channel>
</rss>

