<?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 How to create Days bucket in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-create-Days-bucket/m-p/1275274#M400656</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to display day bucket as X axis in one chart. The chart shows the data to get the info that how much data is pending from how many days (See the image).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Formula to calculate days - Num(EffectiveDate - Today())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can we create the bucket like in expected image?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you need more info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Neha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jan 2017 06:41:05 GMT</pubDate>
    <dc:creator>nehasaxena</dc:creator>
    <dc:date>2017-01-05T06:41:05Z</dc:date>
    <item>
      <title>How to create Days bucket</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-Days-bucket/m-p/1275274#M400656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to display day bucket as X axis in one chart. The chart shows the data to get the info that how much data is pending from how many days (See the image).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Formula to calculate days - Num(EffectiveDate - Today())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can we create the bucket like in expected image?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you need more info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Neha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2017 06:41:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-Days-bucket/m-p/1275274#M400656</guid>
      <dc:creator>nehasaxena</dc:creator>
      <dc:date>2017-01-05T06:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to create Days bucket</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-Days-bucket/m-p/1275275#M400657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to create a calculated dimension for it in logic of this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(EffectiveDate - Today() &amp;lt;= 1, dual('0-1 days', 1),&lt;/P&gt;&lt;P&gt;if(EffectiveDate - Today() &amp;lt;= 3, dual('2-3 days', 2),&lt;/P&gt;&lt;P&gt;if(EffectiveDate - Today() &amp;lt;= 7, dual('1 week', 3),&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then as chart-expression something like: count(YourID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of an if-loop could be also a pick(match()) used or you might transfer it into the script by using &lt;A href="https://community.qlik.com/qlik-blogpost/3497"&gt;Mapping … and not the geographical kind&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2017 07:48:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-Days-bucket/m-p/1275275#M400657</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-01-05T07:48:24Z</dc:date>
    </item>
  </channel>
</rss>

