<?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 Date calculation with both fixed and unfixed end date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-calculation-with-both-fixed-and-unfixed-end-date/m-p/209431#M1209089</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Nicky,&lt;/P&gt;&lt;P&gt;I gonna try with your solution as well&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Jan 2010 10:56:58 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-01-21T10:56:58Z</dc:date>
    <item>
      <title>Date calculation with both fixed and unfixed end date</title>
      <link>https://community.qlik.com/t5/QlikView/Date-calculation-with-both-fixed-and-unfixed-end-date/m-p/209427#M1209085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a customer file with a field "date of subscription" and a field "date of unsubscription". Both customers (still active and unsubcripted) are included in the file. For 'still active' customers, there is just "-" as data in "date of unsubscription".&lt;/P&gt;&lt;P&gt;I'd like to count the number of days customers get a subscription. I have thus two problems :&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;write the good formula to calculate between 2 dates&lt;/LI&gt;&lt;LI&gt;evaluate each day who are the still active customers and recalculate the datas for them.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd be glad if someone could help me. This is not very easy for a beginner coming from Excel,&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Julien&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2010 19:06:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-calculation-with-both-fixed-and-unfixed-end-date/m-p/209427#M1209085</guid>
      <dc:creator />
      <dc:date>2010-01-20T19:06:21Z</dc:date>
    </item>
    <item>
      <title>Date calculation with both fixed and unfixed end date</title>
      <link>https://community.qlik.com/t5/QlikView/Date-calculation-with-both-fixed-and-unfixed-end-date/m-p/209428#M1209086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We often use the function Today() for an open end date. That gives you a way of calculating the number current subscription days (active subscription has date today).&lt;/P&gt;&lt;P&gt;To calculate between two days, you only have to subtract them from each other to get the number of days.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2010 19:27:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-calculation-with-both-fixed-and-unfixed-end-date/m-p/209428#M1209086</guid>
      <dc:creator />
      <dc:date>2010-01-20T19:27:40Z</dc:date>
    </item>
    <item>
      <title>Date calculation with both fixed and unfixed end date</title>
      <link>https://community.qlik.com/t5/QlikView/Date-calculation-with-both-fixed-and-unfixed-end-date/m-p/209429#M1209087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Julien, I'd suggest the same as Mark - use a variable field for current date to give you a value for calculating the number of subscription days for active customers.&lt;/P&gt;&lt;P&gt;I'd also suggest creating a flag (this can be done within your load script) to idently active customers, e.g. if "date of unsubscription" is null then 1 else 0 (the 1 denoting an active customer, the 0 denoting an inactive customer). This will give you a way to compare subscriptions between the two customer groups.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2010 21:49:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-calculation-with-both-fixed-and-unfixed-end-date/m-p/209429#M1209087</guid>
      <dc:creator />
      <dc:date>2010-01-20T21:49:43Z</dc:date>
    </item>
    <item>
      <title>Date calculation with both fixed and unfixed end date</title>
      <link>https://community.qlik.com/t5/QlikView/Date-calculation-with-both-fixed-and-unfixed-end-date/m-p/209430#M1209088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Mark.&lt;/P&gt;&lt;P&gt;I thought I needed to use Today () but I was not sure exactly how and where to do it. The tips of Nicky emphasizes your advice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Julien&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 10:37:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-calculation-with-both-fixed-and-unfixed-end-date/m-p/209430#M1209088</guid>
      <dc:creator />
      <dc:date>2010-01-21T10:37:42Z</dc:date>
    </item>
    <item>
      <title>Date calculation with both fixed and unfixed end date</title>
      <link>https://community.qlik.com/t5/QlikView/Date-calculation-with-both-fixed-and-unfixed-end-date/m-p/209431#M1209089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Nicky,&lt;/P&gt;&lt;P&gt;I gonna try with your solution as well&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 10:56:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-calculation-with-both-fixed-and-unfixed-end-date/m-p/209431#M1209089</guid>
      <dc:creator />
      <dc:date>2010-01-21T10:56:58Z</dc:date>
    </item>
  </channel>
</rss>

