Jump to content

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

Recommended Posts

Posted

I wish to calculate the number of days that have transpired between two dates. My calculation field is LaterDate - EarlierDate. Unfortunately the LaterDate is not always available and the calculation yields a huge negative number. How can I resolve this dilemma? I also want to calculate the average number of days for all the records. I suppose I will have to exclude records without both these dates?

Thanks

The Mad Jammer

And then...there was nothing.

Posted

Case(IsEmpty(LaterDate),"",

IsEmpty(EarlierDate),"",

LaterDate-EarlierDate)

To do an average you will have to be careful to make sure it's a weighted average. The field it is weighted by should be a calculated field with this calculation:

cWeighting = not(IsEmpty(LaterDate) or IsEmpty(EarlierDate))

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