Hi, I'm working with SC 6.24 and I need now to count the days without events in a year, or count the days with some event in a year.
How can I to do it? Thanks,
Damian
How to count the days without any event?
3 posts
• Page 1 of 1
Posts: 44
Joined: Sat Mar 13, 2010 11:48 am |
|
Hi Damian,
Thanks so much for reaching out to us. There are probably lots of ways to accomplish this, and though what I've attached probably isn't the most elegant, it should get the job done. Essentially, I'm performing a Find for every day of the year, and counting up if an event was found for that date. I include two requests in my find: the first to handle the case where the End Date is empty, the second to handle multi-day events. In this example, I've hard-coded a start date as well as a number of days (365), but you'll likely want to account for the possibility of leap year. I hope this helps!
Dan Wheelon
[email protected] |
|
Posts: 44
Joined: Sat Mar 13, 2010 11:48 am |
Thanks, Dan. I need this calc for an statistical report; so a non-stored calc would be better. I'll try it. Thanks a lot, damian
|
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: Google [Bot] and 2 guests