Should be easy right?
Today is Aug 11, 2014. I want a column that reflects MTD Which I have:
=Count(IIf(Year(Fields!Date.Value) = Year(Today) And Month(Fields!Date.Value)
= Month(Today), Fields!ID.Value, Nothing), )
BUt I also want a column in SSRS that shows me the same time frame for the previous month, 7/11/2014.
I can get the date to appear, but I can't for the life of me figure out how to grab the data like I have for the current month
=FormatDateTime(DateSerial(DatePart("yyyy",today()), DatePart("m",today())-1,
DatePart("d",today())), DateFormat.ShortDate)
=FormatDateTime(DateSerial(DatePart("yyyy",Fields!Date.Value), DatePart("m",Fields!Date.Value)-1, DatePart("d",Fields!Date.Value)), DateFormat.ShortDate)
– Tak