Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

I am trying to get a field to show a period number depending on what the date is - have tried a script which starts:

If (Date to Text (Period Start Date) < Date to Text (Today) < Date to Text (Period Start Date + (7*Period 1))

Insert "Period 1"

Where Period Start Date is the start of period 1

Period 1 is a field holding the number of weeks in that period

This is then repeated and amended accordingly for the further 11 periods

Unfortunately I cannot get this to work - Any ideas?

Cheers

Nick

Posted

Try this..

Case(

Status(CurrentDate) < Period2StartDate; "Period 1";

Status(CurrentDate) < Period3StartDate; "Period 2";

Status(CurrentDate) < Period4StartDate; "Period 3";

..

..

Status(CurrentDate) >= Period11StartDate; "Period 12";

"INVALID")

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