Discussions
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
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