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, 2 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
-
search by picture an not all that’s cracked up to be (Awaiting moderation)
by
Dru Fuksa
10 minutes ago -
Google’s Veo3 video generator. Before you ask: yes, everything is AI here
by
Alex5723
7 hours, 15 minutes ago -
Flash Drive Eject Error for Still In Use
by
J9438
8 hours, 48 minutes ago -
Windows 11 Insider Preview build 27863 released to Canary
by
joep517
1 day, 2 hours ago -
Windows 11 Insider Preview build 26120.4161 (24H2) released to BETA
by
joep517
1 day, 2 hours ago -
AI model turns to blackmail when engineers try to take it offline
by
Cybertooth
5 hours, 47 minutes ago -
Migrate off MS365 to Apple Products
by
dmt_3904
6 hours, 36 minutes ago -
Login screen icon
by
CWBillow
1 hour, 46 minutes ago -
AI coming to everything
by
Susan Bradley
4 hours, 34 minutes ago -
Mozilla : Pocket shuts down July 8, 2025, Fakespot shuts down on July 1, 2025
by
Alex5723
1 day, 17 hours ago -
No Screen TurnOff???
by
CWBillow
1 day, 18 hours ago -
Identify a dynamic range to then be used in another formula
by
BigDaddy07
1 day, 18 hours ago -
InfoStealer Malware Data Breach Exposed 184 Million Logins and Passwords
by
Alex5723
2 days, 6 hours ago -
How well does your browser block trackers?
by
n0ads
1 day, 16 hours ago -
You can’t handle me
by
Susan Bradley
16 hours, 34 minutes ago -
Chrome Can Now Change Your Weak Passwords for You
by
Alex5723
1 day, 9 hours ago -
Microsoft: Over 394,000 Windows PCs infected by Lumma malware, affects Chrome..
by
Alex5723
2 days, 17 hours ago -
Signal vs Microsoft’s Recall ; By Default, Signal Doesn’t Recall
by
Alex5723
1 day, 21 hours ago -
Internet Archive : This is where all of The Internet is stored
by
Alex5723
2 days, 18 hours ago -
iPhone 7 Plus and the iPhone 8 on Vantage list
by
Alex5723
2 days, 18 hours ago -
Lumma malware takedown
by
EyesOnWindows
2 days, 6 hours ago -
“kill switches” found in Chinese made power inverters
by
Alex5723
3 days, 2 hours ago -
Windows 11 – InControl vs pausing Windows updates
by
Kathy Stevens
3 days, 2 hours ago -
Meet Gemini in Chrome
by
Alex5723
3 days, 6 hours ago -
DuckDuckGo’s Duck.ai added GPT-4o mini
by
Alex5723
3 days, 7 hours ago -
Trump signs Take It Down Act
by
Alex5723
3 days, 15 hours ago -
Do you have a maintenance window?
by
Susan Bradley
1 day, 19 hours ago -
Freshly discovered bug in OpenPGP.js undermines whole point of encrypted comms
by
Nibbled To Death By Ducks
2 days, 17 hours ago -
Cox Communications and Charter Communications to merge
by
not so anon
3 days, 18 hours ago -
Help with WD usb driver on Windows 11
by
Tex265
1 hour, 57 minutes 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.