Binding Cube date dimension member to calendar control(DatePicker) in SSRS

  • Hi,

    I have a cube " Request Time " dimension member which is given below

    [Request Time].[Only Date].&[01/01/2008]

    My requirement is I want to somehow bind this cube member to the calendar control(datepicker) in SQL Server Reporting Services 2005 so that I will be able to filter the data based on this parameter.

    But when I use datepicker for this parameter, I am getting the following error message.

    An error occured during local processing.

    An error has occured during report processiong.

    Query execution failed for data set 'TestDataSet'.

    Query(47,14) the restrictions imposed by the CONSTRAINED flag in the STRTOSET function were violated.

    The MDX query which I am using is given below:

    SELECT

    NON EMPTY

    {[ExpectedDiffHours],[CompletionDiffHours]} ON COLUMNS,

    NONEMPTY

    (

    CROSSJOIN

    (

    [Dim Requests].[Dim Requests].[Dim Requests].MEMBERS,

    [Request Time].[Date].[Date].MEMBERS,

    [Expected Time].[Date].[Date].MEMBERS,

    [Action Completed Time].[Date].[Date].MEMBERS

    )

    ,[Measures].[Fact Text Mining Count]

    )

    ON ROWS

    FROM [JTrackDW Cube]

    WHERE ( IIF( STRTOSET(@RequestDate,CONSTRAINED).Count = 1, STRTOSET(@RequestDate,CONSTRAINED), [Request Time].[Only Date].currentmember))

    But when I use the same member as string in the report parameters list I am able to filter the data.

    So anybody please help me to get this working...

    Any feedback or suggestions is welcome.:)

    Thanks in advance,

    Arvind.

Viewing 0 posts

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