Consulting

Results 1 to 5 of 5

Thread: Calculate % change in a report

  1. #1

    Calculate % change in a report

    Hi there guys,

    I'm having trouble to figure this one out. I want a % change between monthly sales, from 2003 to 2004. I'm attaching the db here. I'm thinking to put an unbound text box, and put its control source to do the calculations, but don't seem to know how to do it. Can someone please guide me in the right direction. The report runs on a query.

    Thank you very much in advance for your time and any advice.

  2. #2
    VBAX Guru
    Joined
    Mar 2005
    Posts
    3,296
    Location
    Unfortunately it is not possible to run the report as we do not have access to your remote database tables. Can you just tell us the field names that you want to compare to obtain the /% change?

  3. #3
    Hi, thanks OBP for your reply. Its my fault, I thought you guys would be able to see the tables, and I understand that there's no way you can really help me without them. I will try to copy paste the tables and repost the db again.
    Thanks for your response.

  4. #4
    I'll try to rephrase.

    I've to make a report, that will show all the sales of all the products that one particular customer bought over the span of two years. So I will have to groups, Group 1 = Customer,Group 2 = Item.
    Now I want to show the sales of each item per month in 2003 from january to december, and in the second row, I want to show sales of the same item in 2004 from January to December. Then if possible I want to add a third row, and compare the % difference between the two years.

    Thanks for any hints and ideas!

  5. #5
    VBAX Guru
    Joined
    Mar 2005
    Posts
    3,296
    Location
    There are a couple of ways to do this.
    You could add 2 columns rather than rows with the calculation for the annual sales and then a third column for the %age calculation.
    The other method is to use a second query which uses your first query for it's input where there are only two columns for annual sales and on for the %age calculation.

Posting Permissions

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