<?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 range allocation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-range-allocation/m-p/142006#M21580</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;This calculating should be in the script.&lt;/P&gt;&lt;P&gt;For calculating the number of days between the two dates you can use:&lt;/P&gt;&lt;P&gt;INTERVAL ( DATE ( [6-may-09] , 'D-MMM-YY' ) - DATE ( [2-apr-09] , 'D-MMM-YY' ) , 'D' ) AS DiffDays (formatting your date fields with the DATE function might be necessary to make a correct comparison)&lt;/P&gt;&lt;P&gt;For your second question you could do something like this:&lt;/P&gt;&lt;P&gt;INTERVAL ( MONTHEND([2-apr-09]) - [2-apr-09] ) AS DaysToMonth1,&lt;/P&gt;&lt;P&gt;INTERVAL ( MONTHSTART([6-may-09] ) - [2-apr-09] ) AS DaysToMonth2,&lt;/P&gt;&lt;P&gt;You may need to apply some dateformatting to your datefields, if they differ from each other..&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;Regards, Sander&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Apr 2009 13:48:54 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-04-22T13:48:54Z</dc:date>
    <item>
      <title>Date range allocation</title>
      <link>https://community.qlik.com/t5/QlikView/Date-range-allocation/m-p/142005#M21579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone&lt;/P&gt;&lt;P&gt;I have a some data as date range (e.g. "2-Apr-09 ~ 6-May-09), I need to allocate the days (i.e. 32days) and distribute to the month accordingly. (e.g. Apr is 29days and May is 5days)&lt;/P&gt;&lt;P&gt;I have an no ideas how to treat it using syntax / script?&lt;/P&gt;&lt;P&gt;Can anyone help me!&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2009 11:00:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-range-allocation/m-p/142005#M21579</guid>
      <dc:creator />
      <dc:date>2009-04-22T11:00:45Z</dc:date>
    </item>
    <item>
      <title>Date range allocation</title>
      <link>https://community.qlik.com/t5/QlikView/Date-range-allocation/m-p/142006#M21580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;This calculating should be in the script.&lt;/P&gt;&lt;P&gt;For calculating the number of days between the two dates you can use:&lt;/P&gt;&lt;P&gt;INTERVAL ( DATE ( [6-may-09] , 'D-MMM-YY' ) - DATE ( [2-apr-09] , 'D-MMM-YY' ) , 'D' ) AS DiffDays (formatting your date fields with the DATE function might be necessary to make a correct comparison)&lt;/P&gt;&lt;P&gt;For your second question you could do something like this:&lt;/P&gt;&lt;P&gt;INTERVAL ( MONTHEND([2-apr-09]) - [2-apr-09] ) AS DaysToMonth1,&lt;/P&gt;&lt;P&gt;INTERVAL ( MONTHSTART([6-may-09] ) - [2-apr-09] ) AS DaysToMonth2,&lt;/P&gt;&lt;P&gt;You may need to apply some dateformatting to your datefields, if they differ from each other..&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;Regards, Sander&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2009 13:48:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-range-allocation/m-p/142006#M21580</guid>
      <dc:creator />
      <dc:date>2009-04-22T13:48:54Z</dc:date>
    </item>
    <item>
      <title>Date range allocation</title>
      <link>https://community.qlik.com/t5/QlikView/Date-range-allocation/m-p/142007#M21581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Use Interval function in Scripting(Load).&lt;/P&gt;&lt;P&gt;Use qlikview help in Interval then u get exactly??????&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2009 14:16:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-range-allocation/m-p/142007#M21581</guid>
      <dc:creator>sathishkumar_go</dc:creator>
      <dc:date>2009-04-22T14:16:47Z</dc:date>
    </item>
    <item>
      <title>Date range allocation</title>
      <link>https://community.qlik.com/t5/QlikView/Date-range-allocation/m-p/142008#M21582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Can you please further elaborate as I would like to show in table format as per attached.&lt;/P&gt;&lt;P&gt;Is it possible to do it like this?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2009 22:48:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-range-allocation/m-p/142008#M21582</guid>
      <dc:creator />
      <dc:date>2009-04-22T22:48:44Z</dc:date>
    </item>
    <item>
      <title>Date range allocation</title>
      <link>https://community.qlik.com/t5/QlikView/Date-range-allocation/m-p/142009#M21583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For a specific example that matches your question, see the QV Cookbook sample "Count days in a transaction using IntervalMatch". You can download the QV Cookbook from:&lt;/P&gt;&lt;P&gt;&lt;A href="http://robwunderlich.com/Download.html"&gt;http://robwunderlich.com/Download.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2009 01:20:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-range-allocation/m-p/142009#M21583</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2009-04-23T01:20:42Z</dc:date>
    </item>
    <item>
      <title>Date range allocation</title>
      <link>https://community.qlik.com/t5/QlikView/Date-range-allocation/m-p/142010#M21584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Plz find that attachements.&lt;/P&gt;&lt;P&gt;I think it ll solve ur problem. Anything need tell me!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2009 03:05:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-range-allocation/m-p/142010#M21584</guid>
      <dc:creator>sathishkumar_go</dc:creator>
      <dc:date>2009-04-23T03:05:13Z</dc:date>
    </item>
  </channel>
</rss>

