<?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: Define field based on date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Define-field-based-on-date/m-p/1460911#M793242</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible my month instead of days?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Jan 2018 11:30:38 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-01-09T11:30:38Z</dc:date>
    <item>
      <title>Define field based on date</title>
      <link>https://community.qlik.com/t5/QlikView/Define-field-based-on-date/m-p/1460909#M793240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please help the to create status field based on date as per below. Attached source data. &lt;/P&gt;&lt;P&gt;&lt;IMG alt="imglo.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/189390_imglo.PNG" style="height: 82px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Define-field-based-on-date/m-p/1460909#M793240</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Define field based on date</title>
      <link>https://community.qlik.com/t5/QlikView/Define-field-based-on-date/m-p/1460910#M793241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;try to use interval function to find date diff. and then create conditional statement to have year age group bucket.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Method 1:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;like this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;load *, if( Numberofdays&amp;lt;=31 or Numberofdays&amp;lt;=30 or Numberofdays&amp;lt;=28 or Numberofdays&amp;lt;=29, Dual('New Month',1),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; if( Numberofdays &amp;gt;31 and (Numberofdays&amp;lt;=365 or Numberofdays&amp;lt;=366), Dual('1 Year',2),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; if( Numberofdays &amp;gt;365 and (Numberofdays&amp;lt;=732 or Numberofdays&amp;lt;=731), Dual('2-3 Year',3),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; if( Numberofdays &amp;gt;1460 and (Numberofdays&amp;lt;=1825 ), Dual('4-5 Year',4),Dual('&amp;gt;5 Years',5)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; )))) as Bucket;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;load *, Today()-[sales date] as Numberofdays;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;LOAD [Cust ID],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sales ITM],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [sales date]&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3821"&gt;Buckets&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/189391_Capture.JPG" style="height: 348px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jan 2018 06:09:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Define-field-based-on-date/m-p/1460910#M793241</guid>
      <dc:creator>devarasu07</dc:creator>
      <dc:date>2018-01-09T06:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: Define field based on date</title>
      <link>https://community.qlik.com/t5/QlikView/Define-field-based-on-date/m-p/1460911#M793242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible my month instead of days?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jan 2018 11:30:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Define-field-based-on-date/m-p/1460911#M793242</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-09T11:30:38Z</dc:date>
    </item>
  </channel>
</rss>

