Access - Grand Total Column in Crosstab Query

Please offer if there is a way for me to include a Grand Total for the column field in a crosstab quert - Access 2013.

I am able to calculate totals (based on counts) for rows, but not columns.

Thank you.
exp vgAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

John TsioumprisSoftware & Systems EngineerCommented:
If you use it for a report then you can use this approach to get the desired result...
If you want it as a query then probably you want to create another query that uses crosstab as its source and manipulate it accordingly.
0
Dale FyeCommented:
Yes, you can create a "Totals" column by simply adding a field to the query grid, setting it up as a rowHeader

Field:   Row Total: [yourField]
Table:  tablename
Total:   Sum
Crosstab: Row Heading

However, this column will by default show up to the left of the values in your "Value" column (matrix).  But when you display this a report, you can move that column to the far right side of the report.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
exp vgAuthor Commented:
This is also from Design View please. Thanks.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Dale FyeCommented:
Yes, that is from the query grid.

if you provide some sample data, I could set it up for you.
0
exp vgAuthor Commented:
The step you offered I can do. Please let me clarify - this will create a separate totals column across the row, but how can I add a separate Grand Total row at the bottom of all rows in the query?

Hope this makes sense.
0
PatHartmanCommented:
You would need a union query to do that.  However, it would appear that you are making the mistake of thinking of a query as though it were a report.  It is not.    If you want to make a report out of a crosstab, the best option is  to export to Excel and add totals there.  Or, create a report.  The report can be problematic if the columns aren't fixed but there are ways.  www.fmsinc.com offers a sample database that shows how to build a variable report.  They also have many interesting articles and excellent tools.
0
exp vgAuthor Commented:
Thank you.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.