Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Calculate values based on two different date ranges

Featured Replies

I have a table which has certain $ values for the data. The data is collected at different dates. So for example:

12/3/2007 black t-shirt $4

1/1/2008 black t-shirt (they're not all black - let's say there are 50 different products) $3.9

2/4/2008 black t-shirt 4.1 etc etc etc

I want to find an average value for ea. qtr and then compare it to another qtr. So, I have written a script which creates a report for calculating values for any qtr. But I don't see how I can store this data and then use it to compare to another qtr - say, qtr 1 in 2007 to qtr 4 in 2010. The other complication is that some products may be deleted during this time, and others may come along. So even if I were to do this manually - I see I could do that - I can't easily match up the products.

Any ideas much appreciated. Thx.

I am not sure I fully understand your question. I think you could find the records in both quarters and summarize them by quarter.

I believe that you'll have to have a table for quarterly sales - that will be run and stored your data for the quarter (for each product) with at least this much data: Quarter - Year - ProductID - Number sold - Average Price...

You can then create some global relationships to compare a products quarterly sales to another quarter (or another product).

Of course, none of that data would be stored...(i.e. - the comparison will be looked at and then discarded.)

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.