Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 5950 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted (edited)

I have one table "Sales" in which orders are kept. Along with each record I have a field "weekly_sales" which calculates total sales for that week. The calculation uses another field "first_day_of_week"

What I need is a layout that shows only one entry for each week.

For Example:

Week Beginning on: Sales

9/28/2008 $1,000,000,000

10/5/2008 $0.01

10/12/2008 -$2E1000

Cant seem to wrap my head around this one

Thanks in advance

Edited by Guest
Posted

You need to create a sub summary report in order to summarize your sales by the field you are sorting by. You can create field that is the YYYYWW which is the YEAR and week of Year and then sort by that field.

Sort field = Year(datefield) & Right ("00" & WeekofYear(datefield) ; 2)

Posted

It would be better to use:

Datefield - DayOfWeek ( Datefield ) + 1

with the result type set to Date. After all, December 31, 2007 and January 1, 2008 ARE in the same week - even though they would return "200753" and "200801" respectively when using Year and WeekOfYear.

This topic is 5950 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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