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 7330 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

this is probably an easy problem, as i'm fairly new to filemaker.

I've got a database that keeps track of an employee's working hours....

Each line in the report has the info: date, time in, time out, timelunch, timedaytotal

and at the end of each 7 day week, there's a subsummary that lists the total number of hours for that week.

now, the problem comes when sorting by week. it is currently sorting by date, and yearandweek (year and week is a calculation of "year" combined with "weekofyearfiscal"...

so, for early january 2004, i would get a value like "20047" and for a week in late 2003, it will give me "200341"... so filemaker sorts my 2003 date as being greater than my 2004 date because the number of digits is greater.... so i'm wondering if there is a way to return a weekofyearfiscal with a double-digit date, so that 20047 becomes 200407....

thanks in advance for your help!

  • Newbies
Posted

nevermind, i figured out a solution... not sure if it's the best one, but here it is:

Year(date)&Right("00" & justweekofyear, 2)

"justweekofyear" is a text file containing the result of the function weekofyearfiscal....

i wonder if i can put that function right into the above calculation......

yup, even better

Year(date)&Right("00" & WeekofYearFiscal(date,2), 2)

that's prettier.

thanks anyway guys....

This topic is 7330 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.