<?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: Count the days between two dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-the-days-between-two-dates/m-p/942232#M324818</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=fabs(Date(EndDate,'DD/MM/YYYY')) - fabs(Date(StartDate,'DD/MM/YYYY'))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Sep 2015 06:41:16 GMT</pubDate>
    <dc:creator>gautik92</dc:creator>
    <dc:date>2015-09-14T06:41:16Z</dc:date>
    <item>
      <title>Count the days between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Count-the-days-between-two-dates/m-p/942230#M324816</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;Can you tell me how can I count the days between two dates ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to create a chart with opened cases and I have to create some dimensions in days. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;7 days 14-14 days 14-30 days 30-90 days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="print.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/98798_print.png" style="height: 364px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Similar to this chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I don't have any ideas how to do this. Can you give me a clue ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 06:36:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-the-days-between-two-dates/m-p/942230#M324816</guid>
      <dc:creator />
      <dc:date>2015-09-14T06:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: Count the days between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Count-the-days-between-two-dates/m-p/942231#M324817</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;Can you share your qvw file or sample file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 06:40:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-the-days-between-two-dates/m-p/942231#M324817</guid>
      <dc:creator />
      <dc:date>2015-09-14T06:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: Count the days between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Count-the-days-between-two-dates/m-p/942232#M324818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=fabs(Date(EndDate,'DD/MM/YYYY')) - fabs(Date(StartDate,'DD/MM/YYYY'))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 06:41:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-the-days-between-two-dates/m-p/942232#M324818</guid>
      <dc:creator>gautik92</dc:creator>
      <dc:date>2015-09-14T06:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: Count the days between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Count-the-days-between-two-dates/m-p/942233#M324819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is not working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 06:50:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-the-days-between-two-dates/m-p/942233#M324819</guid>
      <dc:creator />
      <dc:date>2015-09-14T06:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: Count the days between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Count-the-days-between-two-dates/m-p/942234#M324820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use a calculated dimension with an if condition like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (Interval(DateField2 - DateField1,'D')&amp;lt;7,'&amp;lt;7 days',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if(Interval(DateField2 - DateField1,'D')&amp;gt;7 and Interval(DateField2 - DateField1,'D')&amp;lt;14,'7-14 days',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if(Interval(DateField2 - DateField1,'D')&amp;gt;14 and Interval(DateField2 - DateField1,'D')&amp;lt;30,'14-30 days',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if(Interval(DateField2 - DateField1,'D')&amp;gt;30 and Interval(DateField2 - DateField1,'D')&amp;lt;90,'30-90 days','&amp;gt;90 Days'))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hth&lt;/P&gt;&lt;P&gt;Sasi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 06:50:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-the-days-between-two-dates/m-p/942234#M324820</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2015-09-14T06:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: Count the days between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Count-the-days-between-two-dates/m-p/942235#M324821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you share sample qvw file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 06:57:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-the-days-between-two-dates/m-p/942235#M324821</guid>
      <dc:creator>gautik92</dc:creator>
      <dc:date>2015-09-14T06:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: Count the days between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Count-the-days-between-two-dates/m-p/942236#M324822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If date field don't have time stamp&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(todate)-date(frondate) as date-count&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If time stamp first u have to trim the time then use above statement &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 07:02:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-the-days-between-two-dates/m-p/942236#M324822</guid>
      <dc:creator />
      <dc:date>2015-09-14T07:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: Count the days between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Count-the-days-between-two-dates/m-p/942237#M324823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;have a look at &lt;STRONG style="font-size: 11.7px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/people/jontydkpi"&gt;jontydkpi&lt;/A&gt;&lt;/STRONG&gt; reply for the thread&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/760872"&gt;difference between two dates.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;it might help you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 07:08:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-the-days-between-two-dates/m-p/942237#M324823</guid>
      <dc:creator>gautik92</dc:creator>
      <dc:date>2015-09-14T07:08:02Z</dc:date>
    </item>
    <item>
      <title>Re: Count the days between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Count-the-days-between-two-dates/m-p/942238#M324824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you ! Very helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 07:15:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-the-days-between-two-dates/m-p/942238#M324824</guid>
      <dc:creator />
      <dc:date>2015-09-14T07:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: Count the days between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Count-the-days-between-two-dates/m-p/942239#M324825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 07:15:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-the-days-between-two-dates/m-p/942239#M324825</guid>
      <dc:creator />
      <dc:date>2015-09-14T07:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: Count the days between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Count-the-days-between-two-dates/m-p/942240#M324826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks you so much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2016 22:32:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-the-days-between-two-dates/m-p/942240#M324826</guid>
      <dc:creator />
      <dc:date>2016-04-28T22:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Count the days between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Count-the-days-between-two-dates/m-p/942241#M324827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you can put this in the load script it would be more efficient than putting this expression in as your dimension in the chart.&amp;nbsp; I'm new to Sense also so I am not sure if you can use the Interval function in your syntax if you put this "IF" in the load script, but you can try it as&lt;/P&gt;&lt;P style="font-size: 20px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;@Sasidhar Parupudi &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;mentioned in his post.&amp;nbsp; His response is correct - I just had to do something similar in QlikView and it was mentioned to put it in the load script if possible for better performance. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 20px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 20px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if (Interval(DateField2 - DateField1,'D')&amp;lt;7,'&amp;lt;7 days',&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; if(Interval(DateField2 - DateField1,'D')&amp;gt;7 and Interval(DateField2 - DateField1,'D')&amp;lt;14,'7-14 days',&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; if(Interval(DateField2 - DateField1,'D')&amp;gt;14 and Interval(DateField2 - DateField1,'D')&amp;lt;30,'14-30 days',&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; if(Interval(DateField2 - DateField1,'D')&amp;gt;30 and Interval(DateField2 - DateField1,'D')&amp;lt;90,'30-90 days','&amp;gt;90 Days'))))&lt;STRONG&gt; AS Interval&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jul 2017 23:09:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-the-days-between-two-dates/m-p/942241#M324827</guid>
      <dc:creator>mjtaft2017</dc:creator>
      <dc:date>2017-07-18T23:09:13Z</dc:date>
    </item>
  </channel>
</rss>

