Specific to the BAQ, this should work, or get you close.
I would try (TRUNCATE((date1 - date2)/7,0)*5) + ((date1 - date2) MODULO 7).
Logic is give the integer number of weeks late * 5 days in a week, + the
remainder after dividing the latedays by 7.
It won't be exact, but it should be close anyway.
Good luck,
Aaron Hoyt
Vantage Plastics
-----Original Message-----
From: bbelzer42 [mailto:bbelzer@...]
Sent: Wednesday, January 05, 2005 5:17 PM
To: vantage@yahoogroups.com
Subject: [Vantage] Formula for Days Late
I have a Query showing days late on our jobs. The problem is that
it includes the weekends. I would like to see days late based on a
regular workweek Mon-Fri. Thus reducing a Monday being 3 days late
to 1 day if it was due Friday.
Does anyone know how to code this?
Thanks!
Ben
Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must have
already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder and
Crystal Reports and other 'goodies', please goto:
http://groups.yahoo.com/group/vantage/files/.
(2) To search through old msg's goto:
http://groups.yahoo.com/group/vantage/messages
(3) To view links to Vendors that provide Vantage services goto:
http://groups.yahoo.com/group/vantage/links
Yahoo! Groups Links
I would try (TRUNCATE((date1 - date2)/7,0)*5) + ((date1 - date2) MODULO 7).
Logic is give the integer number of weeks late * 5 days in a week, + the
remainder after dividing the latedays by 7.
It won't be exact, but it should be close anyway.
Good luck,
Aaron Hoyt
Vantage Plastics
-----Original Message-----
From: bbelzer42 [mailto:bbelzer@...]
Sent: Wednesday, January 05, 2005 5:17 PM
To: vantage@yahoogroups.com
Subject: [Vantage] Formula for Days Late
I have a Query showing days late on our jobs. The problem is that
it includes the weekends. I would like to see days late based on a
regular workweek Mon-Fri. Thus reducing a Monday being 3 days late
to 1 day if it was due Friday.
Does anyone know how to code this?
Thanks!
Ben
Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must have
already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder and
Crystal Reports and other 'goodies', please goto:
http://groups.yahoo.com/group/vantage/files/.
(2) To search through old msg's goto:
http://groups.yahoo.com/group/vantage/messages
(3) To view links to Vendors that provide Vantage services goto:
http://groups.yahoo.com/group/vantage/links
Yahoo! Groups Links