Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8811727
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T03:26:12+00:00 2026-06-14T03:26:12+00:00

This is driving me nuts. I have a table of sales information based on

  • 0

This is driving me nuts.

I have a table of sales information based on dates as followed.

Date       Price
1/1/12      5
2/1/12      5
12/1/12     5

Now i’ve used a pivot table firstly to group by week, then count the number of values for sales and tally up the Price as followed

Week               Quantity  Revenue
1/1/12 - 7/1/12       2         10
8/1/12 - 15/1/12      1         5

I have a ‘quota’ or desired quantity per week which is 3 and i’d like another column that subtracts 3 from the quantity to give me a difference like so.

Week               Quantity  Revenue  Difference
1/1/12 - 7/1/12       2         10        -1
8/1/12 - 15/1/12      1         5         -2

I’ve tried adding a formula to do this but firstly i can’t access the quantity column because its not a field and i can’t work out the formula to make a field to replace the quantity column. Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T03:26:13+00:00Added an answer on June 14, 2026 at 3:26 am

    The only way I can figure to do it is to change the source data and add Quota and Quantity columns to it. The quota has to be calculated so that it adds up to the desired amount per week, in this case 3.

    pivot quota by weeek

    The formula for the quota calculation is:

    =($F$2/7)/COUNTIF($A$2:$A$22,A2)
    

    You can then make a calculated field, here shown as “Sum of Field 1”:

    enter image description here

    This isn’t a very manageable solution. And if you have multiple products and/or different quotas it will get uglier fast! But it’s the best way I can see to do it with a pivot table.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is driving me nuts. I have a working text based application. It has
This is really driving me nuts, I have a datagridview bound to a bindingsource,
This is literally driving me nuts. I have 2 entities that use NSStrings as
This is not working and it is driving me nuts. I have in the
This one's got me stumped and it's driving me nuts. I have a SiteFinity
NHibernate is driving me 'Nuts'!!! I have the following mapping. Which returns this error
This is driving me nuts, I have been through every article I have seen
This is driving me nuts. I have been at it for over 2 hours
This is driving me nuts! I have a test instance of Wordpress installed on
This is driving me nuts. I have the following code that, when a button

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.