<?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 New calculated time field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/New-calculated-time-field/m-p/321600#M1199484</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am loading a table with the following two fields:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Date of last payment&lt;/LI&gt;&lt;LI&gt;Date of last purchase&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I would like to create an additional field called "Days since last movement".&lt;/P&gt;&lt;P&gt;This must look at whatever is the latest date of the two above-mentioned fields, and then subtract that from TODAY's date.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Date of last payment - 2011/04/10&lt;/LI&gt;&lt;LI&gt;Date of last purchase - 2011/04/01&lt;/LI&gt;&lt;LI&gt;Days since last movement = 4&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Possible?&lt;/P&gt;&lt;P&gt;Gerhard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Apr 2011 15:48:46 GMT</pubDate>
    <dc:creator>gerhardl</dc:creator>
    <dc:date>2011-04-14T15:48:46Z</dc:date>
    <item>
      <title>New calculated time field</title>
      <link>https://community.qlik.com/t5/QlikView/New-calculated-time-field/m-p/321600#M1199484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am loading a table with the following two fields:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Date of last payment&lt;/LI&gt;&lt;LI&gt;Date of last purchase&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I would like to create an additional field called "Days since last movement".&lt;/P&gt;&lt;P&gt;This must look at whatever is the latest date of the two above-mentioned fields, and then subtract that from TODAY's date.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Date of last payment - 2011/04/10&lt;/LI&gt;&lt;LI&gt;Date of last purchase - 2011/04/01&lt;/LI&gt;&lt;LI&gt;Days since last movement = 4&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Possible?&lt;/P&gt;&lt;P&gt;Gerhard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2011 15:48:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/New-calculated-time-field/m-p/321600#M1199484</guid>
      <dc:creator>gerhardl</dc:creator>
      <dc:date>2011-04-14T15:48:46Z</dc:date>
    </item>
    <item>
      <title>New calculated time field</title>
      <link>https://community.qlik.com/t5/QlikView/New-calculated-time-field/m-p/321601#M1199485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create two variables...&lt;/P&gt;&lt;P style="font-weight: bold"&gt;vMaxLastPayment = Max({1} [Date of last payment])&lt;/P&gt;&lt;P style="font-weight: bold"&gt;vMaxLastPurchase = Max({1} [Date of last purchase])&lt;/P&gt;&lt;P&gt;Then use Max fucntion with the variables like this...&lt;/P&gt;&lt;P style="font-weight: bold"&gt;=Today() - Max($(vMaxLastPayment) , $(vMaxLastPurchase))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2011 16:03:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/New-calculated-time-field/m-p/321601#M1199485</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2011-04-14T16:03:19Z</dc:date>
    </item>
    <item>
      <title>New calculated time field</title>
      <link>https://community.qlik.com/t5/QlikView/New-calculated-time-field/m-p/321602#M1199486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;load date2, date3, if(date2&amp;gt;date3, interval(date(today())- date(date2),'DD'), interval(date(today())- date(date3),'DD')) as movement&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2011 16:06:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/New-calculated-time-field/m-p/321602#M1199486</guid>
      <dc:creator />
      <dc:date>2011-04-14T16:06:40Z</dc:date>
    </item>
    <item>
      <title>New calculated time field</title>
      <link>https://community.qlik.com/t5/QlikView/New-calculated-time-field/m-p/321603#M1199487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try something like this:&lt;/P&gt;&lt;P&gt;Load *,&lt;/P&gt;&lt;P&gt;today()-if(LastPayment&amp;gt;LastPurchase,LastPayment,LastPurchase) as DaysLastMovement&lt;/P&gt;&lt;P&gt;resident table;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2011 18:28:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/New-calculated-time-field/m-p/321603#M1199487</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-04-14T18:28:51Z</dc:date>
    </item>
    <item>
      <title>New calculated time field</title>
      <link>https://community.qlik.com/t5/QlikView/New-calculated-time-field/m-p/321604#M1199488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;today(1)-RangeMax(LastPurchase,LastPayment) as DaysLastMovement&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2011 18:37:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/New-calculated-time-field/m-p/321604#M1199488</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2011-04-14T18:37:11Z</dc:date>
    </item>
  </channel>
</rss>

