<?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: Can we calculate difference between two date variables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Can-we-calculate-difference-between-two-date-variables/m-p/1275577#M861717</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please find the attached QVD.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jan 2017 07:06:34 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-01-05T07:06:34Z</dc:date>
    <item>
      <title>Can we calculate difference between two date variables</title>
      <link>https://community.qlik.com/t5/QlikView/Can-we-calculate-difference-between-two-date-variables/m-p/1275571#M861711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having two date variables V_Startdate and V_Enddate need to calculate Difference between the two date in expression, can any one help me.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;=V_End_Date &lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;- &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;V_Start_Date &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt; &lt;/P&gt;&lt;P&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/Can-we-calculate-difference-between-two-date-variables/m-p/1275571#M861711</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Can we calculate difference between two date variables</title>
      <link>https://community.qlik.com/t5/QlikView/Can-we-calculate-difference-between-two-date-variables/m-p/1275572#M861712</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; What do you expecting, If You want calculate between days use interval# or Hours/Mins use interval function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like:-&lt;/P&gt;&lt;P&gt;Interval(&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 8pt; font-family: inherit; color: #808080;"&gt;V_End_Date &lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;- &lt;/SPAN&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 8pt; font-family: inherit; color: #808080;"&gt;V_Start_Date&lt;/EM&gt;&lt;/STRONG&gt;,'mm')&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;Interval(&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 8pt; font-family: inherit; color: #808080;"&gt;V_End_Date &lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;- &lt;/SPAN&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 8pt; font-family: inherit; color: #808080;"&gt;V_Start_Date&lt;/EM&gt;&lt;/STRONG&gt;,'HH') &lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Interval(&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 8pt; font-family: inherit; color: #808080;"&gt;V_End_Date &lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;- &lt;/SPAN&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 8pt; font-family: inherit; color: #808080;"&gt;V_Start_Date&lt;/EM&gt;&lt;/STRONG&gt;,'hh:mm:ss') &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Interval#(&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 8pt; font-family: inherit; color: #808080;"&gt;V_End_Date &lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;- &lt;/SPAN&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 8pt; font-family: inherit; color: #808080;"&gt;V_Start_Date&lt;/EM&gt;&lt;/STRONG&gt;,'DD') &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Regards,&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2017 04:59:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-we-calculate-difference-between-two-date-variables/m-p/1275572#M861712</guid>
      <dc:creator>pathiqvd</dc:creator>
      <dc:date>2017-01-05T04:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: Can we calculate difference between two date variables</title>
      <link>https://community.qlik.com/t5/QlikView/Can-we-calculate-difference-between-two-date-variables/m-p/1275573#M861713</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;Please find the attached screen shots. in want to calculate No of days between 01-Jul-2015 to 31-Dec-2015. but&amp;nbsp; no output was showing.&lt;/P&gt;&lt;P&gt;Expression:&lt;IMG alt="Expression.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/148388_Expression.JPG" style="height: 517px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Variables &lt;IMG alt="Variables.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/148389_Variables.JPG" style="height: 452px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Output&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Output.JPG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/148390_Output.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2017 06:25:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-we-calculate-difference-between-two-date-variables/m-p/1275573#M861713</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-05T06:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: Can we calculate difference between two date variables</title>
      <link>https://community.qlik.com/t5/QlikView/Can-we-calculate-difference-between-two-date-variables/m-p/1275574#M861714</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;&amp;nbsp;&amp;nbsp;&amp;nbsp; May be your dates are not in date format.Please convert to date format using date#, Then check it will work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date(date#(v_start_date,'DD-MMM-YYYY'),'DD-MM-YYYY')&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;date(date#(v_end_date,'DD-MMM-YYYY'),'DD-MM-YYYY')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Regards,&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2017 06:34:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-we-calculate-difference-between-two-date-variables/m-p/1275574#M861714</guid>
      <dc:creator>pathiqvd</dc:creator>
      <dc:date>2017-01-05T06:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: Can we calculate difference between two date variables</title>
      <link>https://community.qlik.com/t5/QlikView/Can-we-calculate-difference-between-two-date-variables/m-p/1275575#M861715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Changed Even also there was no Result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Interval#(Date(V_End_Date,'DD-MMM-YYYY')-Date#(V_Start_Date,'DD-MMM-YYYY'),'DD')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2017 06:48:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-we-calculate-difference-between-two-date-variables/m-p/1275575#M861715</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-05T06:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: Can we calculate difference between two date variables</title>
      <link>https://community.qlik.com/t5/QlikView/Can-we-calculate-difference-between-two-date-variables/m-p/1275576#M861716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you send the Application&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2017 06:51:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-we-calculate-difference-between-two-date-variables/m-p/1275576#M861716</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-01-05T06:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: Can we calculate difference between two date variables</title>
      <link>https://community.qlik.com/t5/QlikView/Can-we-calculate-difference-between-two-date-variables/m-p/1275577#M861717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please find the attached QVD.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2017 07:06:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-we-calculate-difference-between-two-date-variables/m-p/1275577#M861717</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-05T07:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: Can we calculate difference between two date variables</title>
      <link>https://community.qlik.com/t5/QlikView/Can-we-calculate-difference-between-two-date-variables/m-p/1275578#M861718</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Can you send data or application?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2017 07:07:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-we-calculate-difference-between-two-date-variables/m-p/1275578#M861718</guid>
      <dc:creator>pathiqvd</dc:creator>
      <dc:date>2017-01-05T07:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: Can we calculate difference between two date variables</title>
      <link>https://community.qlik.com/t5/QlikView/Can-we-calculate-difference-between-two-date-variables/m-p/1275579#M861719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Lakshmipathi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the Qvw.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2017 07:09:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-we-calculate-difference-between-two-date-variables/m-p/1275579#M861719</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-05T07:09:37Z</dc:date>
    </item>
    <item>
      <title>Re: Can we calculate difference between two date variables</title>
      <link>https://community.qlik.com/t5/QlikView/Can-we-calculate-difference-between-two-date-variables/m-p/1275580#M861720</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;Try to convert the variables into proper date format and then use interval.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attaching my application for reference.&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Navya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2017 07:09:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-we-calculate-difference-between-two-date-variables/m-p/1275580#M861720</guid>
      <dc:creator />
      <dc:date>2017-01-05T07:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: Can we calculate difference between two date variables</title>
      <link>https://community.qlik.com/t5/QlikView/Can-we-calculate-difference-between-two-date-variables/m-p/1275581#M861721</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; Please find below image, Change date format in variable overview you will get&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Date.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/148378_Date.JPG" style="height: 280px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2017 07:20:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-we-calculate-difference-between-two-date-variables/m-p/1275581#M861721</guid>
      <dc:creator>pathiqvd</dc:creator>
      <dc:date>2017-01-05T07:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: Can we calculate difference between two date variables</title>
      <link>https://community.qlik.com/t5/QlikView/Can-we-calculate-difference-between-two-date-variables/m-p/1275582#M861722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rafeee,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create variables like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =date#('03_Mar_2015','DD_MMM_YYYY')&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;date2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =date#('31_Dec_2015','DD_MMM_YYYY')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;=date2-date1&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;returm 303&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2017 07:40:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-we-calculate-difference-between-two-date-variables/m-p/1275582#M861722</guid>
      <dc:creator />
      <dc:date>2017-01-05T07:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: Can we calculate difference between two date variables</title>
      <link>https://community.qlik.com/t5/QlikView/Can-we-calculate-difference-between-two-date-variables/m-p/1275583#M861723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rafeee,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried this,its working for me.the difference between the dates are 183 days.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/148399_1.PNG" style="height: 28px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/148401_2.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;(or)&lt;/P&gt;&lt;P&gt;try with interval function,&lt;/P&gt;&lt;P&gt;=interval(date(date#(vend_date,'DD-MMM-YYYY'),'DD-MM-YYYY')-date(date#(vstart_date,'DD-MMM-YYYY'),'DD-MM-YYYY'),'DD')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--surendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2017 07:55:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-we-calculate-difference-between-two-date-variables/m-p/1275583#M861723</guid>
      <dc:creator>surendraj</dc:creator>
      <dc:date>2017-01-05T07:55:53Z</dc:date>
    </item>
  </channel>
</rss>

