Discussions

Check out Oracle NetSuite upcoming events and conferences here
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Update your Profile with your Support type to get your Support Type badge.
Expand your NetSuite knowledge by joining our Ask A Guru Live sessions. RSVP on this event now.
Community Poll: What sort of content would you like to see more of?

Exclude weekends in project management capacity saved search

Hello there, i'm building a project management capacity report and having a lot of trouble finding a formula which will calculate the number of days from start date to projected end date (including those two days) and which will also exclude weekends, below are the criteria and columns being used, and three of the formulas i've tried, each has come up with 'Unexpected Error' rather than 'Invalid Expression' so a little stumped as to what the issue is, would appreciate any help, thanks.


ROUND(TRUNC(({jobmain.projectedenddate}-TRUNC({jobmain.startdate}))/7)*5 + MOD({jobmain.projectedenddate}-{jobmain.startdate} - CASE WHEN TO_NUMBER(TO_CHAR({jobmain.projectedenddate},'D')) < TO_NUMBER(TO_CHAR({jobmain.startdate},'D')) THEN 2 ELSE 0 END

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!

Leaderboard

Community Whiz

Quarter 2 (Apr-Jun 2024)

This Week's Leaders

This Month's Leaders

All Time Leaders