Access Crosstab Query

Randal Flinn 311 Reputation points
2021-05-10T20:32:53.3+00:00

I have the following crosstab query in Access. Is there a way to calculate the percentages for each Order Type by Fiscal Year (i.e., 2018, 2019, etc.)?

Example: Order Type "18" for Fiscal Year 2018 = 21,973.55. This would be 23.2% of 2018 Total or (21,973.55/94,699.85).

95421-crosstab.jpg

Thanks

Access Development
Access Development
Access: A family of Microsoft relational database management systems designed for ease of use.Development: The process of researching, productizing, and refining new or existing technologies.
881 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. DBG 2,301 Reputation points
    2021-05-10T21:19:18.78+00:00

    Hi. Where did the value 94,699.85 come from? I don't see it in the crosstab image.


  2. Ken Sheridan 2,841 Reputation points
    2021-05-10T21:51:08.02+00:00

    In a conventional aggregating query that would be done by dividing the SUM per order type per accounting year by the result of a correlated subquery which returns the SUM for the accounting year currently returned by the outer query. However, I don't believe that it is possible to do this in the TRANSFORM clause of a crosstab query.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.