<?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: Cretaing MOnth Buckets from Date Field in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Cretaing-MOnth-Buckets-from-Date-Field/m-p/1997857#M82641</link>
    <description>&lt;P class="lia-indent-padding-left-30px"&gt;FOund the missing months&lt;/P&gt;</description>
    <pubDate>Thu, 27 Oct 2022 21:23:41 GMT</pubDate>
    <dc:creator>Rehan</dc:creator>
    <dc:date>2022-10-27T21:23:41Z</dc:date>
    <item>
      <title>Cretaing MOnth Buckets from Date Field</title>
      <link>https://community.qlik.com/t5/App-Development/Cretaing-MOnth-Buckets-from-Date-Field/m-p/1997794#M82636</link>
      <description>&lt;P&gt;I have a Date field in the script and I would like to create month buckets like,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the date is Less than 30 days&amp;nbsp; from today , then 1 month,&lt;/P&gt;
&lt;P&gt;if the date is less than&amp;nbsp; 60 days old from today, Then 2 months&lt;/P&gt;
&lt;P&gt;if the date is less than&amp;nbsp; 90 days old,&amp;nbsp;from today Then 3months,&lt;/P&gt;
&lt;P&gt;anything less than 2 years old&amp;nbsp; from today , '&amp;lt;2 Years old'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My Script is as below but It is still giving me some dates not assigned to any buckets.&lt;/P&gt;
&lt;P&gt;What am I missing here??&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If([Last Reload Date] = Date(Today()),'Current',&lt;BR /&gt;If([Last Reload Date] &amp;gt; Addmonths(Date(Today()),-1) and [Last Reload Date] &amp;lt; Date(Today()),'&amp;lt;1 Month',&lt;BR /&gt;If([Last Reload Date] &amp;lt;= Addmonths(Date(Today()),-1) and [Last Reload Date] &amp;gt; Addmonths(Date(Today()),-2),'1 Month',&lt;BR /&gt;If([Last Reload Date]&amp;lt;= Addmonths(Date(Today()),-2) and [Last Reload Date] &amp;gt; Addmonths(Date(Today()),-3),'2 Months', &lt;BR /&gt;If([Last Reload Date] &amp;lt;= Addmonths(Date(Today()),-3) and [Last Reload Date] &amp;gt; Addmonths(Date(Today()),-4),'3 Months',&lt;BR /&gt;If([Last Reload Date] &amp;lt;= Addmonths(Date(Today()),-6) and [Last Reload Date] &amp;gt; Addmonths(Date(Today()),-7),'6 Months',&lt;BR /&gt;If([Last Reload Date] &amp;lt;= Addmonths(Date(Today()),-9) and [Last Reload Date] &amp;gt; Addmonths(Date(Today()),-10),'9 Months',&lt;BR /&gt;If([Last Reload Date] &amp;lt;= Addmonths(Date(Today()),-12) and [Last Reload Date] &amp;gt; Addmonths(Date(Today()),-13),'12 Months',&lt;BR /&gt;If([Last Reload Date] &amp;lt;= Addmonths(Date(Today()),-15) and [Last Reload Date] &amp;gt; Addmonths(Date(Today()),-16) ,'15 Months',&lt;BR /&gt;If([Last Reload Date] &amp;lt;= Addmonths(Date(Today()),-18) and [Last Reload Date] &amp;gt; Addmonths(Date(Today()),-19),'18 Months',&lt;BR /&gt;If([Last Reload Date] &amp;lt;= Addmonths(Date(Today()),-21) and [Last Reload Date] &amp;gt; Addmonths(Date(Today()),-22),'21 Months',&lt;BR /&gt;If([Last Reload Date] &amp;lt;= Addmonths(Date(Today()),-24) and [Last Reload Date] &amp;gt; Addmonths(Date(Today()),-25),'24 Months',&lt;BR /&gt;If([Last Reload Date] &amp;lt;= Addmonths(Date(Today()),-25), '&amp;gt; 2 Years Old'&lt;BR /&gt;)))))))))))))) as [App Reload Age]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2022 17:35:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Cretaing-MOnth-Buckets-from-Date-Field/m-p/1997794#M82636</guid>
      <dc:creator>Rehan</dc:creator>
      <dc:date>2022-10-27T17:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: Cretaing MOnth Buckets from Date Field</title>
      <link>https://community.qlik.com/t5/App-Development/Cretaing-MOnth-Buckets-from-Date-Field/m-p/1997810#M82637</link>
      <description>&lt;P&gt;There are buckets missing.&lt;BR /&gt;e.g. what bucket would you expect an 8 months old date to be assigned to?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2022 19:07:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Cretaing-MOnth-Buckets-from-Date-Field/m-p/1997810#M82637</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2022-10-27T19:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: Cretaing MOnth Buckets from Date Field</title>
      <link>https://community.qlik.com/t5/App-Development/Cretaing-MOnth-Buckets-from-Date-Field/m-p/1997811#M82638</link>
      <description>&lt;P&gt;I am trying to figure out which buckets are missing, how do I fix that . I want the&amp;nbsp; above mentioned buckets&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2022 19:11:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Cretaing-MOnth-Buckets-from-Date-Field/m-p/1997811#M82638</guid>
      <dc:creator>Rehan</dc:creator>
      <dc:date>2022-10-27T19:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: Cretaing MOnth Buckets from Date Field</title>
      <link>https://community.qlik.com/t5/App-Development/Cretaing-MOnth-Buckets-from-Date-Field/m-p/1997857#M82641</link>
      <description>&lt;P class="lia-indent-padding-left-30px"&gt;FOund the missing months&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2022 21:23:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Cretaing-MOnth-Buckets-from-Date-Field/m-p/1997857#M82641</guid>
      <dc:creator>Rehan</dc:creator>
      <dc:date>2022-10-27T21:23:41Z</dc:date>
    </item>
  </channel>
</rss>

