Results 1 to 3 of 3
  1. #1
    tomburns1987 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2013
    Posts
    7

    Cross Tab & relationships

    Hi,



    I have an exel file that i import into Access which stores records for a cash flow analysis.

    I want to change the layout of the records to get it into a certain way to create a report on the cross tab.

    It currently looks something like this; (with lots more records and shops names)

    Shop Name Month Net Sales Rent Rates Expenses Stock Movement
    Bath October £2000 (£100) (£100) (£150) (£200) £1450
    Bath November £2200 (£100) (£100) (£200) (£300) £1500


    I would like it to look like this;

    Shop Name Income/Expenditure October November Month(3) Month(4)......

    Bath Net sales £2000 £2200
    Bath Rent (£100) (£100)
    Bath Rates (£100) (£100)
    Bath Expenses (£150) (£200)
    Bath Stock (£200) (£300)
    Bath Movement £1450 £1500



    I don't think its working because i can only select one field as the 'Value' part of the cross tab query. I can get the layout to work properly but the figures are not populating as i can only select one of the expenses as an option.

    Is this because my tables are incorrelty linked or poor set up maybe? Or have i taken the wrong approach to this?

    Any help will be greatly appreciated

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Problem is the original data is not normalized structure. Needs to be:

    ShopName | Month | Category | Amount

    How many categories (Rent, Stock, etc) are there? If not more than 50, a UNION query can manipulate the data into normalized structure.

    Then that structure can be pivoted by CROSSTAB.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    tomburns1987 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2013
    Posts
    7
    Right ok. There about 12 categories. I can change this in the Excel file that imports.

    Thanks

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

Similar Threads

  1. Cross Tab Query.
    By cap.zadi in forum Queries
    Replies: 1
    Last Post: 01-04-2012, 01:29 PM
  2. Cross reference
    By Anne in forum Access
    Replies: 9
    Last Post: 09-23-2011, 08:01 AM
  3. Cross tab help
    By A S MANN in forum Queries
    Replies: 5
    Last Post: 10-28-2010, 07:46 AM
  4. Cross-tab query YTD
    By stremchem in forum Queries
    Replies: 9
    Last Post: 08-26-2010, 10:09 AM
  5. Cross Tab Query
    By RycherX in forum Queries
    Replies: 1
    Last Post: 04-26-2010, 12:19 PM

Tags for this Thread

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