how to create Business Days(continues number)?

Karthishan,

I don’t know if this will help you or not. I needed to do something similar and created this variable:

=If(IsNull([Submitted Date]);(Floor(DaysBetween([Date Approved];[Production Date])+1)-(Truncate(((DayNumberOfWeek([Submitted Date])+(DaysBetween([Submitted Date];[Production Date])))/7);0)*2));(Floor(DaysBetween([Submitted Date];[Production Date])+1)-(Truncate(((DayNumberOfWeek([Submitted Date])+(DaysBetween([Submitted Date];[Production Date])))/7);0)*2)))

It’s a combination of three other variables I found somewhere on these boards (can’t seem to find the original anymore) but it basically counts the number of weekends in the date range and subtracts those days back out of the total. One of my developers has since taken this formula and rewritten it into a dimension of the universe to hide the complexity of the formula.

Obviously [Submitted Date], [Date Approved], and [Production Date] are the Dimensions from the query.

This post may also help you out.

Or try searching for NETWORKDAYS (the Excel function that accomplishes this) or Business Days on the forum and you’ll find some other ideas.


jtleach :us: (BOB member since 2006-05-19)