<?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: Separating a range of dates into different sections in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Separating-a-range-of-dates-into-different-sections/m-p/386684#M695595</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, this does the job however where I have an empty NCD, i.e. no date has been entered, this is returning "Expired" instead of "Blank"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iain&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 May 2013 13:51:30 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-05-20T13:51:30Z</dc:date>
    <item>
      <title>Separating a range of dates into different sections</title>
      <link>https://community.qlik.com/t5/QlikView/Separating-a-range-of-dates-into-different-sections/m-p/386682#M695593</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 have a range of "Next Chase Dates" (NCD), some of these will be in the past, i.e. missed, some will be within the 7 days, some 8 - 14 days and some greater than 14 days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I put the below into the script and give each section a name:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the NCD is less than today then call it “Expired”&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the NCD is today or within the next 7 days then call it “0 – 7 Days”&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the NCD&amp;nbsp; is between 8 days and 14 days greater than today then call it “8 – 14 Days”&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the NCD is greater than 14 days from today then call it “14 Days plus”&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there is no NCD then call it “blank”&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iain&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 May 2013 12:28:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Separating-a-range-of-dates-into-different-sections/m-p/386682#M695593</guid>
      <dc:creator />
      <dc:date>2013-05-20T12:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: Separating a range of dates into different sections</title>
      <link>https://community.qlik.com/t5/QlikView/Separating-a-range-of-dates-into-different-sections/m-p/386683#M695594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&lt;STRONG&gt;try this&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(num(NCD)&amp;lt;num(today()),'&lt;SPAN style="color: #ff9900;"&gt;Expired&lt;/SPAN&gt;',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(num(NCD)&amp;gt;=num(today()) and num(NCD)&amp;lt;num(today()+7),'&lt;SPAN style="color: #ff9900;"&gt;0 – 7 Days&lt;/SPAN&gt;',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(num(NCD)&amp;gt;=num(num(today()+7)) and num(NCD)&amp;lt;num(today()+14),&lt;SPAN style="color: #ff9900;"&gt;'8 – 14 Days&lt;/SPAN&gt;',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(num(NCD)&amp;gt;num(today()+14),'&lt;SPAN style="color: #ff9900;"&gt;14 Days plus&lt;/SPAN&gt;','&lt;SPAN style="color: #ff9900;"&gt;Blank&lt;/SPAN&gt;')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;)))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 May 2013 12:37:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Separating-a-range-of-dates-into-different-sections/m-p/386683#M695594</guid>
      <dc:creator />
      <dc:date>2013-05-20T12:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: Separating a range of dates into different sections</title>
      <link>https://community.qlik.com/t5/QlikView/Separating-a-range-of-dates-into-different-sections/m-p/386684#M695595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, this does the job however where I have an empty NCD, i.e. no date has been entered, this is returning "Expired" instead of "Blank"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iain&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 May 2013 13:51:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Separating-a-range-of-dates-into-different-sections/m-p/386684#M695595</guid>
      <dc:creator />
      <dc:date>2013-05-20T13:51:30Z</dc:date>
    </item>
  </channel>
</rss>

