<html><div style='background-color:'><DIV class=RTE>
<P>You may want to ask this question on the Impromptu list at ittoolbax.com</P>
<P>There may be an easier way.</P>
<P>But here are some ideas.</P>
<P>defne x as count reset at month</P>
<P>def value as budget if x = 1 else 0</P>
<P>def year_budget total value<BR></P>
<P>Regards,</P>
<P>Peter Bateman<BR></P></DIV>
<DIV></DIV>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #a0c6e5 2px solid; MARGIN-RIGHT: 0px"><FONT style="FONT-SIZE: 11px; FONT-FAMILY: tahoma,sans-serif">
<HR color=#a0c6e5 SIZE=1>

<DIV></DIV>From:&nbsp;&nbsp;<I>shulbert@clblf.com</I><BR>To:&nbsp;&nbsp;<I>powerh-l@lists.sowder.com</I><BR>Subject:&nbsp;&nbsp;<I>quiz to impromptu</I><BR>Date:&nbsp;&nbsp;<I>Wed, 14 Dec 2005 15:39:37 +0000</I><BR>&gt;seeing that the cognos bi helpdesk person seemed unaware that there was a product called quiz, in desperation i'm asking the list.<BR>&gt;<BR>&gt;i'd like to reproduce the "subtotal at" functionality in impromptu.<BR>&gt;<BR>&gt;that is, subtotal a value only once per sort group.<BR>&gt;<BR>&gt;&lt;data&gt;<BR>&gt;Rep&nbsp;&nbsp; Year&nbsp;&nbsp;Month Budg£ Invoice&nbsp;&nbsp;&nbsp;&nbsp;Amount£<BR>&gt;------------------------------------------<BR>&gt;Rep1&nbsp;&nbsp;2005&nbsp;&nbsp;1&nbsp;&nbsp;&nbsp;&nbsp; 1000&nbsp;&nbsp;IV000001&nbsp;&nbsp;&nbsp;&nbsp;57.91<BR>&gt;Rep1&nbsp;&nbsp;2005&nbsp;&nbsp;1&nbsp;&nbsp;&nbsp;&nbsp; 
1000&nbsp;&nbsp;IV000002&nbsp;&nbsp;&nbsp;&nbsp;34.51<BR>&gt;Rep1&nbsp;&nbsp;2005&nbsp;&nbsp;1&nbsp;&nbsp;&nbsp;&nbsp; 1000&nbsp;&nbsp;IV000003&nbsp;&nbsp;&nbsp;&nbsp;37.66<BR>&gt;Rep1&nbsp;&nbsp;2005&nbsp;&nbsp;1&nbsp;&nbsp;&nbsp;&nbsp; 1000&nbsp;&nbsp;IV000004&nbsp;&nbsp;&nbsp;&nbsp;86.57<BR>&gt;Rep1&nbsp;&nbsp;2005&nbsp;&nbsp;2&nbsp;&nbsp;&nbsp;&nbsp; 1010&nbsp;&nbsp;IV000005&nbsp;&nbsp;&nbsp;&nbsp;41.69<BR>&gt;Rep1&nbsp;&nbsp;2005&nbsp;&nbsp;2&nbsp;&nbsp;&nbsp;&nbsp; 1010&nbsp;&nbsp;IV000006&nbsp;&nbsp;&nbsp;&nbsp;58.46<BR>&gt;Rep1&nbsp;&nbsp;2005&nbsp;&nbsp;2&nbsp;&nbsp;&nbsp;&nbsp; 1010&nbsp;&nbsp;IV000007&nbsp;&nbsp;&nbsp;&nbsp;59.62<BR>&gt;Rep1&nbsp;&nbsp;2005&nbsp;&nbsp;2&nbsp;&nbsp;&nbsp;&nbsp; 1010&nbsp;&nbsp;IV000008&nbsp;&nbsp;&nbsp;&nbsp;26.15<BR>&gt;Rep1&nbsp;&nbsp;2005&nbsp;&nbsp;2&nbsp;&nbsp;&nbsp;&nbsp; 
1010&nbsp;&nbsp;IV000009&nbsp;&nbsp;&nbsp;&nbsp;52.23<BR>&gt;=========================================<BR>&gt;Rep1 2005 2010 &nbsp;&nbsp;&nbsp;&nbsp; 454.80<BR>&gt;&lt;/data&gt;<BR>&gt;<BR>&gt;i.e. the budget amount on the summary line is the sum of the budget figure for each month, but only including that figure once.<BR>&gt;<BR>&gt;&lt;quiz&gt;<BR>&gt;access invoices &amp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;link rep to rep of rep_budgets<BR>&gt;sort on rep on year on month<BR>&gt;footing at year rep year budget subtotal at month amount subtotal<BR>&gt;go<BR>&gt;&lt;/quiz&gt;<BR>&gt;<BR>&gt;many thanks for your patience,<BR>&gt;stephen.<BR>&gt;<BR>&gt;<BR>.<BR></FONT></BLOCKQUOTE></div><br clear=all><hr>Free yourself from those irritating pop-up ads with  <a href="http://g.msn.com/8HMAENCA/2752??PS=47575" target="_top">MSN Premium:</a> Join now and get the first two months FREE*</html>