<?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 Create groups by Range of Days in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-groups-by-Range-of-Days/m-p/348218#M705415</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Don't think the Mod function will work as Open Date of 1/2/2012 and Close Date of 1/22/2012 (20 days difference) will be selected with the one like Open Date 1/2/2012 and Close Date of 1/12/2012 (10 days difference).&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 May 2012 20:51:19 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-05-11T20:51:19Z</dc:date>
    <item>
      <title>Create groups by Range of Days</title>
      <link>https://community.qlik.com/t5/QlikView/Create-groups-by-Range-of-Days/m-p/348215#M705412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; What is the best way to create groups in script outside of nested IF() statements using the delta between open and closed dates?&amp;nbsp; Example:&amp;nbsp; if(close date - open date &amp;lt; 10 days then 0 to 9, if( close date - open date is between 10 and 20 then 10 to 20, etc.....&amp;nbsp; How would you use the interval() function for this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2012 17:13:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-groups-by-Range-of-Days/m-p/348215#M705412</guid>
      <dc:creator />
      <dc:date>2012-05-11T17:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: Create groups by Range of Days</title>
      <link>https://community.qlik.com/t5/QlikView/Create-groups-by-Range-of-Days/m-p/348216#M705413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could use the following interval statement to get the number of days between two dates:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;interval(floor([Date End]) - floor([Date Start]),'D') as [Days Between Dates]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2012 19:32:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-groups-by-Range-of-Days/m-p/348216#M705413</guid>
      <dc:creator>john_duffy</dc:creator>
      <dc:date>2012-05-11T19:32:29Z</dc:date>
    </item>
    <item>
      <title>Create groups by Range of Days</title>
      <link>https://community.qlik.com/t5/QlikView/Create-groups-by-Range-of-Days/m-p/348217#M705414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You could use the module function, with mod = 10 like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load * INLINE[&lt;/P&gt;&lt;P&gt;[Open Date],&lt;/P&gt;&lt;P&gt;[Close Date],&lt;/P&gt;&lt;P&gt;round(mod(([Close Date]-[Open Date]),10) as Range&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2012 20:27:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-groups-by-Range-of-Days/m-p/348217#M705414</guid>
      <dc:creator>chematos</dc:creator>
      <dc:date>2012-05-11T20:27:23Z</dc:date>
    </item>
    <item>
      <title>Create groups by Range of Days</title>
      <link>https://community.qlik.com/t5/QlikView/Create-groups-by-Range-of-Days/m-p/348218#M705415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Don't think the Mod function will work as Open Date of 1/2/2012 and Close Date of 1/22/2012 (20 days difference) will be selected with the one like Open Date 1/2/2012 and Close Date of 1/12/2012 (10 days difference).&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2012 20:51:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-groups-by-Range-of-Days/m-p/348218#M705415</guid>
      <dc:creator />
      <dc:date>2012-05-11T20:51:19Z</dc:date>
    </item>
    <item>
      <title>Create groups by Range of Days</title>
      <link>https://community.qlik.com/t5/QlikView/Create-groups-by-Range-of-Days/m-p/348219#M705416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Debb,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the below mention script at load time :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: blue; font-family: 'Courier New';"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: blue; font-family: 'Courier New';"&gt;num&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: blue; font-family: 'Courier New';"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: maroon; font-family: 'Courier New';"&gt;CloseDateField&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;)) - &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: blue; font-family: 'Courier New';"&gt;num&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: blue; font-family: 'Courier New';"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: maroon; font-family: 'Courier New';"&gt;OpenDateField&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;)) &amp;lt; 10,'0 - 9',&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: blue; font-family: 'Courier New';"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: blue; font-family: 'Courier New';"&gt;num&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: blue; font-family: 'Courier New';"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: maroon; font-family: 'Courier New';"&gt;CloseDateField&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;)) - &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: blue; font-family: 'Courier New';"&gt;num&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: blue; font-family: 'Courier New';"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: maroon; font-family: 'Courier New';"&gt;OpenDateField&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;)) &amp;gt;=10 &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: blue; font-family: 'Courier New';"&gt;and&lt;/SPAN&gt; &lt;SPAN style="font-size: 9pt; color: blue; font-family: 'Courier New';"&gt;num&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: blue; font-family: 'Courier New';"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: maroon; font-family: 'Courier New';"&gt;CloseDateField&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;)) - &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: blue; font-family: 'Courier New';"&gt;num&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: blue; font-family: 'Courier New';"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: maroon; font-family: 'Courier New';"&gt;OpenDateField&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;)) &amp;lt;20 ,'10 - 20')) &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: blue; font-family: 'Courier New';"&gt;as&lt;/SPAN&gt; &lt;SPAN style="font-size: 9pt; color: maroon; font-family: 'Courier New';"&gt;Date_Range&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;Then Use the Date_Range column to create the charts.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;Nilesh Gangurde&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 May 2012 05:59:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-groups-by-Range-of-Days/m-p/348219#M705416</guid>
      <dc:creator>nilesh_gangurde</dc:creator>
      <dc:date>2012-05-12T05:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: Create groups by Range of Days</title>
      <link>https://community.qlik.com/t5/QlikView/Create-groups-by-Range-of-Days/m-p/348220#M705417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of Interval(), try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Floor((CloseDate-OpenDate)/10)*10 &amp;amp; ' to ' &amp;amp; (Floor((CloseDate-OpenDate)/10)*10+9)&amp;nbsp;&amp;nbsp;&amp;nbsp; AS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Range&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 May 2012 14:07:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-groups-by-Range-of-Days/m-p/348220#M705417</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-05-12T14:07:33Z</dc:date>
    </item>
    <item>
      <title>Create groups by Range of Days</title>
      <link>https://community.qlik.com/t5/QlikView/Create-groups-by-Range-of-Days/m-p/348221#M705418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are right &lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://community.qlik.com/people/sjcharles" id="jive-261125430578282954034" style="background-color: #f9f9f9; font-size: 12px; color: #007fc0; font-weight: bold; font-family: Arial; text-align: center;"&gt;sjcharles&lt;/A&gt;, mod is not necessary, with a simple division you could get the result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;Load * INLINE[&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;[Open Date],&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;[Close Date],&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;If(&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #ffffff;"&gt;[Close Date]-[Open Date]&amp;gt;0,&lt;/SPAN&gt;round(([Close Date]-[Open Date])/10),0) as Range&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chema&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2012 12:33:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-groups-by-Range-of-Days/m-p/348221#M705418</guid>
      <dc:creator>chematos</dc:creator>
      <dc:date>2012-05-14T12:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: Create groups by Range of Days</title>
      <link>https://community.qlik.com/t5/QlikView/Create-groups-by-Range-of-Days/m-p/348222#M705419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this is help&amp;nbsp; for you.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2012 14:14:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-groups-by-Range-of-Days/m-p/348222#M705419</guid>
      <dc:creator />
      <dc:date>2012-05-14T14:14:30Z</dc:date>
    </item>
  </channel>
</rss>

