<?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 a value to the Maximum date: Rolling 12 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggregate-a-value-to-the-Maximum-date-Rolling-12/m-p/1301934#M405675</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried this and it didn't quite work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will post a QVW if management wants to pursue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Jun 2017 20:34:49 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-06-19T20:34:49Z</dc:date>
    <item>
      <title>Aggregate a value to the Maximum date: Rolling 12</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-a-value-to-the-Maximum-date-Rolling-12/m-p/1301925#M405666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have rolling 12 data where at the end of every month an automatic adjustment happens to offset rounding and conversion errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each TRANSACTION_TYPE for adjustments get an "A" .&amp;nbsp;&amp;nbsp;&amp;nbsp; I would like to accumulate the sum of A and have it appear at the END date for the rolling 12 (MAX(DATE(enddate))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take this data and transform&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 483px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" width="98"&gt;MonthYear&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="98"&gt;Type&lt;/TD&gt;&lt;TD class="xl67" width="127"&gt;Total Cost&lt;/TD&gt;&lt;TD class="xl67" style="border-left: none;" width="160"&gt;Balance&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl68" height="20" style="border-top: none;"&gt;Jun-2016&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;BEG&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;$&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;$0.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl68" height="20" style="border-top: none;"&gt;Jun-2016&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;R&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;$&amp;nbsp;&amp;nbsp;&amp;nbsp; 10,390.75&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;$10,390.75&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl68" height="20" style="border-top: none;"&gt;Jun-2016&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;I&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;($&amp;nbsp;&amp;nbsp;&amp;nbsp; 10,390.72)&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;$0.03&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl68" height="20" style="border-top: none;"&gt;Jun-2016&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="color: #ff0000;"&gt;A&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;($&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.03)&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;$0.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl68" height="20" style="border-top: none;"&gt;Nov-2016&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;R&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;$&amp;nbsp;&amp;nbsp;&amp;nbsp; 5,093.93&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;$5,093.93&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl68" height="20" style="border-top: none;"&gt;Feb-2017&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;I&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;($&amp;nbsp;&amp;nbsp;&amp;nbsp; 5,093.92)&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;$0.01&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl68" height="20" style="border-top: none;"&gt;Feb-2017&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="color: #ff0000;"&gt;A&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;($&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.01)&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;$0.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl68" height="20" style="border-top: none;"&gt;Jun-2017&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;END&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;$&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00&lt;/TD&gt;&lt;TD class="xl70" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As an example with this data, I would like everything to be the same except to accumulate the A's and add them to the last month of the range so it would look like this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 483px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" width="98"&gt;MonthYear&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="98"&gt;Type&lt;/TD&gt;&lt;TD class="xl67" width="127"&gt;Total Cost&lt;/TD&gt;&lt;TD class="xl67" style="border-left: none;" width="160"&gt;Balance&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl68" height="20" style="border-top: none;"&gt;Jun-2016&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;BEG&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;$&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;$0.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl68" height="20" style="border-top: none;"&gt;Jun-2016&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;R&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;$&amp;nbsp;&amp;nbsp;&amp;nbsp; 10,390.75&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;$10,390.75&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl68" height="20" style="border-top: none;"&gt;Jun-2016&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;I&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;($&amp;nbsp;&amp;nbsp;&amp;nbsp; 10,390.72)&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;$0.03&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl68" height="20" style="border-top: none;"&gt;Nov-2016&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;R&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;$&amp;nbsp;&amp;nbsp;&amp;nbsp; 5,093.93&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;$5,093.93&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl68" height="20" style="border-top: none;"&gt;Feb-2017&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;I&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;($&amp;nbsp;&amp;nbsp;&amp;nbsp; 5,093.92)&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;$0.01&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl71" height="20" style="border-top: none;"&gt;Jun-2017&lt;/TD&gt;&lt;TD class="xl72" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="color: #ff0000;"&gt;A&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border-top: none; border-left: none;"&gt;($&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.04)&lt;/TD&gt;&lt;TD align="right" class="xl74" style="border-top: none; border-left: none;"&gt;$0.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl68" height="20" style="border-top: none;"&gt;Jun-2017&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;END&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;$&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00&lt;/TD&gt;&lt;TD class="xl70" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My only thought is to make a table with a composite, sum the A's and give it a MAX(DATE) fucntion KEY and rejoin it to the main table witha different transaction type and then exclude the As.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jun 2017 01:29:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-a-value-to-the-Maximum-date-Rolling-12/m-p/1301925#M405666</guid>
      <dc:creator />
      <dc:date>2017-06-16T01:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate a value to the Maximum date: Rolling 12</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-a-value-to-the-Maximum-date-Rolling-12/m-p/1301926#M405667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, Cam!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;How is an A became a Jun-2017?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Nevermind i've got it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want it in back-end so yes, you'll have to create a union aggregated table with sum of As and max date, and remove As from original table.&lt;/P&gt;&lt;P&gt;Or you can add a total row of As (without removing them from original table) and make a mark column if(Type='A',0,1), after that you can filter your data with expressions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jun 2017 06:21:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-a-value-to-the-Maximum-date-Rolling-12/m-p/1301926#M405667</guid>
      <dc:creator>Sergey_Shuklin</dc:creator>
      <dc:date>2017-06-16T06:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate a value to the Maximum date: Rolling 12</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-a-value-to-the-Maximum-date-Rolling-12/m-p/1301927#M405668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to force it to the same date as the ending balance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jun 2017 06:48:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-a-value-to-the-Maximum-date-Rolling-12/m-p/1301927#M405668</guid>
      <dc:creator />
      <dc:date>2017-06-16T06:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate a value to the Maximum date: Rolling 12</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-a-value-to-the-Maximum-date-Rolling-12/m-p/1301928#M405669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would take an easier way in the front end if there is an answer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jun 2017 07:26:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-a-value-to-the-Maximum-date-Rolling-12/m-p/1301928#M405669</guid>
      <dc:creator />
      <dc:date>2017-06-16T07:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate a value to the Maximum date: Rolling 12</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-a-value-to-the-Maximum-date-Rolling-12/m-p/1301929#M405670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I also thought of just making another TranType when rejoining. called ADJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jun 2017 07:39:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-a-value-to-the-Maximum-date-Rolling-12/m-p/1301929#M405670</guid>
      <dc:creator />
      <dc:date>2017-06-16T07:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate a value to the Maximum date: Rolling 12</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-a-value-to-the-Maximum-date-Rolling-12/m-p/1301930#M405671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Found for you the best solution!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a straight table (or pivot doesn't matter), add calculated dimension:&lt;/P&gt;&lt;P&gt;=if(Type='A',date($(#=max(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;MonthYear&lt;/SPAN&gt;))),&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;MonthYear&lt;/SPAN&gt;) //this will create a dimension which picks a max date for Type A.&lt;/P&gt;&lt;P&gt;Add second dimension Type to see that all is correct.&lt;/P&gt;&lt;P&gt;After that you can create an expression sum([Total Cost]) and thats all. Works fine.&lt;/P&gt;&lt;P&gt;If don't I'll make an example on your data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jun 2017 14:25:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-a-value-to-the-Maximum-date-Rolling-12/m-p/1301930#M405671</guid>
      <dc:creator>Sergey_Shuklin</dc:creator>
      <dc:date>2017-06-16T14:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate a value to the Maximum date: Rolling 12</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-a-value-to-the-Maximum-date-Rolling-12/m-p/1301931#M405672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Catch the example!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use makedate() function and textbetween() because dates and values from site was gathered like a string.&lt;/P&gt;&lt;P&gt;I suppose you won't have to do this with your data, but maybe some function will take you attention.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jun 2017 17:15:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-a-value-to-the-Maximum-date-Rolling-12/m-p/1301931#M405672</guid>
      <dc:creator>Sergey_Shuklin</dc:creator>
      <dc:date>2017-06-16T17:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate a value to the Maximum date: Rolling 12</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-a-value-to-the-Maximum-date-Rolling-12/m-p/1301932#M405673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.  I will try this over the weekend and report Monday and load my data if there is a difference.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jun 2017 18:21:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-a-value-to-the-Maximum-date-Rolling-12/m-p/1301932#M405673</guid>
      <dc:creator />
      <dc:date>2017-06-16T18:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate a value to the Maximum date: Rolling 12</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-a-value-to-the-Maximum-date-Rolling-12/m-p/1301933#M405674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cam,&lt;/P&gt;&lt;P&gt;see Attachment.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Antonio&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/167196_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Antonio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Jun 2017 05:53:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-a-value-to-the-Maximum-date-Rolling-12/m-p/1301933#M405674</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2017-06-18T05:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate a value to the Maximum date: Rolling 12</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-a-value-to-the-Maximum-date-Rolling-12/m-p/1301934#M405675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried this and it didn't quite work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will post a QVW if management wants to pursue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jun 2017 20:34:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-a-value-to-the-Maximum-date-Rolling-12/m-p/1301934#M405675</guid>
      <dc:creator />
      <dc:date>2017-06-19T20:34:49Z</dc:date>
    </item>
  </channel>
</rss>

