<?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 Sorting data by years in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sorting-data-by-years/m-p/307633#M1180045</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; You should use &lt;STRONG&gt;and &lt;/STRONG&gt;condition instead of &lt;STRONG&gt;or &lt;/STRONG&gt;condition here both to be satisfied.&lt;/P&gt;&lt;P&gt;if(today()-Due_Date&amp;gt;=0 and Today()-Due_Date&amp;lt;=365,'0-1 Years',&lt;/P&gt;&lt;P&gt;if(today()-Due_Date&amp;gt;=366 and Today()-Due_Date&amp;lt;=730,'1-2 Years',&lt;/P&gt;&lt;P&gt;if(today()-Due_Date&amp;gt;=731 and Today()-Due_Date&amp;lt;=1096,'2-3 Years',&lt;/P&gt;&lt;P&gt;if(today()-Due_Date&amp;gt;=1097 and Today()-Due_Date&amp;lt;=1461,'3-4 Years',&lt;/P&gt;&lt;P&gt;if(today()-Due_Date&amp;gt;=1462,'4+ Years'))))) as Years&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Celambarasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Feb 2012 10:01:46 GMT</pubDate>
    <dc:creator>CELAMBARASAN</dc:creator>
    <dc:date>2012-02-22T10:01:46Z</dc:date>
    <item>
      <title>Sorting data by years</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-data-by-years/m-p/307632#M1180042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Courier New;"&gt;Good morning people! i'm having a problem with the following script,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Courier New;"&gt;its only giving me data from the 0-1 year line and is ignoring the rest.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;if(today()-Due_Date&amp;gt;=0 or Today()-Due_Date&amp;lt;=365,'0-1 Years',&lt;/P&gt;&lt;P&gt;if(today()-Due_Date&amp;gt;=366 or Today()-Due_Date&amp;lt;=730,'1-2 Years',&lt;/P&gt;&lt;P&gt;if(today()-Due_Date&amp;gt;=731 or Today()-Due_Date&amp;lt;=1096,'2-3 Years',&lt;/P&gt;&lt;P&gt;if(today()-Due_Date&amp;gt;=1097 or Today()-Due_Date&amp;lt;=1461,'3-4 Years',&lt;/P&gt;&lt;P&gt;if(today()-Due_Date&amp;gt;=1462,'4+ Years'))))) as Years &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;Any ideas why this is doing this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Courier New;"&gt;Kind Regards.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Courier New;"&gt;Paul.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 09:59:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-data-by-years/m-p/307632#M1180042</guid>
      <dc:creator />
      <dc:date>2012-02-22T09:59:06Z</dc:date>
    </item>
    <item>
      <title>Sorting data by years</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-data-by-years/m-p/307633#M1180045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; You should use &lt;STRONG&gt;and &lt;/STRONG&gt;condition instead of &lt;STRONG&gt;or &lt;/STRONG&gt;condition here both to be satisfied.&lt;/P&gt;&lt;P&gt;if(today()-Due_Date&amp;gt;=0 and Today()-Due_Date&amp;lt;=365,'0-1 Years',&lt;/P&gt;&lt;P&gt;if(today()-Due_Date&amp;gt;=366 and Today()-Due_Date&amp;lt;=730,'1-2 Years',&lt;/P&gt;&lt;P&gt;if(today()-Due_Date&amp;gt;=731 and Today()-Due_Date&amp;lt;=1096,'2-3 Years',&lt;/P&gt;&lt;P&gt;if(today()-Due_Date&amp;gt;=1097 and Today()-Due_Date&amp;lt;=1461,'3-4 Years',&lt;/P&gt;&lt;P&gt;if(today()-Due_Date&amp;gt;=1462,'4+ Years'))))) as Years&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Celambarasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 10:01:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-data-by-years/m-p/307633#M1180045</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-02-22T10:01:46Z</dc:date>
    </item>
    <item>
      <title>Sorting data by years</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-data-by-years/m-p/307634#M1180047</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;Use AND instead of OR in the If statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 10:29:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-data-by-years/m-p/307634#M1180047</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2012-02-22T10:29:15Z</dc:date>
    </item>
    <item>
      <title>Sorting data by years</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-data-by-years/m-p/307635#M1180048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thankyou! Much appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 10:36:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-data-by-years/m-p/307635#M1180048</guid>
      <dc:creator />
      <dc:date>2012-02-22T10:36:16Z</dc:date>
    </item>
  </channel>
</rss>

