Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Binding Cube date dimension member to calendar control(DatePicker) in SSRS Expand / Collapse
Author
Message
Posted Wednesday, May 21, 2008 3:32 AM
SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Friday, November 28, 2008 11:08 PM
Points: 802, Visits: 50
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.
Post #504306
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse