Reporting services Parameters

  • I have created a report but need to pass a parameter to it to filter the data. the parameter is to only display data where a fields value is greater than the value entered in the parameter.

    Thanks in advance

  • hi,

    You can create parameter in reporting services. I hope you know how to create that. Say u have some date parameter - named it as @startdate and @enddate. when you call or write stored procedure/query, u need to say whatever your date from table is between this dates.

    Please send ur bit code sample and name of parameter.

    regards,

    vijay

  • Hi

    Even I am struggling with how to do the validation of the parameters before it could hit the stored procedure. But had no success till now.

    if you are looking for displaying some message when nothing is returned by the stored procedure then you can set the NoRows property of the table.

    Namit

  • Would eleberate on the question a bit more please?

  • I did something like what you want, I think. I simply passed a parameter called days and the used a "where" to filter in my select statement.

    where datediff("d",cn.recorddate,cn.createddate) > @days

    In this case I calculate the difference between two date fields in days, and then filter out anything less then or equal to the parameter that is passed. you should be able to easily modify this to fit.

  • Thanks for the replies

    I have sorted it now

Viewing 6 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic. Login to reply