Jump to content

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

Recommended Posts

Posted

This problem is a bit tricky and I can't figure it out myself.... frown.gif ... anybody....?

I need to sum up the total amount of estemated persons in a certain period of days.

This is the situation:

- for every day of the week there is a calc field (MonNr, TueNr, WedNr, ThurNr, FriNr, SatNr, SunNr) that will show the amount of people for each day.

- there's a global 'start' datefield and a global 'end' datefield (a 'DayNr' calcfield will show the amount of days from the start to the end date).

What I need to know is:

- the total amount of people -in one calcfield- when the 'DayNr' > 1 or even > 7 (the calculation needs to sum up more then 1 -for example- monday)

Posted

Figured it out! This is what I did:

- Made a script called "Count persons" and set all the daynumbers with a loopfunction in a text global '_gDays'. (_gDays & DayofWeek(_gTempDate03) & "

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