<?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 Calculate the difference between 2 dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculate-the-difference-between-2-dates/m-p/221013#M73870</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Download it again. I have corrected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Apr 2011 17:35:25 GMT</pubDate>
    <dc:creator>christian77</dc:creator>
    <dc:date>2011-04-19T17:35:25Z</dc:date>
    <item>
      <title>Calculate the difference between 2 dates</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-the-difference-between-2-dates/m-p/221007#M73864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dears,&lt;/P&gt;&lt;P&gt;I've another problem.&lt;BR /&gt;On the column A of my spreadsheet I have the Inicial Date values (Value in date format) and in the column B of my spreadhsheet I have the Final Date values (Value in date format) too.&lt;/P&gt;&lt;P&gt;I would like to calculate the difference between this 2 dates in a Text Object.&lt;/P&gt;&lt;P&gt;I tried to do the expression bellow, but it didn't work.&lt;/P&gt;&lt;P&gt;="[Initial Date]-[Final Date]"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What should I do?&lt;BR /&gt;Can you help me?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks again for your attention&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2011 21:05:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-the-difference-between-2-dates/m-p/221007#M73864</guid>
      <dc:creator />
      <dc:date>2011-04-18T21:05:04Z</dc:date>
    </item>
    <item>
      <title>Calculate the difference between 2 dates</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-the-difference-between-2-dates/m-p/221008#M73865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well there are a few problems here...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have one initial date and one final date selected =[Initial Date]-[Final Date] will return a value, but if you don't it won't return anything. If you have multiple dates selected (or nothing selected) you need to use dimensions so use a chart or use aggr in the text object (which isn't what you want in this case).&lt;/P&gt;&lt;P&gt;Also, I don't know what the quotes are for your text object... just do =[Initial Date]-[Final Date].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you either need to use a chart with one of those dates as the dimension or select only one [Initial Date] and only one [Final Date] if you really want to put it in a text object (or you could use set analysis and variables but you didn't give any indication that that would solve your problem).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2011 21:26:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-the-difference-between-2-dates/m-p/221008#M73865</guid>
      <dc:creator />
      <dc:date>2011-04-18T21:26:12Z</dc:date>
    </item>
    <item>
      <title>Calculate the difference between 2 dates</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-the-difference-between-2-dates/m-p/221009#M73866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What I wanna do is to show the average difference between the Initial date and the Final date.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Follow attached is an example of what I wanna do.&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;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2011 17:10:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-the-difference-between-2-dates/m-p/221009#M73866</guid>
      <dc:creator />
      <dc:date>2011-04-19T17:10:17Z</dc:date>
    </item>
    <item>
      <title>Calculate the difference between 2 dates</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-the-difference-between-2-dates/m-p/221010#M73867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As a quick answer (not looking at your example), I guess you need to do as Trent has suggested and use the average function:&lt;/P&gt;&lt;P&gt;=avg([Final Date]-[Initial Date])&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2011 17:19:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-the-difference-between-2-dates/m-p/221010#M73867</guid>
      <dc:creator>chris_johnson</dc:creator>
      <dc:date>2011-04-19T17:19:55Z</dc:date>
    </item>
    <item>
      <title>Calculate the difference between 2 dates</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-the-difference-between-2-dates/m-p/221011#M73868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kellybastos:&lt;/P&gt;&lt;P&gt;It´s not possible to see it in a text box at least you select only one record.&lt;/P&gt;&lt;P&gt;Do [Final Date]-[Initial Date] anywhere and you´ll have that difference in days. Check the script, it´s done there. Check the table, both are the same result. Before or after, but remember, in a text box: which record to operate or to show?&lt;/P&gt;&lt;P&gt;Ok.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2011 17:29:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-the-difference-between-2-dates/m-p/221011#M73868</guid>
      <dc:creator>christian77</dc:creator>
      <dc:date>2011-04-19T17:29:00Z</dc:date>
    </item>
    <item>
      <title>Calculate the difference between 2 dates</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-the-difference-between-2-dates/m-p/221012#M73869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your support.&lt;/P&gt;&lt;P&gt;But I need to show the AVERAGE time (in days) to finish the service.&lt;/P&gt;&lt;P&gt;So, in your example, I want to show the average of the ListBox Dif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2011 17:33:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-the-difference-between-2-dates/m-p/221012#M73869</guid>
      <dc:creator />
      <dc:date>2011-04-19T17:33:47Z</dc:date>
    </item>
    <item>
      <title>Calculate the difference between 2 dates</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-the-difference-between-2-dates/m-p/221013#M73870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Download it again. I have corrected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2011 17:35:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-the-difference-between-2-dates/m-p/221013#M73870</guid>
      <dc:creator>christian77</dc:creator>
      <dc:date>2011-04-19T17:35:25Z</dc:date>
    </item>
    <item>
      <title>Calculate the difference between 2 dates</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-the-difference-between-2-dates/m-p/221014#M73871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greate Christian. It's working perfectly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This FORUM is the best, ever!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2011 17:44:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-the-difference-between-2-dates/m-p/221014#M73871</guid>
      <dc:creator />
      <dc:date>2011-04-19T17:44:33Z</dc:date>
    </item>
  </channel>
</rss>

