i think this should work....
create a SQL expression to determine the day of the week like this:
{%dow} = {fn DAYOFWEEK("TABLENAME"."FIELDNAME")}
Then in the select statement use the above expression to have it choose any day of week that is not Saturday or Sunday (1 is Sunday and 7 is Saturday). Also in the select statement, use your date field and select 'in the period' then use the option "lastfullmonth" ...like this:
(NOT({%dow}=1) AND NOT({%dow}=7))
AND
TABLENAME.DATEFIELD in lastfullmonth
Create the SQL expression (field explorer->SQL expression->new) as shown in fisheromacse's post, using the field list to replace "TABLENAME"."FIELDNAME" with your actual field--this will ensure the correct punctuation for your datasource also. Then use the result in your record selection formula as shown in my post.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.