Consulting

Results 1 to 3 of 3

Thread: Formula in crosstab query

  1. #1
    VBAX Newbie
    Joined
    Sep 2004
    Posts
    3
    Location

    Formula in crosstab query

    Dear Access Export

    I have used Access: Crosstab Query to create the following data as the columns below

    Division Sales Jan Feb


    Therefore, can I know how can I create a formula to calculate the variance for Jan and Feb given that the downloaded data which imported into the Table, the month was arranged in the same column.

  2. #2
    VBAX Regular WillR's Avatar
    Joined
    May 2004
    Location
    Rugby - UK
    Posts
    60
    Location
    See my reply to this at Ozgrid. Can't post the link at the mo as the site is temporarily offline.

    Learn, I have posted a SQL solution... not sure how you would do this in Access as AFAIK, crosstab queries are limited to a single field for the column area, thus preventing you from adding a column for variance... I think you need to contruct something similar to the example I gace using SQL, although not quite sure how you would do this in Access (not really my "bag" - I am more SQL/MySQL )

    See if there are any other ideas forthcomeing & please link to the Ozgrid post so people can see what other ideas may have been tried


    Edit: here's the link
    http://www.ozgrid.com/forum/showthread.php?t=24181
    Last edited by WillR; 09-24-2004 at 04:05 AM. Reason: added link
    Will
    Not all chemicals are bad. Without chemicals such as hydrogen and oxygen for example, there would be no way to make water, a vital ingredient in beer.

  3. #3
    Site Admin
    The Princess
    VBAX Guru Anne Troy's Avatar
    Joined
    May 2004
    Location
    Arlington Heights, IL
    Posts
    2,530
    Location
    Any luck here, learn?
    ~Anne Troy

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •