Results 1 to 2 of 2
  1. #1
    ysrini is offline Novice
    Windows XP Access 2003
    Join Date
    Jan 2010
    Posts
    10

    Crosstab query for multiple columns hierarchy

    Hi, i have list of Employees who earn points for ProjA and ProjB for every month.
    Using Pivot Table View i can see Employees with columns divided by Months
    and this column further sub divided by ProjA and ProjB.
    I cannot use this pivot table on the report form, so i tried creating a Crosstab query

    However, i can't specify to show columns first grouped by Month and then by Proj A and B

    If i choose only for ProjA, the sql is:


    TRANSFORM First(Emp.ProjA) AS FirstOfProjA
    SELECT Emp.ID
    FROM Emp
    GROUP BY Emp.ID
    PIVOT Emp.Month;

    The attached screenshot shows the Pivot Table View at the top and the CrossTab Query at the bottom. The crosstab query should be fixed to look like the table at the top
    The months are designated by numbers

    How can i show columns grouped by Month and then show for both Projects A&b?

    Thanks
    -srinivas

  2. #2
    jbarrum is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Apr 2009
    Location
    Houston, Tx
    Posts
    164
    I think you will benefit from this article: http://allenbrowne.com/ser-67.html

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Consolidate multiple columns into one
    By COforlife in forum Access
    Replies: 17
    Last Post: 10-19-2009, 01:12 PM
  2. Combo Box with multiple columns
    By desireemm1 in forum Access
    Replies: 1
    Last Post: 08-17-2009, 02:36 AM
  3. Multiple Price Columns
    By kmwhitt in forum Access
    Replies: 0
    Last Post: 04-04-2009, 09:48 PM
  4. Crosstab: Sum of Columns over Row
    By tommaccoy in forum Queries
    Replies: 0
    Last Post: 12-03-2008, 05:26 AM
  5. Replies: 2
    Last Post: 11-09-2005, 02:51 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums