SSRS Issue

  • I have created a report which uses two parameters named SELECT and EDATE.

    If i choose value of SELECT parameter as Yes then EDATE is set to yesterday's date and if i choose value

    of SELECT parameter as No then EDATE is set to today's date.

    when running report for the first time, it runs without any issues.

    For eg: when i choose value of SELECT parameter as Yes then yesterday's date is displayed but after that

    if i choose value of SELECT parameter as No then also it shows yesterday's date and not today's date.

    It is not refreshing EDATE parameter's value.

  • Can you post the code you use to set the EDATE parameter?

    If you are using an expression it does not seem to work. You can tie the EDATE parameter to a query that returns the date you want, something like this:

    =IIF(Parameters!Select.Value = "Yes", "Select Getdate()", "Select GetDate()-1")

    Then you set the EDATE parameter to get its value from the dataset. Make sure to set the default as well.

  • Thank you for the information.

    SELECT parameter setting:

    Available Values:

    YES

    NO

    Default Values:

    Null

    EDATE parameter setting

    Default Values:

    =SWITCH(Parameters!SELECT.Value="Yes",DATEADD("d",-1,now),

    Parameters!SELECT.Value="No",

    now)

  • Thanks Jack for your information.

    I provided available values for EDATE parameter and it worked.

    Thanks

  • Jack

    If I set available values for EDATE parameter then I am not getting Calender functionality

    but instead of that I m getting drop down list.

    Any suggestions?

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

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