Is there any way to get grand totals (sum of columns) into a cross tab query?
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Grand Totals in Cross Tab Query (Access ’03)
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Grand Totals in Cross Tab Query (Access ’03)
- This topic has 15 replies, 2 voices, and was last updated 20 years, 3 months ago.
AuthorTopicWSNeophyte
AskWoody LoungerFebruary 28, 2005 at 9:06 pm #416462Viewing 0 reply threadsAuthorReplies-
WSHansV
AskWoody Lounger -
WSNeophyte
AskWoody LoungerFebruary 28, 2005 at 10:01 pm #931742That would work if I just wanted to display them but I want to be able to use them in a calculation. Remember the report you so kindly helped me with? What I want to do is for each Division, use the sum of its montly totals as the divisor in the percentage calculation for that Division so that each segment shows a a percentage of the annual total for that Division.
-
WSHansV
AskWoody LoungerFebruary 28, 2005 at 10:42 pm #931743Referring back to that report (post 455173 for others reading this thread), do you want to do this for each individual payment category (greater than or equal to $100K, between $75K and $100K etc.), or only for the row total?
I have attached a rather messy version of the report from the post mentioned above. There are two extra queries and an extra subreport.
-
WSNeophyte
AskWoody Lounger -
WSHansV
AskWoody Lounger -
WSNeophyte
AskWoody LoungerMarch 1, 2005 at 12:24 am #931760I looked at that and unless I’m mistaken, the percents are correct in the total row and the total column but the monthly detail breakdown is not correct. It appears as though the monthly detail is still using the monthly total as the divisor to calculate the percentages.
Sorry to be such a pain in the butt.
-
WSHansV
AskWoody LoungerMarch 1, 2005 at 12:45 am #931762Below each amount in the detail section of the report, there are two percentages. The first indicates the percentage of the row total, i.e. the amount for that category as a percentage of the total amount for all categories (for that month and division). The second indicates the percentage of the column total for that company, i.e. the amount for that month as a percentage of the total amount for all months (for that category and division).
If that is not what you want, please explain in detail what you need. -
WSNeophyte
AskWoody Lounger -
WSHansV
AskWoody LoungerMarch 1, 2005 at 1:01 am #931765The crosstab query qrySumDivision calculates the column totals per division and per category.
The query qrySumTotal combines qrySum and qrySumDivision (joined on Division), and calculates the percentages.
The query qrySumTotal is used as Record Source for sbrSum; text boxes for the percentages were added to the detail section of this subreport.
The subreport sbrSumDivision is based on qrySumDivision. It is used in the group footer for Division on the main report, to show the column totals. -
WSNeophyte
AskWoody LoungerMarch 2, 2005 at 2:40 am #931982Hans. I am returning your database solution to my problem including a much larger data set (it’s actually my real data with everything changed to protect the innocent or guilty as the case may be). It appears that something gets out of sync between the qrySum and the qrySumTotal. The payment month order and therefore the record order is not consistent between the two which I believe is causing erroneous results but I’m not smart enough yet to understand how it is happening. It is also confusing to me that the record order is identical between the two query results for Bach and Beethoven beginning to get out of sync with Brahms. If you look at the first instance of Beethoven the percentages add up to 163.81%. so somehow the 972.99 is being divided by itself instead of the line total of 7818.31. Hopefully this will be simple for you. It is Dutch to me.
-
WSHansV
AskWoody Lounger -
WSNeophyte
AskWoody Lounger -
WSHansV
AskWoody Lounger -
WSNeophyte
AskWoody LoungerMarch 2, 2005 at 5:06 pm #932094Wow. This one is quite a bit faster.
Aha! I see the problem and to quote Strothers Martin from Cool Hand Luke, “What we have here is a failure to communicate” for which I take full responsibility and do apologize. Due to my faulty specification, I believe the problem was made more difficult than it should have been. What I was looking for in the “% of Total” row was that sorted cumulative entry divided by the sum of all of the lease payments (grand total) for that division. I believe that what this report does for that row is divide the sorted cumulative entry by the sum of all lease payments in that sort column for that division. I doesn’t appear to make much sense until you add 2 decimal places to the percent fields, then it quickly shows the relative importance of the leases for that division for the year.
-
WSHansV
AskWoody Lounger
-
-
-
-
Viewing 0 reply threads -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Install Office 365 Outlook classic on new Win11 machine
by
WSrcull999
3 hours, 45 minutes ago -
win 10 to win 11 with cpu/mb replacement
by
aquatarkus
1 hour, 15 minutes ago -
re-install Windows Security
by
CWBillow
1 hour, 58 minutes ago -
WWDC 2025 Recap: All of Apple’s NEW Features in 10 Minutes!
by
Alex5723
5 hours, 39 minutes ago -
macOS Tahoe 26
by
Alex5723
2 hours ago -
Migrating from win10 to win11, instructions coming?
by
astro46
6 hours, 51 minutes ago -
Device Eligibility for Apple 2026 Operating Systems due this Fall
by
PKCano
6 hours, 26 minutes ago -
Recommended watching : Mountainhead movie
by
Alex5723
19 hours, 11 minutes ago -
End of support for Windows 10
by
Old enough to know better
4 hours, 33 minutes ago -
What goes on inside an LLM
by
Michael Covington
3 hours, 37 minutes ago -
The risk of remote access
by
Susan Bradley
9 hours, 16 minutes ago -
The cruelest month for many Office users
by
Peter Deegan
15 hours, 50 minutes ago -
Tracking protection and trade-offs in Edge
by
Mary Branscombe
21 hours, 25 minutes ago -
Supreme Court grants DOGE access to confidential Social Security records
by
Alex5723
1 day, 4 hours ago -
EaseUS Partition Master free 19.6
by
Alex5723
4 hours, 40 minutes ago -
Microsoft : Edge is better than Chrome
by
Alex5723
1 day, 17 hours ago -
The EU launched DNS4EU
by
Alex5723
2 days, 6 hours ago -
Cell Phone vs. Traditional Touchtone Phone over POTS
by
280park
1 day, 20 hours ago -
Lost access to all my networked drives (shares) listed in My Computer
by
lwerman
2 days, 11 hours ago -
Set default size for pasted photo to word
by
Cyn
2 days, 17 hours ago -
Dedoimedo tries 24H2…
by
Cybertooth
2 days, 5 hours ago -
Windows 11 Insider Preview build 27871 released to Canary
by
joep517
3 days, 16 hours ago -
Windows 11 ad from Campaign Manager in Windows 10
by
Jim McKenna
1 day, 9 hours ago -
Small desktops
by
Susan Bradley
9 hours, 58 minutes ago -
Totally disable Bitlocker
by
CWBillow
2 days, 10 hours ago -
Phishers extract Millions from HMRC accounts..
by
Microfix
3 days, 14 hours ago -
Windows 10 22H2 Update today (5 June) says up-to-date but last was 2025-04
by
Alan_uk
4 days, 20 hours ago -
Thoughts on Malwarebytes Scam Guard for Mobile?
by
opti1
2 days, 15 hours ago -
Mystical Desktop
by
CWBillow
4 days, 23 hours ago -
Meta and Yandex secretly tracked billions of Android users
by
Alex5723
4 days, 4 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.