I have below expressions which will get the same result as 01/01/2014 as per today. The expressions logic is "If today`s date is in QUARTER 1 then get the First Day of Previous Year ELSE First Day of Current Year"But which expression is a good one out of these? I mean though they retrieve same result which one is better among these for SSRS? =IIF(DatePart("q",Today,0,0)=1,DateSerial(Year(Today)-1, 1, 1),DateSerial(Year(Today), 1, 1))Vs=IIF(DatePart("q",Today,0,0)=1,DateAdd("d", -DatePart(DateInterval.DayOfYear,DateAdd("yyyy",-1, Today),0,0)+1,DateAdd("yyyy",-1, Today)),DateAdd("d",-DatePart(DateInterval.DayOfYear,Today,0,0)+1,Today))
↧