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

Recommended Posts

Posted

I'm perplexed! confused.gif This seems like it should be so simple. I have a calculation field, (Current Week) that is nothing more than the "WeekOfYearFiscal" function. And yet, the only return I get is a "?".

Each week is a record so I expect to get a return of 1 thru 53 for each week of the year as I go along. Monday being the start of the week. The calculation is as follows: Current Week = WeekOfYearFiscal(7/1/2004,2)

Why can't I get a darn number returned in the field? mad.gif What am I not getting about this? Thanks in advance for the help.

Veronica

Posted

7/1/2004 = 0.0035, i.e., it's not a date; it's a calculation.

Try

WeekOfYearFiscal( Date( 7; 1; 2004 ); 2 )

or in general, WeekOfYearFiscal( datefield; 2 ).

Posted

Queue,

Thank you very much for your help. I thought I had done/tried this before but got an unexpected and unsatisfactory result. Come to discover, I think, the unsatisfactory result occurred because of the type of field, "Calculation" and the date/day that I attempted this. It changed all my records to the one "result" appropriate for the date I did it. Because it is a Calculation field, I wasn't able to change the prior records to the actual result for those records. Does that make sense? I changed the field to a numeric, auto-enter by calculation. That way I can change all the prior records. Next week I'll find out if this approach works. If what I did makes sense to you, do you see and easier way?

Thanks again.

Veronica grin.gif

Posted

The auto-enter will work for new records, but not existing ones. You will need to update the older ones. If there is a date field on which the calculation is based, you could use that in place of the hard-coded one and make it a normal calculation field. How is that date determined? Is it based on creation date?

  • 2 weeks later...

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