Go Premium for a chance to win a PS4. Enter to Win



Posted on 2011-09-25
Medium Priority
Last Modified: 2012-05-12
I need to get dates from a Holiday List Table so that the system will show which dates match the range of dates in the week of production.
I have a Production Table where the intened  Week of Production (WeekOfFiscalYear) is set by the planner.
eg Week 19 :Starts on Monday(WeekStartDate) 02/05/2011 and ends on Friday 06/05/2011
Monday Tuesday  Wednesday Thursday Friday are separate date  fields  which are based on the Week Start date   + one day for Tuesday ,+ 2 for Weds etc
I have another related  table HOLIDAYS which lists all holidays for the year.
If for example Tuesday 03/05/2011 is a Holiday I want the Tuesday field to be show "Holiday".
The problem is that I cannot seem to get the calculation to do this for a range of days.
Once the week of production has been set I want the system to go to the Holiday list , check if there are any Days/dates in the week of production that are equal to any of the week days within that week of production and then to alert.
Hope I have mader it clear.
Thanks in advance
Question by:Krisraychris
  • 3
  • 2
LVL 12

Expert Comment

ID: 36596062
When the Week of Production is entered, calculate two columns Week Start Date and Week End Date.  Using these two columns, create a relationship to the Holidays table where Week Start date is less than the date of the holiday and Week End Date is Greater than the date of the holiday.  This should return a list of holidays between the start and end dates.  Now you have this list, you can create a third column that does the alert calculation, like IF(count ( holidays ) > 0 then "Hey there's a holiday in there somewhere." ; "" )  

Author Comment

ID: 36600157
Thank you... the first part was spot on and the rellationship is giving me the date range and finding the public holiday within that Week Of Production.
I need to match the date of this  holiday with any of the 5 Production working Days Monday Tuesday etc.
If there is a match then I need to know which day of the week it matches with.
 I would like  some way of showing the planner  which day of the  Production Week day Mon to Fri is the holiday.As in the example above 03 May 2011 is a holiday and no production should be planned for that day.
I was thinking the simplest way is to create a separate fields for each day of the week and the holiday or Holidays which show up in any of the five fields.
But the most important question is how ot get the Holiday to show the  match with  the Production week day and show it as a date.
I would appreciate your ideas on this.
LVL 12

Expert Comment

ID: 36600502
How about this.  Create a table with two columns, Production Week and Day Date.  Now join the production week from the main table to the new table, this would give you a portal with a list of the dates in the production week.  You could then join the new table to the holiday table.  This would give you two options; 1)   using the join between the new table and the Holidays table, create the indicator above or 2) remove the holiday dates from the portal all together, only displaying days that production can take place.


Author Comment

ID: 36717727
If I do what you have suggested then I am not getting the date range I need as the Production Start Date and End are two fixed dates and it does not list the Monday to Friday Range.
I tried a rellationshipe between the Holiday table and Main Table.
List(Production date Monday;Production Date Tuesday;Production Datye Wednesday etc...to Friday)
and To Holiday Table :Holiday Date.I viewed the result in the main table in a portal and it shows the holiday date correctly but only one day and not where there are two holidays days in the week. I dont know if this is workable but where there is one day in the week I set condional Formating to Formula Is-Holiday Table:Date to highlight the Production Day Field.This worked but only when the day is a Monday.
I need a way to link the Main Table with the Production Week Table to the Holiday Table so that The portal in the Production Table will will show identify the Holiday/s in the week.
Hope you can give soem direction on this one.
LVL 12

Accepted Solution

North2Alaska earned 2000 total points
ID: 36718345
Here is a little sample of what I was thinking.  Things to focus on are the three tables, their data and their relationships.  Also, look at the conditional formatting of the Production Dates portal.

There is lots to do still, like are weekend part of your production schedule, how to populate the Work Week table (I did it with a script, check it out) and what is the values that will be entered by the user.  But this may give you an idea of what I was thinking.

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Conversion Steps for merging and consolidating separate Filemaker files The following is a step-by-step guide for the process of consolidating two or more FileMaker files (version 7 and later) into a single file with multiple tables. Sometimes th…
Problem: You have a hosted FileMaker database and users are tired of having to use Open Remote or Open Recent to access the database. They say, "can't you just give us something to double-click on rather than have to go through those dialogs?" An…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Screencast - Getting to Know the Pipeline

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question