A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Sum Top Values



 
 
Thread Tools Display Modes
  #1  
Old December 31st, 2007, 03:54 PM posted to microsoft.public.access.reports
pcaguy
external usenet poster
 
Posts: 3
Default Sum Top Values

My report displays the top 15 values of [NetofReturns]. I have a counter
that begins a new page after the 15th value in the detail section. In the
group footer, I need to display the sum of those 15 values along with the
group sum =sum([netofreturns] and a calculation of the percentage that the
top 15 make up of the group sum. The group sum is not a problem but the sum
of the top 15 is. I can display the running sum of the Top 15, but I can't
get that 15th sum into the footer.
  #2  
Old December 31st, 2007, 04:38 PM posted to microsoft.public.access.reports
Marshall Barton
external usenet poster
 
Posts: 5,361
Default Sum Top Values

pcaguy wrote:

My report displays the top 15 values of [NetofReturns]. I have a counter
that begins a new page after the 15th value in the detail section. In the
group footer, I need to display the sum of those 15 values along with the
group sum =sum([netofreturns] and a calculation of the percentage that the
top 15 make up of the group sum. The group sum is not a problem but the sum
of the top 15 is. I can display the running sum of the Top 15, but I can't
get that 15th sum into the footer.



Just reference the top15 value in a group footer text box:
=txtTop15

If you are having trouble calculating the top 15 value over
the entire group, then set the txtTop15 running sum text
box's expression to:
=IIf(txtLineCounter = 15, NetofReturns, 0)
where txtLineCounter is the =1 running sum text box that you
are using to determine when to start a new page.

--
Marsh
MVP [MS Access]
  #3  
Old January 3rd, 2008, 03:17 PM posted to microsoft.public.access.reports
pcaguy
external usenet poster
 
Posts: 3
Default Sum Top Values

Thanks. That's what I needed.

"Marshall Barton" wrote:

pcaguy wrote:

My report displays the top 15 values of [NetofReturns]. I have a counter
that begins a new page after the 15th value in the detail section. In the
group footer, I need to display the sum of those 15 values along with the
group sum =sum([netofreturns] and a calculation of the percentage that the
top 15 make up of the group sum. The group sum is not a problem but the sum
of the top 15 is. I can display the running sum of the Top 15, but I can't
get that 15th sum into the footer.



Just reference the top15 value in a group footer text box:
=txtTop15

If you are having trouble calculating the top 15 value over
the entire group, then set the txtTop15 running sum text
box's expression to:
=IIf(txtLineCounter = 15, NetofReturns, 0)
where txtLineCounter is the =1 running sum text box that you
are using to determine when to start a new page.

--
Marsh
MVP [MS Access]

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:41 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.