Quantcast
Channel: SQLServerCentral » Reporting Services » Reporting Services » Latest topics
Viewing all articles
Browse latest Browse all 2791

SSRS 2008 Date Comparison Expression

$
0
0
HiI have date input parameters, @From_Date and @To_Date. If From_Date = 01 August 2014 and To_Date = 30 September 2014 and I run my report, I want to get results "Results From 1 Aug 2014 to 30 Sep" as part of my header. However if the input parameters it's from 1 September 2014 to 30 September 2014 I want to get "Results for Sep 2014". I've been searching expression to work around this and I think I will have; [quote]=IIF(Format(Parameters!Report_From_Date.Value, "MMM") = Format(Parameters!Report_From_Date.Value, "MMM"), Globals!ReportName & " from " & Format(Parameters!Report_To_Date.Value, "MMM"),"Nope")[/quote]as my starting point, then from this I need test the month I think, from there I'm getting confused.Please help

Viewing all articles
Browse latest Browse all 2791

Trending Articles