<?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: Generate all months (not month difference) between two dates in a resultset in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Generate-all-months-not-month-difference-between-two-dates-in-a/m-p/837277#M1016647</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Henric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to do a similar thing: &lt;A _jive_internal="true" href="https://community.qlik.com/message/1203899?et=watches.email.thread#1203899" title="https://community.qlik.com/message/1203899?et=watches.email.thread#1203899"&gt;https://community.qlik.com/message/1203899?et=watches.email.thread#1203899&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Do I need to write your code in a separate table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Quotes:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;distinct [Elo Project Id] as [Elo Project ID],&lt;/P&gt;&lt;P&gt;[Quote number],&lt;/P&gt;&lt;P&gt;[Quote type],&lt;/P&gt;&lt;P&gt;Approval_Stage,&lt;/P&gt;&lt;P&gt;date#((Date([Quote create date],'MM/DD/YYYY')),'MM/DD/YYYY')as [Quote create date],&lt;/P&gt;&lt;P&gt; [Requested price LC],&lt;/P&gt;&lt;P&gt;&amp;nbsp; Num#([Requested price LC])*num#(Quantity) as [Requested price LC_quantity],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Date(Subscription_Start_Date__c,'MM/DD/YYYY') as [Subscription Start Date], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(isnull(Date(Subscription_Start_Date__c)), Date(AddMonths((Subscription_Start_Date__c-1),num#(Subscription_Duration__c))),&lt;SPAN style="font-size: 10pt;"&gt; Date(Subscription_End_Date__c,'MM/DD/YYYY')&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; ) as [Subscription End Date],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-size: 10pt;"&gt; if(Date#(Today())&amp;gt;=Date(Subscription_End_Date__c),'positive','negative') as Flag1,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;num#(Subscription_Duration__c,'######')as subscription,&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;num#(Quantity,'######') as quote_quantity&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;FROM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;D&gt;&lt;/D&gt;&lt;/P&gt;&lt;P&gt;(qvd)&lt;/P&gt;&lt;P&gt;where [Quote type]='SaaS' and len(trim([Elo Project Id]))&amp;gt;0 ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Feb 2017 15:25:09 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-02-01T15:25:09Z</dc:date>
    <item>
      <title>Generate all months (not month difference) between two dates in a resultset</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-all-months-not-month-difference-between-two-dates-in-a/m-p/837272#M1016642</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;I have a requirement to generate all the months (not just the month difference) between two dates from a list of records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example: My data would look like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="184"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl67" height="20" width="37"&gt;Site&lt;/TD&gt;&lt;TD class="xl67" style="border-left: none;" width="79"&gt;Start Date&lt;/TD&gt;&lt;TD class="xl67" style="border-left: none;" width="68"&gt;End Date&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;A&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;3/21/2014&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;6/25/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;B&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;6/21/2014&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;8/30/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;C&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;9/12/2014&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;2/3/2015&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;And my result should look like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="116"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" width="37"&gt;A&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-left: none;" width="79"&gt;Mar-14&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;A&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;Apr-14&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;A&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;May-14&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;A&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;Jun-14&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;B&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;Jun-14&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;B&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;Jul-14&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;B&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;Aug-14&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;C&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;Sep-14&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;C&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;Oct-14&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;C&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;Nov-14&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;C&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;Dec-14&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;C&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;Jan-15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;C&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;Feb-15&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Malai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 14:26:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-all-months-not-month-difference-between-two-dates-in-a/m-p/837272#M1016642</guid>
      <dc:creator />
      <dc:date>2015-04-01T14:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: Generate all months (not month difference) between two dates in a resultset</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-all-months-not-month-difference-between-two-dates-in-a/m-p/837273#M1016643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would do a &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;&amp;nbsp; Date(AddMonths(MonthStart(StartDate),IterNo()-1),'MMM-YY') as Month,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Site,&lt;/P&gt;&lt;P&gt;&amp;nbsp; StartDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp; EndDate&lt;/P&gt;&lt;P&gt;&amp;nbsp; From ...&lt;/P&gt;&lt;P&gt;&amp;nbsp; While AddMonths(MonthStart(StartDate),IterNo()-1) &amp;lt;= MonthStart(EndDate);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 14:36:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-all-months-not-month-difference-between-two-dates-in-a/m-p/837273#M1016643</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2015-04-01T14:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: Generate all months (not month difference) between two dates in a resultset</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-all-months-not-month-difference-between-two-dates-in-a/m-p/837274#M1016644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can also try with intervalmatch &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;H1&gt;&lt;A name="kanchor767"&gt;&lt;/A&gt;IntervalMatch&lt;/H1&gt;&lt;P&gt;The &lt;SPAN class="Bold"&gt;IntervalMatch&lt;/SPAN&gt; prefix is used to create a table matching discrete numeric values to one or more numeric intervals. &lt;/P&gt;&lt;P&gt;It must be placed before a &lt;A class="MCXref_0"&gt;&lt;EM&gt;Load&lt;/EM&gt;&lt;/A&gt; or &lt;A class="MCXref_0"&gt;&lt;EM&gt;Select (SQL)&lt;/EM&gt;&lt;/A&gt;statement that loads the intervals. The field containing the discrete data points (Time in the example below) must already have been loaded into QlikView before the statement with the IntervalMatch prefix. The prefix does not by itself read this field from the database table. The prefix transforms the loaded table of intervals to a table that contains an additional column: the discrete numeric data points. It also expands the number of records so that the new table has one record per possible combination of discrete data point and interval.&lt;/P&gt;&lt;P&gt;The intervals may be overlapping and the discrete values will be linked to all matching intervals.&lt;/P&gt;&lt;P&gt;The general syntax is:&lt;/P&gt;&lt;P class="syntax"&gt;&lt;SPAN class="Bold"&gt;intervalmatch (&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;matchfield&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt; &lt;SPAN class="Italic"&gt;(loadstatement | selectstatement )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;matchfield&lt;/SPAN&gt; is the field containing the discrete numeric values to be linked to intervals. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;loadstatement&lt;/SPAN&gt; or &lt;SPAN class="Italic"&gt;selectstatement&lt;/SPAN&gt; must result in a two-column table, where the first field contains the lower limit of each interval and the second field contains the upper limit of each interval. The intervals are always closed, i.e. the end points are included in the interval. Non-numeric limits render the interval to be disregarded (undefined). &lt;/P&gt;&lt;P&gt;There is also an extended syntax of IntervalMatch including one or several additional key fields. See &lt;A class="MCXref_0" target="" title=""&gt;&lt;EM&gt;IntervalMatch (Extended Syntax)&lt;/EM&gt;&lt;/A&gt;.&lt;/P&gt;&lt;P class="example"&gt;Example:&lt;/P&gt;&lt;P&gt;In the two tables below, the first one defines the start and end times for the production of different orders. The second one lists a number of discrete events. By means of the IntervalMatch prefix it is possible to logically connect the two tables in order to find out e.g. which orders were affected by disturbances and which orders were processed by which shifts. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P class="Bold"&gt;OrderLog &lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P align="center" class="Bold" style="text-align: center;"&gt;Start &lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P align="center" class="Bold" style="text-align: center;"&gt;End &lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P align="center" class="Bold" style="text-align: center;"&gt;Order &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P align="center" style="color: #0000ff; font-style: italic; text-align: center;"&gt;01:00 &lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P align="center" style="color: #0000ff; font-style: italic; text-align: center;"&gt;03:35 &lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P align="center" style="color: #0000ff; font-style: italic; text-align: center;"&gt;A &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P align="center" style="color: #0000ff; font-style: italic; text-align: center;"&gt;02:30 &lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P align="center" style="color: #0000ff; font-style: italic; text-align: center;"&gt;07:58 &lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P align="center" style="color: #0000ff; font-style: italic; text-align: center;"&gt;B &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P align="center" style="color: #0000ff; font-style: italic; text-align: center;"&gt;03:04 &lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P align="center" style="color: #0000ff; font-style: italic; text-align: center;"&gt;10:27 &lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P align="center" style="color: #0000ff; font-style: italic; text-align: center;"&gt;C &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P align="center" style="color: #0000ff; font-style: italic; text-align: center;"&gt;07:23 &lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P align="center" style="color: #0000ff; font-style: italic; text-align: center;"&gt;11:43 &lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P align="center" style="color: #0000ff; font-style: italic; text-align: center;"&gt;D &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P class="Bold"&gt;EventLog &lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P align="center" class="Bold" style="text-align: center;"&gt;Time &lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P align="center" class="Bold" style="text-align: center;"&gt;Event &lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P align="center" class="Bold" style="text-align: center;"&gt;Comment &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P align="center" style="color: #0000ff; font-style: italic; text-align: center;"&gt;00:00 &lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P align="center" style="color: #0000ff; font-style: italic; text-align: center;"&gt;0 &lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P align="center" style="color: #0000ff; font-style: italic; text-align: center;"&gt;Start of shift 1 &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P align="center" style="color: #0000ff; font-style: italic; text-align: center;"&gt;01:18 &lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P align="center" style="color: #0000ff; font-style: italic; text-align: center;"&gt;1 &lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P align="center" style="color: #0000ff; font-style: italic; text-align: center;"&gt;Line stop &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P align="center" style="color: #0000ff; font-style: italic; text-align: center;"&gt;02:23 &lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P align="center" style="color: #0000ff; font-style: italic; text-align: center;"&gt;2 &lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P align="center" style="color: #0000ff; font-style: italic; text-align: center;"&gt;Line restart 50% &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P align="center" style="color: #0000ff; font-style: italic; text-align: center;"&gt;04:15 &lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P align="center" style="color: #0000ff; font-style: italic; text-align: center;"&gt;3 &lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P align="center" style="color: #0000ff; font-style: italic; text-align: center;"&gt;Line speed 100% &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P align="center" style="color: #0000ff; font-style: italic; text-align: center;"&gt;08:00 &lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P align="center" style="color: #0000ff; font-style: italic; text-align: center;"&gt;4 &lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P align="center" style="color: #0000ff; font-style: italic; text-align: center;"&gt;Start of shift 2 &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P align="center" style="color: #0000ff; font-style: italic; text-align: center;"&gt;11:43 &lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P align="center" style="color: #0000ff; font-style: italic; text-align: center;"&gt;5 &lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P align="center" style="color: #0000ff; font-style: italic; text-align: center;"&gt;End of production &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First load the two tables as usual, then link the field &lt;SPAN class="Italic"&gt;Time&lt;/SPAN&gt; to the time intervals defined by the fields &lt;SPAN class="Italic"&gt;Start&lt;/SPAN&gt; and &lt;SPAN class="Italic"&gt;End&lt;/SPAN&gt;:&lt;/P&gt;&lt;P class="Code"&gt;OrderLog:&lt;/P&gt;&lt;P class="Code"&gt;LOAD * INLINE [&lt;/P&gt;&lt;P class="Code"&gt;Start, End, Order&lt;/P&gt;&lt;P class="Code"&gt;01:00, 03:35, A&lt;/P&gt;&lt;P class="Code"&gt;02:30, 07:58, B&lt;/P&gt;&lt;P class="Code"&gt;03:04, 10:27, C&lt;/P&gt;&lt;P class="Code"&gt;07:23, 11:43, D&lt;/P&gt;&lt;P class="Code"&gt;];&lt;/P&gt;&lt;P class="Code"&gt;EventLog:&lt;/P&gt;&lt;P class="Code"&gt;LOAD * INLINE [&lt;/P&gt;&lt;P class="Code"&gt;Time, Event, Comment&lt;/P&gt;&lt;P class="Code"&gt;00:00, 0, Start of shift 1&lt;/P&gt;&lt;P class="Code"&gt;01:18, 1, Line stop&lt;/P&gt;&lt;P class="Code"&gt;02:23, 2, Line restart 50%&lt;/P&gt;&lt;P class="Code"&gt;04:15, 3, Line speed 100%&lt;/P&gt;&lt;P class="Code"&gt;08:00, 4, Start of shift 2&lt;/P&gt;&lt;P class="Code"&gt;11:43, 5, End of production&lt;/P&gt;&lt;P class="Code"&gt;];&lt;/P&gt;&lt;P class="Code"&gt;IntervalMatch (Time) LOAD Start, End Resident OrderLog;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following table box can now be created in QlikView: &lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P class="Bold"&gt;Tablebox &lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P align="center" class="Bold" style="text-align: center;"&gt;Time &lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P align="center" class="Bold" style="text-align: center;"&gt;Event &lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P align="center" class="Bold" style="text-align: center;"&gt;Comment &lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P align="center" class="Bold" style="text-align: center;"&gt;Order &lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P align="center" class="Bold" style="text-align: center;"&gt;Start &lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P align="center" class="Bold" style="text-align: center;"&gt;End &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P align="left"&gt;00:00 &lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;0 &lt;/TD&gt;&lt;TD&gt;Start of shift 1 &lt;/TD&gt;&lt;TD&gt;- &lt;/TD&gt;&lt;TD&gt;- &lt;/TD&gt;&lt;TD&gt;- &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;01:18 &lt;/TD&gt;&lt;TD&gt;1 &lt;/TD&gt;&lt;TD&gt;Line stop &lt;/TD&gt;&lt;TD&gt;A &lt;/TD&gt;&lt;TD&gt;01:00 &lt;/TD&gt;&lt;TD&gt;03:35 &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;02:23 &lt;/TD&gt;&lt;TD&gt;2 &lt;/TD&gt;&lt;TD&gt;Line restart 50% &lt;/TD&gt;&lt;TD&gt;A &lt;/TD&gt;&lt;TD&gt;01:00 &lt;/TD&gt;&lt;TD&gt;03:35 &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;04:15 &lt;/TD&gt;&lt;TD&gt;3 &lt;/TD&gt;&lt;TD&gt;Line speed 100% &lt;/TD&gt;&lt;TD&gt;B &lt;/TD&gt;&lt;TD&gt;02:30 &lt;/TD&gt;&lt;TD&gt;07:58 &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;04:15 &lt;/TD&gt;&lt;TD&gt;3 &lt;/TD&gt;&lt;TD&gt;Line speed 100% &lt;/TD&gt;&lt;TD&gt;C &lt;/TD&gt;&lt;TD&gt;03:04 &lt;/TD&gt;&lt;TD&gt;10:27 &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;08:00 &lt;/TD&gt;&lt;TD&gt;4 &lt;/TD&gt;&lt;TD&gt;Start of shift 2 &lt;/TD&gt;&lt;TD&gt;C &lt;/TD&gt;&lt;TD&gt;03:04 &lt;/TD&gt;&lt;TD&gt;10:27 &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;08:00 &lt;/TD&gt;&lt;TD&gt;4 &lt;/TD&gt;&lt;TD&gt;Start of shift 2 &lt;/TD&gt;&lt;TD&gt;D &lt;/TD&gt;&lt;TD&gt;07:23 &lt;/TD&gt;&lt;TD&gt;11:43 &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;11:43 &lt;/TD&gt;&lt;TD&gt;5 &lt;/TD&gt;&lt;TD&gt;End of production &lt;/TD&gt;&lt;TD&gt;D &lt;/TD&gt;&lt;TD&gt;07:23 &lt;/TD&gt;&lt;TD&gt;11:43 &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Back to &lt;A class="MCXref_0" target="" title=""&gt;&lt;EM&gt;Script Statements and Keywords&lt;/EM&gt;&lt;/A&gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #808080;"&gt;&lt;SPAN class="PrimaryQVRelease"&gt;QlikView 11.20 SR6&lt;/SPAN&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 14:53:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-all-months-not-month-difference-between-two-dates-in-a/m-p/837274#M1016644</guid>
      <dc:creator>ramoncova06</dc:creator>
      <dc:date>2015-04-01T14:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: Generate all months (not month difference) between two dates in a resultset</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-all-months-not-month-difference-between-two-dates-in-a/m-p/837275#M1016645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Henric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That worked. Thanks a lot!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Malai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 18:42:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-all-months-not-month-difference-between-two-dates-in-a/m-p/837275#M1016645</guid>
      <dc:creator />
      <dc:date>2015-04-01T18:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: Generate all months (not month difference) between two dates in a resultset</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-all-months-not-month-difference-between-two-dates-in-a/m-p/837276#M1016646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That was really helpful. I was able to achieve this using Interval Match as well. In this approach I had to use Interval match, few joins and distinct loads to achieve this. Considering Interval Match resource usage and few more joins and distinct load, HIC's suggestion will be better right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Attaching the file where I was able to achieve this using IntervalMatch. May be a better approach is available using IntervalMatch but this is what I arrived at.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Malai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 18:43:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-all-months-not-month-difference-between-two-dates-in-a/m-p/837276#M1016646</guid>
      <dc:creator />
      <dc:date>2015-04-01T18:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: Generate all months (not month difference) between two dates in a resultset</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-all-months-not-month-difference-between-two-dates-in-a/m-p/837277#M1016647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Henric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to do a similar thing: &lt;A _jive_internal="true" href="https://community.qlik.com/message/1203899?et=watches.email.thread#1203899" title="https://community.qlik.com/message/1203899?et=watches.email.thread#1203899"&gt;https://community.qlik.com/message/1203899?et=watches.email.thread#1203899&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Do I need to write your code in a separate table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Quotes:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;distinct [Elo Project Id] as [Elo Project ID],&lt;/P&gt;&lt;P&gt;[Quote number],&lt;/P&gt;&lt;P&gt;[Quote type],&lt;/P&gt;&lt;P&gt;Approval_Stage,&lt;/P&gt;&lt;P&gt;date#((Date([Quote create date],'MM/DD/YYYY')),'MM/DD/YYYY')as [Quote create date],&lt;/P&gt;&lt;P&gt; [Requested price LC],&lt;/P&gt;&lt;P&gt;&amp;nbsp; Num#([Requested price LC])*num#(Quantity) as [Requested price LC_quantity],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Date(Subscription_Start_Date__c,'MM/DD/YYYY') as [Subscription Start Date], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(isnull(Date(Subscription_Start_Date__c)), Date(AddMonths((Subscription_Start_Date__c-1),num#(Subscription_Duration__c))),&lt;SPAN style="font-size: 10pt;"&gt; Date(Subscription_End_Date__c,'MM/DD/YYYY')&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; ) as [Subscription End Date],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-size: 10pt;"&gt; if(Date#(Today())&amp;gt;=Date(Subscription_End_Date__c),'positive','negative') as Flag1,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;num#(Subscription_Duration__c,'######')as subscription,&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;num#(Quantity,'######') as quote_quantity&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;FROM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;D&gt;&lt;/D&gt;&lt;/P&gt;&lt;P&gt;(qvd)&lt;/P&gt;&lt;P&gt;where [Quote type]='SaaS' and len(trim([Elo Project Id]))&amp;gt;0 ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2017 15:25:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-all-months-not-month-difference-between-two-dates-in-a/m-p/837277#M1016647</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-01T15:25:09Z</dc:date>
    </item>
  </channel>
</rss>

