Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
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