I have a report in which I have business days (so no weekends) calculated based on the calendar date in which the event occurred in the SQL query. IE,
Date_Completed: 22 Jan 2014 (<--- From system tables)
Day_completed = 16 <---- What I calculated in the query.
Now, I am trying to create a calendar-like report in SSRS for the purpose of tracking the event dates. I want to the make the business days and the corresponding calendar date as my column headers ie
1
1/1/2014
2
1/2/2014
So my problem is that the events do not occur on every business day, so I created a bunch of dummy values in my query (basically union all 1-40 business days...I'll work on making this dynamic in the future).
So now I have the 1-40 business day columns, and my values are aligning to them properly...however, the calendar dates are not matching because I do not know how to make SSRS skip weekend dates in my column header...
I tried something like:
=iif((weekday(dateadd("d",Fields!period_complete.Value,Fields!period_dt.Value))<>1 or weekday(dateadd("d",Fields!period_complete.Value,Fields!period_dt.Value))<>7), dateadd("d",Fields!period_complete.Value,Fields!period_dt.Value),"")
but that did nothing. Anyone have any ideas on how I can get SSRS to spit out non-weekend, calendar dates for a quarter (Jan-Mar)?