Date parameters defaulted to last 5 working days!
Hi friends,
I have a report in which i need to default the report to run for last 5 business days (i.e excluding saturday and sunday). I am trying to do this in RDL rather than storeprocedure,but if it is not possible
can somebody help me even if it can be done in SQL.
Raj
July 12th, 2011 9:13pm
Hi Raj,
Are you talking about date report parameter, your query parameter OR talking about creating a report subscription to run the report on weekdays only? I am guessing you're talking about query parameter. Is that correct?
If so, you can just say where DATENAME(WeekDay, <your date column>) NOT IN ('Saturday', 'Sunday')
HTH,
Uzzie
Free Windows Admin Tool Kit Click here and download it now
July 12th, 2011 11:10pm