<?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: Aggregate to Start &amp; End Dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggregate-to-Start-End-Dates/m-p/625340#M683589</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;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro _jivemacro_uid_13932636188908862 jive_macro_code" jivemacro_uid="_13932636188908862" modifiedtitle="true"&gt;
&lt;P&gt;SourceData :&lt;/P&gt;
&lt;P&gt;LOAD DimA, Date, DimB,&lt;/P&gt;
&lt;P&gt;if(previous(DimB) = DimB, peek('Counter'),rangesum(1,peek('Counter'))) as Counter&lt;/P&gt;
&lt;P&gt;INLINE [&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DimA, Date, DimB&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 18524, 01/02/2010, MAALC&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 18524, 13/02/2010, MAALC&lt;/P&gt;
&lt;P&gt;...etc&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12345, 22/02/2014, MAIBZ&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12345, 23/02/2014, MAIBZ&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;P&gt;load DimA, DimB, Counter, min(Date) as StartDate, max(Date) as EndDate&lt;/P&gt;
&lt;P&gt;Resident SourceData&lt;/P&gt;
&lt;P&gt;group by DimA, DimB, Counter;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;//optionally:&lt;/P&gt;
&lt;P&gt;// Drop field Counter;&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This does assume that the data is already ordered correctly. If it isn't you'll need an extra resident load to fix the order first.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Feb 2014 17:33:39 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2014-02-24T17:33:39Z</dc:date>
    <item>
      <title>Aggregate to Start &amp; End Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-to-Start-End-Dates/m-p/625339#M683588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Hi&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have source data of which this Load Inline is a small sample :&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #993300; font-size: 8pt;"&gt;SourceData :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #993300; font-size: 8pt;"&gt;LOAD * INLINE [&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #993300; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DimA, Date, DimB&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #993300; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 18524, 01/02/2010, MAALC&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #993300; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 18524, 13/02/2010, MAALC&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #993300; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 18524, 25/02/2010, MAALC&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #993300; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 18524, 26/02/2010, MAALC&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #993300; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 18524, 02/07/2012, MABCN&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #993300; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 18524, 02/07/2012, MABCN&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #993300; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 18524, 27/02/2013, MABCN&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #993300; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 18524, 28/02/2013, MABCN&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #993300; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 18524, 01/05/2013, MAIBZ&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #993300; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 18524, 02/05/2013, MAIBZ&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #993300; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 18524, 02/11/2013, MAIBZ&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #993300; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 18524, 03/11/2013, MAIBZ&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #993300; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 18524, 04/11/2013, MABCN&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #993300; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 18524, 05/11/2013, MABCN&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #993300; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 18524, 22/02/2014, MABCN&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #993300; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 18524, 23/02/2014, MABCN&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #993300; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12345, 01/02/2010, MAALC&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #993300; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12345, 13/02/2010, MAALC&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #993300; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12345, 25/02/2010, MAALC&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #993300; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12345, 26/02/2010, MAALC&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #993300; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12345, 02/07/2012, MAIBZ&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #993300; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12345, 02/07/2012, MAIBZ&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #993300; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12345, 27/02/2013, MAIBZ&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #993300; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12345, 28/02/2013, MAIBZ&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #993300; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12345, 01/05/2013, MAALC&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #993300; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12345, 02/05/2013, MAALC&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #993300; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12345, 02/11/2013, MAALC&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #993300; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12345, 03/11/2013, MAALC&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #993300; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12345, 04/11/2013, MAIBZ&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #993300; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12345, 05/11/2013, MAIBZ&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #993300; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12345, 22/02/2014, MAIBZ&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #993300; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12345, 23/02/2014, MAIBZ&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #993300; font-size: 8pt;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From this I need to aggregate such that for each &lt;EM&gt;DimA&lt;/EM&gt; value, it outputs a row for each time the &lt;EM&gt;DimB&lt;/EM&gt; value changes that shows its StartDate and EndDate.&amp;nbsp; The joker is that DimB may be repeated for a DimA for a second date range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sure I am explaining it badly, so below is the output I am after.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 380px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="136"&gt;DimA&lt;/TD&gt;&lt;TD class="xl65" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="116"&gt;DimB&lt;/TD&gt;&lt;TD class="xl67" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="64"&gt;StartDate&lt;/TD&gt;&lt;TD class="xl67" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="64"&gt;EndDate&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;18524&lt;/TD&gt;&lt;TD class="xl66" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;MAALC&lt;/TD&gt;&lt;TD class="xl66" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;"&gt;01/02/2010&lt;/TD&gt;&lt;TD class="xl66" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;"&gt;26/02/2010&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;18524&lt;/TD&gt;&lt;TD class="xl66" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;MABCN&lt;/TD&gt;&lt;TD class="xl66" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;02/07/2012&lt;/TD&gt;&lt;TD class="xl66" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;28/02/2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;18524&lt;/TD&gt;&lt;TD class="xl66" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;MAIBZ&lt;/TD&gt;&lt;TD class="xl66" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;01/05/2013&lt;/TD&gt;&lt;TD class="xl66" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;03/11/2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;18524&lt;/TD&gt;&lt;TD class="xl66" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;MABCN&lt;/TD&gt;&lt;TD class="xl66" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;04/11/2013&lt;/TD&gt;&lt;TD class="xl66" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;23/02/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;12345&lt;/TD&gt;&lt;TD class="xl66" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;MAALC&lt;/TD&gt;&lt;TD class="xl66" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;01/02/2010&lt;/TD&gt;&lt;TD class="xl66" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;26/02/2010&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;12345&lt;/TD&gt;&lt;TD class="xl66" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;MAIBZ&lt;/TD&gt;&lt;TD class="xl66" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;02/07/2012&lt;/TD&gt;&lt;TD class="xl66" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;28/02/2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;12345&lt;/TD&gt;&lt;TD class="xl66" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;MAALC&lt;/TD&gt;&lt;TD class="xl66" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;01/05/2013&lt;/TD&gt;&lt;TD class="xl66" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;02/11/2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;12345&lt;/TD&gt;&lt;TD class="xl66" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;MAIBZ&lt;/TD&gt;&lt;TD class="xl66" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;04/11/2013&lt;/TD&gt;&lt;TD class="xl66" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;23/02/2014&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This has been driving me bananas all day and I have gone snow blind with sorting, grouping, peeking, min'ing, max'ing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So any suggestions would be very welcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Bill&lt;/STRONG&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 17:14:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-to-Start-End-Dates/m-p/625339#M683588</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-24T17:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate to Start &amp; End Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-to-Start-End-Dates/m-p/625340#M683589</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;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro _jivemacro_uid_13932636188908862 jive_macro_code" jivemacro_uid="_13932636188908862" modifiedtitle="true"&gt;
&lt;P&gt;SourceData :&lt;/P&gt;
&lt;P&gt;LOAD DimA, Date, DimB,&lt;/P&gt;
&lt;P&gt;if(previous(DimB) = DimB, peek('Counter'),rangesum(1,peek('Counter'))) as Counter&lt;/P&gt;
&lt;P&gt;INLINE [&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DimA, Date, DimB&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 18524, 01/02/2010, MAALC&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 18524, 13/02/2010, MAALC&lt;/P&gt;
&lt;P&gt;...etc&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12345, 22/02/2014, MAIBZ&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12345, 23/02/2014, MAIBZ&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;P&gt;load DimA, DimB, Counter, min(Date) as StartDate, max(Date) as EndDate&lt;/P&gt;
&lt;P&gt;Resident SourceData&lt;/P&gt;
&lt;P&gt;group by DimA, DimB, Counter;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;//optionally:&lt;/P&gt;
&lt;P&gt;// Drop field Counter;&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This does assume that the data is already ordered correctly. If it isn't you'll need an extra resident load to fix the order first.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 17:33:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-to-Start-End-Dates/m-p/625340#M683589</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-02-24T17:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate to Start &amp; End Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-to-Start-End-Dates/m-p/625341#M683590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Gysbert&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks.&amp;nbsp; Your script line&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(previous(DimB) = DimB, peek('Counter'),rangesum(1,peek('Counter'))) as Counter &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is indeed cunning and I am pretty sure is what I needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll adapt your suggestion to my real data and advise, but I am optimistic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Bill&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 17:46:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-to-Start-End-Dates/m-p/625341#M683590</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-24T17:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate to Start &amp; End Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-to-Start-End-Dates/m-p/625342#M683591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Gysbert&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yup, works perfectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many, Many Thanks,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Bill&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 18:19:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-to-Start-End-Dates/m-p/625342#M683591</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-24T18:19:17Z</dc:date>
    </item>
  </channel>
</rss>

